No-op specialization used when no custom flags are needed. More...
#include <CustomFlaggable.h>
Public Member Functions | |
| std::enable_if_t<!std::is_void_v< T >, bool > | checkFlag (T state) const |
| Return the current value of a flag. | |
| std::enable_if_t<!std::is_void_v< T > > | disableFlag (T state) |
Set a flag to false. | |
| std::enable_if_t<!std::is_void_v< T > > | enableFlag (T state) |
Set a flag to true. | |
| std::enable_if_t<!std::is_void_v< T > > | setFlag (T state, bool status) |
| Set a flag to an explicit value. | |
| std::enable_if_t<!std::is_void_v< T > > | toggleFlag (T state) |
Flip a flag between true and false. | |
No-op specialization used when no custom flags are needed.
Instantiated automatically when a manifest omits the Flags enum. Produces no storage overhead and no methods, allowing GatherFlags to safely include it in the inheritance chain without changing the public API.
Definition at line 121 of file CustomFlaggable.h.
| std::enable_if_t<!std::is_void_v< T >, bool > ml::CustomFlaggable< void >::checkFlag | ( | T | state | ) | const |
Return the current value of a flag.
Returns false for any flag that has never been explicitly set.
| state | The flag to query. |
true if the flag is set; false otherwise. | std::enable_if_t<!std::is_void_v< T > > ml::CustomFlaggable< void >::disableFlag | ( | T | state | ) |
Set a flag to false.
| state | The flag to disable. |
| std::enable_if_t<!std::is_void_v< T > > ml::CustomFlaggable< void >::enableFlag | ( | T | state | ) |
Set a flag to true.
| state | The flag to enable. |
| std::enable_if_t<!std::is_void_v< T > > ml::CustomFlaggable< void >::setFlag | ( | T | state, |
| bool | status ) |
Set a flag to an explicit value.
| state | The flag to modify. |
| status | true to enable the flag, false to disable it. |
| std::enable_if_t<!std::is_void_v< T > > ml::CustomFlaggable< void >::toggleFlag | ( | T | state | ) |
Flip a flag between true and false.
| state | The flag to toggle. |