Main Page Class List Class Members

# Nv::Blast::FixedBitmap Class Reference

`#include <NvBlastFixedBitmap.h>`

List of all members.

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

## Detailed Description

FixedBitmap is a bitset (bitmap) of fixed side, 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 bitsCount = 100;

placement new on this memory FixedBitmap* arr = new (buf) FixedBitmap(bitsCount);

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

buf:

+------------------------------------------------------------+ | uint32_t | word0 | word1 | word2 | ... | +------------------------------------------------------------+

## Constructor & Destructor Documentation

Nv::Blast::FixedBitmap::FixedBitmap | ( | uint32_t | bitsCount | ) | `[inline, explicit]`

## Member Function Documentation

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

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

static uint32_t Nv::Blast::FixedBitmap::getWordsCount | ( | uint32_t | bitsCount | ) | `[inline, static]`

static size_t Nv::Blast::FixedBitmap::requiredMemorySize | ( | uint32_t | bitsCount | ) | `[inline, static]`

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

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

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

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

- sdk/common/NvBlastFixedBitmap.h