![]() |
Public API Reference |
#include <flags.h>
Public Methods | |
| csFlags (int Value=0) | |
| Constructor. More... | |
| void | SetAll (unsigned value) |
| Initialize all flags to the given mask. More... | |
| void | Set (unsigned mask) |
| Set all given flags. More... | |
| void | Reset (unsigned mask) |
| Reset all given flags. More... | |
| void | Set (unsigned mask, unsigned value) |
| Set all flags with the given mask. More... | |
| void | SetBool (unsigned mask, bool value) |
| Set all flags with the given value. More... | |
| unsigned | Get () const |
| Get flags. More... | |
| bool | Check (unsigned mask) const |
| Check if any of the given flags are set. More... | |
| bool | CheckAll (unsigned mask) const |
| Check if all the given flags are set. More... | |
Definition at line 25 of file flags.h.
|
|
Constructor.
|
|
|
Check if any of the given flags are set.
|
|
|
Check if all the given flags are set.
|
|
|
Get flags.
|
|
|
Reset all given flags.
|
|
||||||||||||
|
Set all flags with the given mask.
|
|
|
Set all given flags.
|
|
|
Initialize all flags to the given mask.
|
|
||||||||||||
|
Set all flags with the given value.
|