The Sparta Modeling Framework
|
Boolean with a default capable of being changed to the opposite value only. it can never set to the default even if already at the default value. More...
#include <Utils.hpp>
Public Member Functions | |
OneWayBool ()=default | |
Default construction. Defaults to template argument 'Default'. | |
OneWayBool (bool value) | |
operator bool () const | |
Get current value as a bool. | |
bool | operator== (bool b) const |
Compare value with a bool. | |
template<bool ArgDefault> | |
bool | operator== (const OneWayBool< ArgDefault > &b) const |
Compare value with another OneWayBool. | |
template<bool ArgDefault> | |
bool | operator= (const OneWayBool< ArgDefault > &b) |
Assign value from another OneWayBool. | |
bool | operator= (bool b) |
Assign value from a bool. | |
void | set_DEPRECATED (bool b) |
set this object arbitrarily | |
Boolean with a default capable of being changed to the opposite value only. it can never set to the default even if already at the default value.
Default | default value of this bool. The bool can never be change to this value, only to the opposite |
|
inline |
|
inline |
|
inline |
|
inline |
Assign value from another OneWayBool.
[in] | b | Value to assign; must currently be equal to !Default. |
|
inline |
|
inline |
Compare value with another OneWayBool.
|
inline |
set this object arbitrarily