Abstract base class for storing BitVectors.
More...
#include <BitVect.h>
|
virtual | ~BitVect ()=0 |
|
virtual bool | setBit (const unsigned int which)=0 |
| sets a particular bit and returns its original value
|
|
virtual bool | unsetBit (const unsigned int which)=0 |
| unsets a particular bit and returns its original value
|
|
virtual bool | getBit (const unsigned int which) const =0 |
| returns the value of a particular bit
|
|
virtual unsigned int | getNumBits () const =0 |
| returns the number of bits (the length of the BitVect)
|
|
virtual unsigned int | getNumOnBits () const =0 |
| returns the number of on bits
|
|
virtual unsigned int | getNumOffBits () const =0 |
| returns the number of off bits
|
|
virtual void | getOnBits (IntVect &v) const =0 |
| replaces the contents of v with indices of our on bits
|
|
virtual void | clearBits ()=0 |
| clears (sets to off) all of our bits
|
|
void | initFromText (const char *data, const unsigned int dataLen, bool isBase64=false, bool allowOldFormat=false) |
| initializes this BitVect from a pickle
|
|
virtual std::string | toString () const =0 |
| returns a serialized (pickled) version of this BitVect
|
|
virtual bool | operator[] (const unsigned int which) const =0 |
|
unsigned int | size () const |
|
Abstract base class for storing BitVectors.
Definition at line 24 of file BitVect.h.
◆ ~BitVect()
virtual BitVect::~BitVect |
( |
| ) |
|
|
pure virtual |
◆ clearBits()
virtual void BitVect::clearBits |
( |
| ) |
|
|
pure virtual |
◆ getBit()
virtual bool BitVect::getBit |
( |
const unsigned int |
which | ) |
const |
|
pure virtual |
◆ getNumBits()
virtual unsigned int BitVect::getNumBits |
( |
| ) |
const |
|
pure virtual |
◆ getNumOffBits()
virtual unsigned int BitVect::getNumOffBits |
( |
| ) |
const |
|
pure virtual |
◆ getNumOnBits()
virtual unsigned int BitVect::getNumOnBits |
( |
| ) |
const |
|
pure virtual |
◆ getOnBits()
virtual void BitVect::getOnBits |
( |
IntVect & |
v | ) |
const |
|
pure virtual |
◆ initFromText()
void BitVect::initFromText |
( |
const char * |
data, |
|
|
const unsigned int |
dataLen, |
|
|
bool |
isBase64 = false , |
|
|
bool |
allowOldFormat = false |
|
) |
| |
initializes this BitVect from a pickle
- Parameters
-
data | the raw pickle data |
dataLen | the length of data |
isBase64 | (optional) if this is set, data is assumed to be base64 encoded. |
allowOldFormat | (optional) allows a very old form of the BitVect representation to be recognized. This argument disables a large amount of error checking and it is strongly suggested that it not be used in client code. |
◆ operator[]()
virtual bool BitVect::operator[] |
( |
const unsigned int |
which | ) |
const |
|
pure virtual |
◆ setBit()
virtual bool BitVect::setBit |
( |
const unsigned int |
which | ) |
|
|
pure virtual |
◆ size()
unsigned int BitVect::size |
( |
| ) |
const |
|
inline |
◆ toString()
virtual std::string BitVect::toString |
( |
| ) |
const |
|
pure virtual |
◆ unsetBit()
virtual bool BitVect::unsetBit |
( |
const unsigned int |
which | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: