Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
BitVector Class 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. More...
void | set ()
| Set all the bits. More...
void | set (U32 bit)
| Set the specified bit. More...
void | clear (U32 bit)
| Clear the specified bit. More...
bool | test (U32 bit) const
| Test that the specified bit is set. More...

## Detailed Description

Manage a vector of bits of arbitrary size.

## Constructor & Destructor Documentation

BitVector | ( |  | ) |
| inline

BitVector | ( | const U32 | _size | ) |
| inline

~BitVector | ( |  | ) |
| inline

## Member Function Documentation

void clear | ( |  | ) |
| inline

Clear all the bits.

void clear | ( | U32 | bit | ) |
| inline

Clear the specified bit.

bool copy | ( | const BitVector & | from | ) |
| inline

U32 getAllocatedByteSize | ( |  | ) | const
| inline

const U8* getBits | ( |  | ) | const
| inline

U32 getByteSize | ( |  | ) | const
| inline

U8* getNCBits | ( |  | ) |
| inline

U32 getSize | ( |  | ) | const
| inline

void set | ( |  | ) |
| inline

Set all the bits.

void set | ( | U32 | bit | ) |
| inline

Set the specified bit.

void setSize | ( | const U32 | _size | ) |
| inline

bool test | ( | U32 | bit | ) | const
| inline

Test that the specified bit is set.

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

- collection/bitVector.h