|
Public Member Functions |
| | BitString (uint32_t len) |
| | Constructor:.
|
| | BitString (const BitString &arg) |
| | Copy constructor.
|
| | ~BitString () |
| | Destructor, deallocate memory.
|
| size_t | count () const |
| size_t | indexTable (cindex_t *table) const |
| size_t | intSize () const |
| size_t | size () const |
| BitString & | operator|= (const BitString &arg) |
| | arg is a uint32_t[n]
|
| BitString & | operator|= (const uint32_t *arg) |
| BitString & | operator &= (const BitString &arg) |
| | arg is a uint32_t[n]
|
| BitString & | operator &= (const uint32_t *arg) |
| BitString & | operator^= (const BitString &arg) |
| | arg is a uint32_t[n]
|
| BitString & | operator^= (const uint32_t *arg) |
| BitString & | operator= (const BitString &arg) |
| | arg is a uint32_t[n]
|
| BitString & | operator= (const uint32_t *arg) |
| bool | operator== (const BitString &arg) |
| | arg is a uint32_t[n]
|
| bool | operator== (const uint32_t *arg) |
| bool | isEmpty () const |
| BitString & | neg () |
| | Negate all bits.
|
| BitString & | operator= (bit_t bit) |
| | Set all the bits with bit.
|
| BitString & | operator= (Bit &b) |
| BitString & | operator+= (cindex_t index) |
| | Set a given bit (to 1).
|
| BitString & | operator-= (cindex_t index) |
| | Reset a given bit (to 0).
|
| BitString & | operator^= (cindex_t index) |
| | Toggle a given bit.
|
| bit_t | getBit (cindex_t index) const |
| | Read a given bit.
|
| BitString & | assignBit (cindex_t index, bit_t bit) |
| | Assign one bit (=bit).
|
| BitString & | assignBit (cindex_t index, Bit b) |
| BitString & | addBit (cindex_t index, bit_t bit) |
| | Add one bit (|=bit).
|
| BitString & | addBit (cindex_t index, Bit b) |
| BitString & | subBit (cindex_t index, bit_t bit) |
| | Subtract one bit (&=~bit).
|
| BitString & | subBit (cindex_t index, Bit b) |
| BitString & | xorBit (cindex_t index, bit_t bit) |
| | Xor operation with one bit (^=bit).
|
| BitString & | xorBit (cindex_t index, Bit b) |
| Bit | operator[] (cindex_t index) |
| | Easy access of bits: if bs is a BitString, you can do: bs[3] |= Bit::One.
|
| std::ostream & | prettyPrint (std::ostream &os) const |
| | Pretty print.
|
| uint32_t * | operator() () |
| | Access to the bit string.
|
| const uint32_t * | operator() () const |
Private Attributes |
| size_t | n |
| uint32_t * | bitString |