#include <CTBflags.hxx>
Public Methods | |
CTBflags () | |
CTBflags (CTBuint32 i_flags) | |
void | SetBit (CTBuint32 i_flags) |
void | SetBit (CTBuint32 i_flags, bool b_val) |
void | ClearBit (CTBuint32 i_flags) |
bool | TestSomeBits (CTBuint32 i_flags) const |
bool | TestAllBits (CTBuint32 i_flags) const |
operator CTBuint32 () const | |
bool | operator! () const |
CTBflags & | operator= (const CTBuint32 i_flags) |
Private Attributes | |
CTBuint32 | mi_flags |
A CTBflags
holds 32 flag bits which are organized as an unsigned 32 bit integer word. Member functions allow to set, clear and test subsets of these flags. The subsets are always specified through a CTBunit32
mask.
Definition at line 16 of file CTBflags.hxx.
|
Default constructor, all flags bits are cleared.
Definition at line 26 of file CTBflags.icc. |
|
Constructor from uint, flags are set from i_flags.
Definition at line 33 of file CTBflags.icc. |
|
Set some bits. All flags corresponding to set bits in i_flags are set, all others are unaffected. Definition at line 44 of file CTBflags.icc. |
|
Set some bits to a value.
All flags corresponding to set bits in i_flags are set if b_val is Definition at line 57 of file CTBflags.icc. |
|
Clear some bits. All flags corresponding to set bits in i_flags are cleared, all others are unaffected. Definition at line 74 of file CTBflags.icc. |
|
Test whether some bits are set.
Returns Definition at line 87 of file CTBflags.icc. |
|
Test whether all bits are set.
Returns Definition at line 99 of file CTBflags.icc. |
|
Convert to unsigned 32bit integer.
Definition at line 107 of file CTBflags.icc. |
|
Returns
Definition at line 115 of file CTBflags.icc. |
|
Assign from unsigned 32bit integer.
Definition at line 123 of file CTBflags.icc. |
|
Definition at line 37 of file CTBflags.hxx. |