Main Page Class List Class Members

# Nv::Blast::SharedBlock< T > Class Template Reference

`#include <NvBlastTkTaskImpl.h>`

List of all members.

## Public Member Functions
void | allocate (uint32_t elementsPerBlock, uint32_t numBlocks)
T * | getBlock (uint32_t id)
uint32_t | numElementsPerBlock () const
void | release ()
| SharedBlock ()

## Detailed Description

### template<typename T>
class Nv::Blast::SharedBlock< T >

A list of equally sized memory blocks sharable between tasks.

## Constructor & Destructor Documentation

template<typename T>

Nv::Blast::SharedBlock< T >::SharedBlock | ( |  | ) | `[inline]`

## Member Function Documentation

template<typename T>

void Nv::Blast::SharedBlock< T >::allocate | ( | uint32_t | elementsPerBlock,
|  | uint32_t | numBlocks |
| ) |  |  | `[inline]`

Allocates one large memory block of elementsPerBlock*numBlocks elements.

template<typename T>

T* Nv::Blast::SharedBlock< T >::getBlock | ( | uint32_t | id | ) | `[inline]`

Returns the pointer to the first element of a block of numElementsPerBlock() elements.

template<typename T>

uint32_t Nv::Blast::SharedBlock< T >::numElementsPerBlock | ( |  | ) | const`[inline]`

The number of elements available per block.

template<typename T>

void Nv::Blast::SharedBlock< T >::release | ( | void |  | ) | `[inline]`

Frees the whole memory block.

The documentation for this class was generated from the following file:

- sdk/toolkit/source/NvBlastTkTaskImpl.h