25 #ifndef INCLUDED_Flag_h_GUID_9D7B0F8D_1156_4B8A_21D0_64729F213C14
26 #define INCLUDED_Flag_h_GUID_9D7B0F8D_1156_4B8A_21D0_64729F213C14
49 explicit operator bool()
const {
return get(); }
52 bool get()
const {
return m_val; }
55 void set() { m_val =
true; }
78 #endif // INCLUDED_Flag_h_GUID_9D7B0F8D_1156_4B8A_21D0_64729F213C14
The main namespace for all C++ elements of the framework, internal and external.
Flag()
Initialize the flag as false.
Flag & operator+=(Flag const &rhs)
Update the flag with another flag.
void reset()
Reset the flag back to false.
Flag & operator+=(bool newVal)
Update the flag with (typically) a function call result: state is true if state was true or newVal is...
void set()
Set the flag to true.
A class that lightly wraps a bool, in order to provide easier maintenance of a "dirty" flag...