#include <flags.h>
Public Methods | |
| csFlags (int Value=0) | |
| Constructor. | |
| void | SetAll (unsigned value) |
| Initialize all flags to the given mask. | |
| void | Set (unsigned mask) |
| Set all given flags. | |
| void | Reset (unsigned mask) |
| Reset all given flags. | |
| void | Set (unsigned mask, unsigned value) |
| Set all flags with the given mask. | |
| void | SetBool (unsigned mask, bool value) |
| Set all flags with the given value. | |
| unsigned | Get () const |
| Get flags. | |
| bool | Check (unsigned mask) const |
| Check if any of the given flags are set. | |
| bool | CheckAll (unsigned mask) const |
| Check if all the given flags are set. | |