|
PSCF v1.3.3
|
Represents a specific bit location within an unsigned int. More...
#include <Bit.h>
Public Member Functions | |
| Bit () | |
| Default constructor. | |
| Bit (unsigned int shift) | |
| Constructor. | |
| void | setMask (unsigned int shift) |
| Set or reset the bit mask. | |
| void | set (unsigned int &flags) const |
| Set this bit in the flags parameter. | |
| void | clear (unsigned int &flags) const |
| Clear this bit in the flags parameter. | |
| bool | isSet (unsigned int flags) const |
| Is this bit set in the flags integer? | |
| unsigned int | mask () const |
| Return integer with only this bit set. | |
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 |