Maki
|
#include <maki/state.hpp>
Public Member Functions | |
state (const state &)=delete | |
state (state &&)=delete | |
const auto & | context () const |
Returns the context instantiated at construction. | |
template<const auto & StateMold> | |
bool | is () const |
Returns whether the state created by StateMold is active. Only valid if state is composite and only made of one region. | |
state & | operator= (const state &)=delete |
state & | operator= (state &&)=delete |
template<int Index> | |
const auto & | region () const |
Returns the maki::region object at index Index. Only valid if state is composite. | |
template<const auto & StateMold> | |
const auto & | substate () const |
Returns the maki::state object created by StateMold (of type maki::state_mold). Only valid if state is composite and only made of one region. |
Static Public Member Functions | |
static std::string_view | pretty_name () |
The pretty name of the state. |
Represents a state.
Impl | implementation detail |
Objects of this type can only be created by Maki itself.
|
staticnodiscard |
The pretty name of the state.
Returns either: