Maki
Loading...
Searching...
No Matches
maki::state< Impl > Class Template Reference

Represents a state. More...

#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.
stateoperator= (const state &)=delete
stateoperator= (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.

Detailed Description

template<class Impl>
class maki::state< Impl >

Represents a state.

Template Parameters
Implimplementation detail

Objects of this type can only be created by Maki itself.

Member Function Documentation

◆ pretty_name()

template<class Impl>
std::string_view maki::state< Impl >::pretty_name ( )
staticnodiscard

The pretty name of the state.

Returns either: