#include <bitVector.h>
Public Member Functions | |
Constructors and Destructors | |
Bit () throw () | |
Default constructor. | |
Bit (const Bit &bit) throw () | |
Copy constructor. | |
Bit (BitVector *bitvector, Index index=0) throw (Exception::NullPointer) | |
Detailed constructor. | |
Bit (const BitVector *const bitvector, Index index=0) throw (Exception::NullPointer, Exception::IndexUnderflow, Exception::IndexOverflow) | |
Detailed constructor. | |
virtual | ~Bit () throw () |
Destructor. | |
Converters | |
operator bool () const throw (Exception::NullPointer) | |
Casting operator from Bit to bool. | |
Bit & | operator= (const Bit &bit) throw () |
Assignment operator. | |
Bit & | operator= (const bool bit) throw (Exception::NullPointer, IllegalOperation) |
Assignment operator. | |
virtual void | clear () throw () |
Clear method. | |
Predicates | |
bool | operator== (const Bit &bit) const throw () |
Equality operator. | |
bool | operator== (bool bit) const throw (Exception::NullPointer) |
Equality operator. | |
bool | operator!= (const Bit &bit) const throw () |
Inequality operator. | |
bool | operator!= (bool bit) const throw (Exception::NullPointer) |
Inequality operator. |
This class represents a bit within a BitVector.
|
Detailed constructor. For use with nonconst bitvector. The bitvector can be resized by accessing bits out of the bitvectors range.
|
|
Detailed constructor. For use with const bitvector.
|
|
Casting operator from Bit to bool.
|
|
Inequality operator. Test if this instance has not the given bool value |
|
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.
|
|
Assignment operator. Assign the position from a Bit to this instance |
|
Equality operator. Test if this instance has the given bool value |
|
Equality operator. Test if two instances have the same position in a bitvector |