#include <NvBlastTkTaskImpl.h>
Public Member Functions | |
| void | allocate (uint32_t elementsPerBlock, uint32_t numBlocks) |
| T * | getBlock (uint32_t id) |
| uint32_t | numElementsPerBlock () const |
| void | release () |
| SharedBlock () | |
| Nv::Blast::SharedBlock< T >::SharedBlock | ( | ) | [inline] |
| void Nv::Blast::SharedBlock< T >::allocate | ( | uint32_t | elementsPerBlock, | |
| uint32_t | numBlocks | |||
| ) | [inline] |
Allocates one large memory block of elementsPerBlock*numBlocks elements.
| T* Nv::Blast::SharedBlock< T >::getBlock | ( | uint32_t | id | ) | [inline] |
Returns the pointer to the first element of a block of numElementsPerBlock() elements.
| uint32_t Nv::Blast::SharedBlock< T >::numElementsPerBlock | ( | ) | const [inline] |
The number of elements available per block.
| void Nv::Blast::SharedBlock< T >::release | ( | void | ) | [inline] |
Frees the whole memory block.