Simpatico
v1.10
|
Represents a specific bit location within an unsigned int.
Provides methods to query, set or clear a particular bit.
#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... | |
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 |
Set this bit in the flags parameter.
flags | unsigned int to be modified |
Definition at line 80 of file Bit.h.
Referenced by DdMd::Modifier::set(), and DdMd::Simulation::setConfigIo().
|
inline |
Clear this bit in the flags parameter.
flags | unsigned int to be modified |
Definition at line 86 of file Bit.h.
Referenced by DdMd::Simulation::setConfigIo().
|
inline |
Is this bit set in the flags integer?
flags | unsigned int to be queried |
Definition at line 92 of file Bit.h.
Referenced by DdMd::Modifier::isSet(), DdMd::DdMdGroupTrajectoryWriter::writeFrame(), and DdMd::DdMdGroupTrajectoryWriter::writeHeader().
|
inline |