FBX C++ API Reference
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FbxBitSet Class Reference

#include <fbxbitset.h>

Class Description

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 & Destructor Documentation

◆ FbxBitSet()

FbxBitSet ( const FbxUInt  pInitialSize = 0)

Constructor.

Parameters
pInitialSizeInitial bit array size in bit count (not in byte count!).

◆ ~FbxBitSet()

virtual ~FbxBitSet ( )
virtual

Destructor.

Member Function Documentation

◆ SetBit()

void SetBit ( const FbxUInt  pBitIndex)

Set the bit at the specified bit index to true regardless of its current value.

Parameters
pBitIndexThe bit index in the array in the range of [0, FBXSDK_UINT_MAX-1].

◆ SetAllBits()

void SetAllBits ( const bool  pValue)

Set all the bits to the specified value regardless of their current value.

Parameters
pValueThe boolean value to set to all bits.

◆ UnsetBit()

void UnsetBit ( const FbxUInt  pBitIndex)

Set the bit at the specified bit index to false regardless of its current value.

Parameters
pBitIndexThe bit index in the array in the range of [0, FBXSDK_UINT_MAX-1].

◆ GetBit()

bool GetBit ( const FbxUInt  pBitIndex) const

Get the bit boolean value at the specified bit index.

Parameters
pBitIndexThe bit index in the array in the range of [0, FBXSDK_UINT_MAX-1].
Returns
True if the bit is set, false otherwise.

◆ GetFirstSetBitIndex()

FbxUInt GetFirstSetBitIndex ( ) const

Get the bit index of the first bit that is currently set.

Returns
The bit index of the first set bit, FBXSDK_UINT_MAX if none found.

◆ GetLastSetBitIndex()

FbxUInt GetLastSetBitIndex ( ) const

Get the bit index of the last bit that is currently set.

Returns
The bit index of the last set bit, FBXSDK_UINT_MAX if none found.

◆ GetNextSetBitIndex()

FbxUInt GetNextSetBitIndex ( const FbxUInt  pBitIndex) const

Get the bit index of the next set bit after the specified bit index.

Parameters
pBitIndexThe start bit index in the array in the range of [0, FBXSDK_UINT_MAX-1].
Returns
The bit index of the next set bit, FBXSDK_UINT_MAX if none found.

◆ GetPreviousSetBitIndex()

FbxUInt GetPreviousSetBitIndex ( const FbxUInt  pBitIndex) const

Get the bit index of the previous set bit before the specified bit index.

Parameters
pBitIndexThe start bit index in the array in the range of [0, FBXSDK_UINT_MAX-1].
Returns
The bit index of the previous set bit, FBXSDK_UINT_MAX if none found.

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