#include <pg_flag.h>
Public Member Functions | |
| pgFlag () | |
| Constructs and initializes a pgFlag whose all bits are off. | |
| bool | operator== (pgFlag< D, T > flag) const |
| Returns whether this pgFlag is equal to the right hand side pgFlag. | |
| bool | operator!= (pgFlag< D, T > flag) const |
| Returns whether this pgFlag is unequal to the right hand side pgFlag. | |
| D | getValue () const |
| Returns the bits of this pgFlag as the data type. | |
| bool | isOn (T flag) const |
| Returns whether the specified flag is on. | |
| bool | isOff (T flag) const |
| Returns whether the specified flag is off. | |
| void | setOn (T flag) |
| Sets the specified flag on. | |
| void | setOff (T flag) |
| Sets the specified flag off. | |
| void | set (T flag, bool is_on) |
| Sets the specified flag to the specified value. | |
| void | clear () |
| Sets all bits of this pgFlag off. | |
| D | The data type to store flag bits. | |
| T | The enum type whose constant values mean bit number. The each value of the enum constants must be less than the number of bits of the data type. |
| D pgFlag< D, T >::getValue | ( | ) | const [inline] |
| bool pgFlag< D, T >::isOff | ( | T | flag | ) | const [inline] |
Returns whether the specified flag is off.
| [in] | flag | A flag which is a value of the enum constants. |
| bool pgFlag< D, T >::isOn | ( | T | flag | ) | const [inline] |
Returns whether the specified flag is on.
| [in] | flag | A flag which is a value of the enum constants. |
| void pgFlag< D, T >::set | ( | T | flag, | |
| bool | is_on | |||
| ) | [inline] |
Sets the specified flag to the specified value.
| [in] | flag | A flag which is a value of the enum constants. |
| [in] | is_on | If true, the flag is set on. Otherwise, the flag is set off. |
| void pgFlag< D, T >::setOff | ( | T | flag | ) | [inline] |
Sets the specified flag off.
| [in] | flag | A flag which is a value of the enum constants. |
| void pgFlag< D, T >::setOn | ( | T | flag | ) | [inline] |
Sets the specified flag on.
| [in] | flag | A flag which is a value of the enum constants. |
1.5.8