Main Page Class List Class Members

# Nv::Blast::FixedBoolArray Class Reference

`#include <NvBlastFixedBoolArray.h>`

List of all members.

## Public Member Functions
void | clear ()
void | fill ()
| FixedBoolArray (uint32_t size)
void | reset (uint32_t index)
void | set (uint32_t index)
int | test (uint32_t index) const
## Static Public Member Functions
static size_t | requiredMemorySize (uint32_t size)

## Detailed Description

FixedBoolArray is an array of bools of fixed size, it's intended to be used with placement new on chunk of memory. It'll use following memory for data layout. As follows:

some memory char ​*buf = new char[64 *​ 1024];

const uint32_t size = 100;

placement new on this memory FixedBoolArray* arr = new (buf) FixedBoolArray(size);

you can get max requiredMemorySize by an bitMap to use memory left buf = buf + FixedBoolArray<SomeClass>::requiredMemorySize(size);

buf:

+------------------------------------------------------------+ | uint32_t | bool0 | bool1 | bool2 | ... | +------------------------------------------------------------+

## Constructor & Destructor Documentation

Nv::Blast::FixedBoolArray::FixedBoolArray | ( | uint32_t | size | ) | `[inline, explicit]`

## Member Function Documentation

void Nv::Blast::FixedBoolArray::clear | ( |  | ) | `[inline]`

void Nv::Blast::FixedBoolArray::fill | ( |  | ) | `[inline]`

static size_t Nv::Blast::FixedBoolArray::requiredMemorySize | ( | uint32_t | size | ) | `[inline, static]`

void Nv::Blast::FixedBoolArray::reset | ( | uint32_t | index | ) | `[inline]`

void Nv::Blast::FixedBoolArray::set | ( | uint32_t | index | ) | `[inline]`

int Nv::Blast::FixedBoolArray::test | ( | uint32_t | index | ) | const`[inline]`

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

- sdk/common/NvBlastFixedBoolArray.h