TBTK
|
Need a break? Support the development by playing Polarity Puzzles |
Register of bits. More...
#include <ExtensiveBitRegister.h>
Friends | |
std::ostream & | operator<< (std::ostream &stream, const ExtensiveBitRegister &extensiveBitRegister) |
Register of bits.
The ExtensiveBitRegister is similar to the BitRegister, but allows for arbitrary number of bits to be stored and operated on.
TBTK::ExtensiveBitRegister::ExtensiveBitRegister | ( | ) |
Constructor.
TBTK::ExtensiveBitRegister::ExtensiveBitRegister | ( | unsigned int | numBits | ) |
Constructor.
TBTK::ExtensiveBitRegister::ExtensiveBitRegister | ( | const ExtensiveBitRegister & | extensiveBitRegister | ) |
Copy constructor.
TBTK::ExtensiveBitRegister::~ExtensiveBitRegister | ( | ) |
Destructor.
|
inline |
Clear register.
|
inline |
Set the most significant bit.
|
inline |
Create a new ExtensiveBitRegister with the same strucutre.
|
inline |
Get bit value.
|
inline |
Return the most significant bit.
|
inline |
Return the number of bits in the register.
|
inline |
Returns the number of bits that are one.
|
inline |
Bitwise and operator.
|
inline |
Addition operator.
|
inline |
Increment operator.
|
inline |
Increment operator.
|
inline |
+= operator.
|
inline |
Subtraction operator.
|
inline |
Decrement operator.
|
inline |
Decrement operator.
|
inline |
-= operator.
|
inline |
Less than operator.
|
inline |
Left bitshift operator.
|
inline |
Assignment operator.
|
inline |
Assignment operator.
|
inline |
Comparison operator.
|
inline |
Greater than operator.
|
inline |
Right bitshift operator.
|
inline |
Bitwise xor operator.
|
inline |
Bitwise or operator.
|
inline |
Print bit register.
|
inline |
Set value of bit at a specific position.
|
inline |
Set the most significant bit.
|
inline |
Returns a bool that is false if all bits are zero, and true otherwise.
|
inline |
Get string representation of the ExtensiveBitRegister.
|
inline |
Returns an unsigned int containing the least significant bits in the register.
|
friend |
Writes the ExtensiveBitRegister toString-representation to a stream.
stream | The stream to srite to. |
extensiveBitRegister | The ExtensiveBitRegister to write. |