This is the documentation for Enlighten.
A simple bit array wrapper, stored in an array of u32s.
| Name | Description |
|---|---|
| ~GeoBitArray() | Basic destructor. |
| ClearAllItems() | Clear all bits. |
| ClearItem(s32) | Clear a bit. |
| ClearUp() | Delete any memory to reset to initial empty state. |
| ComputeBitArrayLength(s32) | Compute the length of the s32 array that numItems will require. |
| CountNumBitsSet() | Count and return the number of bits set. |
| GeoBitArray() | Default constructor. |
| GeoBitArray(const GeoBitArray &) | Copy constructor. |
| GetBitArray() | Read-write access to the bit array itself. |
| GetBitArray() | Read-only access to the bit array itself. |
| GetNumItems() | Read-only access to num items. |
| Initialise(s32) | (Re-)Construct a zeroed bit array for numItems. |
| operator=(const GeoBitArray &) | Assignment from another GeoBitArray. |
| SetItem(s32) | Set a bit. |
| TestItem(s32) | Test whether a bit has been set. |
public: ~GeoBitArray()
Basic destructor.
public: void ClearAllItems()
Clear all bits.
public: void ClearItem
(
s32 itemIdx
)
Clear a bit.
public: void ClearUp()
Delete any memory to reset to initial empty state.
public: s32 ComputeBitArrayLength
(
s32 numItems
)
Compute the length of the s32 array that numItems will require.
public: s32 CountNumBitsSet() const
Count and return the number of bits set.
public: GeoBitArray()
Default constructor.
public: GeoBitArray
(
const GeoBitArray & bitArray
)
Copy constructor.
public: u32 * GetBitArray()
Read-write access to the bit array itself.
public: const u32 * GetBitArray() const
Read-only access to the bit array itself.
public: s32 GetNumItems() const
Read-only access to num items.
public: bool Initialise
(
s32 numItems
)
(Re-)Construct a zeroed bit array for numItems.
'numItems' can be zero but not negative.
False only if the mem alloc fails.
public: GeoBitArray & operator=
(
const GeoBitArray & bitArray
)
Assignment from another GeoBitArray.
public: void SetItem
(
s32 itemIdx
)
Set a bit.
public: bool TestItem
(
s32 itemIdx
) const
Test whether a bit has been set.