#include <babitflags.h>
class TBitFlagsT |
Public Attributes | |
---|---|
T | iFlags |
Public Member Functions | |
---|---|
TBitFlagsT() | |
TBitFlagsT(T) | |
TBitFlagsT(const TBitFlagsT &) | |
void | Assign(TInt, TBool) |
void | Clear(TInt) |
void | ClearAll() |
TBool | IsClear(TInt) |
TBool | IsSet(TInt) |
void | Set(TInt) |
void | SetAll() |
void | SetValue(T) |
void | Toggle(TInt) |
T | Value() |
TBitFlagsT & | operator=(const TBitFlagsT &) |
TBool | operator==(const TBitFlagsT &) |
TBool | operator[](TInt) |
A simple class which manages the process of setting and clearing flags in an abstract fashion.
T | iFlags |
TBitFlagsT | ( | T | aFlags | ) | [inline] |
Initialize the whole flag to a certain value
TBitFlagsT | ( | const TBitFlagsT & | aFlags | ) | [inline] |
Copy constructor - initialize this flag object to mirror that of aFlags.
Set or clear a particular flag
If aValue is 1, then the flag is set If aValue is 0, then the flag is cleared
void | SetValue | ( | T | aFlags | ) | [inline] |
Assign a new value (directly) to this flag object. Replaces any existing individual flag settings.
void | Toggle | ( | TInt | aFlagIndex | ) | [inline] |
Change the state of a particular flag. If the flag at the specified index was clear, then it becomes set, otherwise it becomes clear.
TBitFlagsT & | operator= | ( | const TBitFlagsT & | aFlags | ) | [inline] |
Assignment operator - assign specific value to the whole flag, replacing any existing value.
TBool | operator== | ( | const TBitFlagsT & | aFlags | ) | [inline] |
Compare the value of the whole flag with a given value.