|
Torque2D Reference
|
Manage a vector of bits of arbitrary size. More...
#include <bitVector.h>
Public Member Functions | |
| BitVector () | |
| BitVector (const U32 _size) | |
| ~BitVector () | |
| bool | copy (const BitVector &from) |
Size Management | |
| void | setSize (const U32 _size) |
| U32 | getSize () const |
| U32 | getByteSize () const |
| U32 | getAllocatedByteSize () const |
| const U8 * | getBits () const |
| U8 * | getNCBits () |
Mutators | |
Note that bits are specified by index, unlike BitSet32. | |
| void | clear () |
| Clear all the bits. | |
| void | set () |
| Set all the bits. | |
| void | set (U32 bit) |
| Set the specified bit. | |
| void | clear (U32 bit) |
| Clear the specified bit. | |
| bool | test (U32 bit) const |
| Test that the specified bit is set. | |
Manage a vector of bits of arbitrary size.
|
inline |
|
inline |
|
inline |
|
inline |
Clear all the bits.
|
inline |
Clear the specified bit.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set all the bits.
|
inline |
Set the specified bit.
|
inline |
|
inline |
Test that the specified bit is set.