#include <BALL/DATATYPE/bitVector.h>
Classes | |
class | IllegalOperation |
Public Member Functions | |
Constructors and Destructors | |
Bit () | |
Bit (const Bit &bit) | |
Bit (BitVector *bitvector, Index index=0) | |
Bit (const BitVector *const bitvector, Index index=0) | |
virtual | ~Bit () |
Converters | |
operator bool () const | |
Bit & | operator= (const Bit &bit) |
Bit & | operator= (const bool bit) |
virtual void | clear () |
Predicates | |
bool | operator== (const Bit &bit) const |
bool | operator== (bool bit) const |
bool | operator!= (const Bit &bit) const |
bool | operator!= (bool bit) const |
Private Attributes | |
BitVector * | bitvector_ |
Index | index_ |
bool | bitvector_muteable_ |
Bit Class. This class represents a bit within a BitVector.
Definition at line 42 of file bitVector.h.
BALL::Bit::Bit | ( | ) |
Default constructor
BALL::Bit::Bit | ( | const Bit & | bit | ) |
Copy constructor
Detailed constructor. For use with nonconst bitvector. The bitvector can be resized by accessing bits out of the bitvectors range.
NullPointer | if bitvector is equal to 0 |
Detailed constructor. For use with const bitvector.
NullPointer | if bitvector is equal to 0 | |
IndexUnderflow | if index is too small | |
IndexOverflow | if index is greater than the size of bitvector |
virtual BALL::Bit::~Bit | ( | ) | [virtual] |
Destructor
virtual void BALL::Bit::clear | ( | ) | [virtual] |
Clear method
Inequality operator. Test if this instance has not the given bool value
Exception::NullPointer | if this bitvector is not correctly initialized |
Inequality operator. Test if two instances point to different positions.
Assignment operator. Assign a bool value to this instance. The bit in the bitvector is set to the given value.
Exception::IllegalOperation | if instance points to a const bitvector | |
Exception::NullPointer |
Assignment Assignment operator. Assign the position from a Bit to this instance
Equality operator. Test if this instance has the given bool value
Exception::NullPointer | if this bitvector is not correctly initialized |
Equality operator. Test if two instances have the same position in a bitvector
BitVector* BALL::Bit::bitvector_ [private] |
Definition at line 161 of file bitVector.h.
bool BALL::Bit::bitvector_muteable_ [private] |
Definition at line 163 of file bitVector.h.
Index BALL::Bit::index_ [private] |
Definition at line 162 of file bitVector.h.