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 Definition: RunLoopManager.h:42
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Flag()
Initialize the flag as false.
Definition: Flag.h:46
Flag & operator+=(Flag const &rhs)
Update the flag with another flag.
Definition: Flag.h:64
void reset()
Reset the flag back to false.
Definition: Flag.h:70
Flag & operator+=(bool newVal)
Update the flag with (typically) a function call result: state is true if state was true or newVal is...
Definition: Flag.h:59
A class that lightly wraps a bool, in order to provide easier maintenance of a "dirty" flag...
Definition: Flag.h:43