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

Encodes a path to a state or region. More...

#include <maki/path.hpp>

Public Member Functions

std::string to_string () const
 Returns a textual representation of the path.
 

Detailed Description

template<class Impl>
class maki::path< Impl >

Encodes a path to a state or region.

Template Parameters
Implimplementation detail

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

Member Function Documentation

◆ to_string()

template<class Impl>
std::string maki::path< Impl >::to_string ( ) const
nodiscard

Returns a textual representation of the path.

For example the string "0/my_state/1" represents the path to the second region (index 1) of a composite state whose pretty name is "my_state" and that is part of the first region (index 0) of a state machine.