BitVec Class Reference
Class BitVec defines a bit-vector as an array of BitVecType.
More...
#include <BitVec.h>
List of all members.
Detailed Description
Class BitVec defines a bit-vector as an array of BitVecType.
Necessary for space-filling curve. Bit are numbered from O; i.e. The MSB of BitVec[0] is bit 0 and the LSB of BitVec[Dim-1] is bit NBit-1 where NBit=Sizeof(BitVecType)*Dim. Operations on the bit vector include testing/setting and toggleing a set of bits corresponding to a digit and isolating the bits. This class has been modified to have a fix maxlen of the bitvector so that it does not need dynamic allocations.
- Author:
- Manish Parashar
Constructor & Destructor Documentation
| BitVec::BitVec |
( |
|
) |
[inline] |
| BitVec::BitVec |
( |
const int |
len |
) |
|
Constructor BitVec creates a bit vector of length "len" as an of BitVecType.
The bit vector is initialized to 0.
References ByteWidth, and MaxBitVecSlots.
| BitVec::BitVec |
( |
BitVec const & |
other |
) |
[inline] |
| BitVec::~BitVec |
( |
|
) |
[inline] |
Member Function Documentation
| int BitVec::GetLength |
( |
void |
|
) |
const [inline] |
| int BitVec::GetSlots |
( |
void |
|
) |
const [inline] |
| int BitVec::GetSlotWidth |
( |
void |
|
) |
const [inline] |
| int BitVec::IsolateBit |
( |
const int |
loc, |
|
|
const int |
num = 1 | |
|
) |
| | const |
| int BitVec::operator!= |
( |
BitVec const & |
other |
) |
const |
| int BitVec::operator< |
( |
BitVec const & |
other |
) |
const |
| int BitVec::operator<= |
( |
BitVec const & |
other |
) |
const |
Overload the various operators for BitVec.
| int BitVec::operator== |
( |
BitVec const & |
other |
) |
const |
| int BitVec::operator> |
( |
BitVec const & |
other |
) |
const |
| int BitVec::operator>= |
( |
BitVec const & |
other |
) |
const |
| void BitVec::ResetVec |
( |
void |
|
) |
[inline] |
| void BitVec::SetBit |
( |
const int |
loc |
) |
[inline] |
| void BitVec::SetVec |
( |
void |
|
) |
[inline] |
| void BitVec::SwapBit |
( |
const int |
loc1, |
|
|
const int |
loc2 | |
|
) |
| | |
| int BitVec::TestBit |
( |
const int |
loc |
) |
const [inline] |
| void BitVec::ToggleBit |
( |
const int |
loc |
) |
[inline] |
| void BitVec::UnsetBit |
( |
const int |
loc |
) |
[inline] |
The documentation for this class was generated from the following files: