BITSET_DEQUE Class Reference
#include <mi32/bitsetd.h>
List of all members.
Constructor & Destructor Documentation
| BITSET_DEQUE::BITSET_DEQUE |
( |
|
) |
|
| BITSET_DEQUE::~BITSET_DEQUE |
( |
|
) |
|
Member Function Documentation
| ITERATOR BITSET_DEQUE::Begin |
( |
bool |
value = true |
) |
const |
Initialize iterator with first set or unset item in the bit set.
Returns iterator to first set entry, otherwise the last+1 item if no matching item.
- Parameters:
-
| value | Value to iterate through |
| void BITSET_DEQUE::Clear |
( |
UINT32 |
posn |
) |
|
Clear value at specified position.
| void BITSET_DEQUE::ClearAll |
( |
|
) |
|
Clear bit array with false.
Makes all the entries in the bit set 'false'.
Set range of entries to "false".
| void BITSET_DEQUE::CopyBit |
( |
UINT32 |
DestPosn, |
|
|
UINT32 |
SourcePosn | |
|
) |
| | |
Transfer value from source to dest entry.
Replaces putbit(set, DestPosn, getbit(set, SourcePosn)).
- Parameters:
-
| DestPosn | where setting goes to |
| SourcePosn | where setting comes from |
| INT32 BITSET_DEQUE::CountValues |
( |
bool |
value = true |
) |
const |
Count the values in the set.
Iterates through the set, so should not be used in time-critical code.
Initialize iterator with last+1 item in the bit set.
Returns iterator to last+1 item
| void BITSET_DEQUE::Free |
( |
|
) |
|
| bool BITSET_DEQUE::GetBit |
( |
UINT32 |
posn |
) |
const |
Retrieve value at the requested position, true or false.
Returns 'false' if the position given is outside the range of the BITSET
- Parameters:
-
| posn | position where value is retrieved from |
| INT32 BITSET_DEQUE::GetBitArray |
( |
UINT8 *& |
array |
) |
const |
Retrieve legacy bit array from 'this' Returns number of items in the array.
- Parameters:
-
| array | Must be freed by the caller |
| UINT32 BITSET_DEQUE::GetNumEntries |
( |
|
) |
const |
Return the number of valid entries.
Get a range of entries that are set continuously in the bitset.
- Returns:
- 'True' if a true range, 'false' if a false range
- Parameters:
-
| StartPosn | Staring position |
| MaxEnd | Maximum ending position |
| EndPosn | Ending position (inclusive) RETURNED |
| bool BITSET_DEQUE::HasEntries |
( |
|
) |
const |
Does bit set have any entries?
| bool BITSET_DEQUE::HasMultiple |
( |
bool |
value |
) |
const |
Determine if has multiple entries with specified value.
| bool BITSET_DEQUE::HasValue |
( |
bool |
value |
) |
const |
Determine if has at least one entry with specified value;.
| void BITSET_DEQUE::Invert |
( |
UINT32 |
posn |
) |
|
Invert value at specified position.
- Parameters:
-
| posn | Position to be inverted |
| void BITSET_DEQUE::InvertAll |
( |
|
) |
|
Invert all entries in bit set.
Set range of entries to inverse.
Do a logical AND operation between two BITSET_DEQUE's.
Do a logical OR operation between two BITSET_DEQUE's.
Resize BITSET to a new number of entries.
- Parameters:
-
| NumEntries | Number of elements to resize to |
| void BITSET_DEQUE::Set |
( |
UINT32 |
posn |
) |
|
Set a value at the requested position to "true".
Does nothing if the position given is outside range.
- Parameters:
-
| void BITSET_DEQUE::SetAll |
( |
|
) |
|
Set all entries to true, opposite of ClearAll().
Turn all bit positions to true.
| void BITSET_DEQUE::SetBit |
( |
UINT32 |
posn, |
|
|
bool |
value | |
|
) |
| | |
Set a value at the requested position, true or false.
Does nothing if the position given is outside range.
- Parameters:
-
| posn | Position where value is set |
| value | Value to be set at position |
Set range of entries to "true".
The documentation for this class was generated from the following file: