FBX C++ API Reference
|
#include <fbxbitset.h>
An automatic growing array of bit.
The bit array will automatically grow when specifying bit indexes that are greater than the array size when calling SetBit or UnsetBit. Indexes can vary from 0 to FBXSDK_UINT_MAX-1. When an invalid index is returned from any functions, FBXSDK_UINT_MAX is returned. The bit array is not thread safe.
Definition at line 27 of file fbxbitset.h.
Public Member Functions | |
FbxBitSet (const FbxUInt pInitialSize=0) | |
Constructor. More... | |
virtual | ~FbxBitSet () |
Destructor. More... | |
void | SetBit (const FbxUInt pBitIndex) |
Set the bit at the specified bit index to true regardless of its current value. More... | |
void | SetAllBits (const bool pValue) |
Set all the bits to the specified value regardless of their current value. More... | |
void | UnsetBit (const FbxUInt pBitIndex) |
Set the bit at the specified bit index to false regardless of its current value. More... | |
bool | GetBit (const FbxUInt pBitIndex) const |
Get the bit boolean value at the specified bit index. More... | |
FbxUInt | GetFirstSetBitIndex () const |
Get the bit index of the first bit that is currently set. More... | |
FbxUInt | GetLastSetBitIndex () const |
Get the bit index of the last bit that is currently set. More... | |
FbxUInt | GetNextSetBitIndex (const FbxUInt pBitIndex) const |
Get the bit index of the next set bit after the specified bit index. More... | |
FbxUInt | GetPreviousSetBitIndex (const FbxUInt pBitIndex) const |
Get the bit index of the previous set bit before the specified bit index. More... | |
Constructor.
pInitialSize | Initial bit array size in bit count (not in byte count!). |
|
virtual |
Destructor.
void SetBit | ( | const FbxUInt | pBitIndex | ) |
Set the bit at the specified bit index to true regardless of its current value.
pBitIndex | The bit index in the array in the range of [0, FBXSDK_UINT_MAX-1]. |
void SetAllBits | ( | const bool | pValue | ) |
Set all the bits to the specified value regardless of their current value.
pValue | The boolean value to set to all bits. |
void UnsetBit | ( | const FbxUInt | pBitIndex | ) |
Set the bit at the specified bit index to false regardless of its current value.
pBitIndex | The bit index in the array in the range of [0, FBXSDK_UINT_MAX-1]. |
bool GetBit | ( | const FbxUInt | pBitIndex | ) | const |
Get the bit boolean value at the specified bit index.
pBitIndex | The bit index in the array in the range of [0, FBXSDK_UINT_MAX-1]. |
FbxUInt GetFirstSetBitIndex | ( | ) | const |
Get the bit index of the first bit that is currently set.
FbxUInt GetLastSetBitIndex | ( | ) | const |
Get the bit index of the last bit that is currently set.
Get the bit index of the next set bit after the specified bit index.
pBitIndex | The start bit index in the array in the range of [0, FBXSDK_UINT_MAX-1]. |
Get the bit index of the previous set bit before the specified bit index.
pBitIndex | The start bit index in the array in the range of [0, FBXSDK_UINT_MAX-1]. |