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 & StateBuilder> | |
bool | is () const |
Returns whether the state created by StateBuilder 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 & StateBuilder> | |
const auto & | substate () const |
Returns the maki::state object created by StateBuilder (of type maki::state_builder ). 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:
maki::state_builder::pretty_name()
, if any;maki::state_builder
variable, without scope nor template argument list.