128-bit bitmask class. More...
#include "physxGroupsMask.h"
Public Member Functions | |
| PhysxGroupsMask (NxGroupsMask mask) | |
| 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... | |
| unsigned int | get_bits0 () const |
| unsigned int | get_bits1 () const |
| unsigned int | get_bits2 () const |
| unsigned int | get_bits3 () const |
| NxGroupsMask | get_mask () const |
| void | output (std::ostream &out) const |
| Writes the PhysxGroupsMask out as a list of ones and zeros. More... | |
| void | set_bit (unsigned int idx) |
| Sets the nth bit on. More... | |
| void | set_bits0 (unsigned int bits) |
| void | set_bits1 (unsigned int bits) |
| void | set_bits2 (unsigned int bits) |
| void | set_bits3 (unsigned int bits) |
| void | set_mask (NxGroupsMask mask) |
Static Public Member Functions | |
| static PhysxGroupsMask | all_off () |
| Returns a PhysxGroupsMask whose bits are all off. More... | |
| static PhysxGroupsMask | all_on () |
| Returns a PhysxGroupsMask whose bits are all on. More... | |
Public Attributes | |
| NxGroupsMask | _mask |
128-bit bitmask class.
Definition at line 24 of file physxGroupsMask.h.
|
static |
Returns a PhysxGroupsMask whose bits are all off.
Definition at line 36 of file physxGroupsMask.cxx.
|
static |
Returns a PhysxGroupsMask whose bits are all on.
Definition at line 22 of file physxGroupsMask.cxx.
| void PhysxGroupsMask::clear_bit | ( | unsigned int | idx | ) |
Sets the nth bit off.
Index must be in the range [0, 127].
Definition at line 76 of file physxGroupsMask.cxx.
| bool PhysxGroupsMask::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, 127].
Definition at line 101 of file physxGroupsMask.cxx.
| void PhysxGroupsMask::output | ( | std::ostream & | out | ) | const |
Writes the PhysxGroupsMask out as a list of ones and zeros.
Definition at line 125 of file physxGroupsMask.cxx.
| void PhysxGroupsMask::set_bit | ( | unsigned int | idx | ) |
Sets the nth bit on.
Index must be in the range [0, 127].
Definition at line 52 of file physxGroupsMask.cxx.
1.8.15