Bit set. More...
#include <mi32/bitset.h>

Public Member Functions | |
| BITSET (UINT8 *set, UINT32 NumEntries) | |
| BITSET (const BITSET_UNOWNED &rhs) | |
| BITSET (const BITSET &rhs) | |
| BITSET () | |
| virtual | ~BITSET () |
| virtual ERRVALUE | Assign (UINT8 *set, UINT32 NumEntries) |
| void | Attach (UINT8 *&items, int numitems) |
| BITSET & | operator= (const BITSET_UNOWNED &rhs) |
| BITSET & | operator= (const BITSET &rhs) |
| UINT8 * | Detach () |
| void | Exchange (BITSET &other) |
| void | Free () |
| ERRVALUE | Resize (UINT32 NumEntries) |
Bit set.
| BITSET::BITSET | ( | ) |
Default constructor.
| BITSET::BITSET | ( | const BITSET & | rhs | ) |
Copy constructor.
| BITSET::BITSET | ( | const BITSET_UNOWNED & | rhs | ) |
Construct from BITSET_UNOWNED.
Constructor to convert old bit-array's into BITSETs.
| set | Old bit array set | |
| NumEntries | Number of items in old bit array, not size in bytes |
| virtual BITSET::~BITSET | ( | ) | [virtual] |
Destructor.
Assign from old type bit arrays.
| set | Pointer to old bit-array | |
| NumEntries | Number of items in old bit array |
Reimplemented from BITSET_UNOWNED.
| void BITSET::Attach | ( | UINT8 *& | items, | |
| int | numitems | |||
| ) |
Attach a old bit array to the BITSET.
After passing a buffer to Attach(), the BITSET "owns" the buffer and will free it in its destructor.
| items | Reference to a pointer to the other bit array. The reason it's a reference is that after recording the pointer, Attach() will set your pointer to 0. This will prevent you from accidently freeing a pointer you no longer own. If you want it back, call the Detach() method |
| numitems | Number of items in array |
| UINT8* BITSET::Detach | ( | ) |
Detach the buffer from the BITSET This turns ownership of the buffer over to the caller, who is then responsibile for seeing that it gets disposed of.
After calling Detach(), the BITSET will behave as if it had just been constructed. In other words, it will be a NULL pointer pointing to 0 items. This means that if you want to know how many items are in the array returned, you'd better find out before} you call Detach()!
| void BITSET::Exchange | ( | BITSET & | other | ) |
Exchange contents of this bitset with another.
| other | Bitset to exchange with |
| void BITSET::Free | ( | ) |
Erase BITSET internals, same as calling destructor.
| BITSET& BITSET::operator= | ( | const BITSET_UNOWNED & | rhs | ) |
Assignment from BITSET_UNOWNED.
Resize BITSET to a new number of entries.
| NumEntries | Number of elements to resize to |
1.6.1