32-bit bitmask class. More...
#include "physxMask.h"
Public Member Functions | |
void | clear_bit (unsigned int idx) |
Sets the nth bit off. More... | |
bool | get_bit (unsigned int idx) const |
Returns true if the nth bit is set, false if it is cleared. More... | |
NxU32 | get_mask () const |
void | output (std::ostream &out) const |
Writes the PhysxMask out as a list of ones and zeros. More... | |
void | set_bit (unsigned int idx) |
Sets the nth bit on. More... | |
Static Public Member Functions | |
static PhysxMask | all_off () |
Returns a PhysxMask whose bits are all off. More... | |
static PhysxMask | all_on () |
Returns a PhysxMask whose bits are all on. More... | |
32-bit bitmask class.
Definition at line 24 of file physxMask.h.
|
static |
Returns a PhysxMask whose bits are all off.
Definition at line 31 of file physxMask.cxx.
|
static |
Returns a PhysxMask whose bits are all on.
Definition at line 20 of file physxMask.cxx.
void PhysxMask::clear_bit | ( | unsigned int | idx | ) |
Sets the nth bit off.
Index must be in the range [0, 31].
Definition at line 52 of file physxMask.cxx.
bool PhysxMask::get_bit | ( | unsigned int | idx | ) | const |
Returns true if the nth bit is set, false if it is cleared.
Index must be in the range [0, 31].
Definition at line 63 of file physxMask.cxx.
void PhysxMask::output | ( | std::ostream & | out | ) | const |
Writes the PhysxMask out as a list of ones and zeros.
Definition at line 73 of file physxMask.cxx.
void PhysxMask::set_bit | ( | unsigned int | idx | ) |
Sets the nth bit on.
Index must be in the range [0, 31].
Definition at line 42 of file physxMask.cxx.