PSCF v1.1
|
Represents a specific bit location within an unsigned int. More...
#include <Bit.h>
Public Member Functions | |
Bit () | |
Default constructor. More... | |
Bit (unsigned int shift) | |
Constructor. More... | |
void | setMask (unsigned int shift) |
Set or reset the bit mask. More... | |
void | set (unsigned int &flags) const |
Set this bit in the flags parameter. More... | |
void | clear (unsigned int &flags) const |
Clear this bit in the flags parameter. More... | |
bool | isSet (unsigned int flags) const |
Is this bit set in the flags integer? More... | |
unsigned int | mask () const |
Return integer with only this bit set. More... | |
Represents a specific bit location within an unsigned int.
Provides methods to query, set or clear a particular bit.
Util::Bit::Bit | ( | unsigned int | shift | ) |
void Util::Bit::setMask | ( | unsigned int | shift | ) |
Set or reset the bit mask.
shift | location of the bit, 0 < shift <= 32. |
Definition at line 31 of file Bit.cpp.
References UTIL_THROW.
Referenced by Bit().
|
inline |
|
inline |
|
inline |
|
inline |