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 & 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.
 
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 & 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.
 

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>
static std::string_view maki::state< Impl >::pretty_name ( )
staticnodiscard

The pretty name of the state.

Returns either: