10#include "detail/impl.hpp"
26#ifndef MAKI_DETAIL_DOXYGEN
27 template<
class... Args>
28 region(Args&&... args):
29 impl_(
this, std::forward<Args>(args)...)
34 region(
const region&) =
delete;
35 region(region&&) =
delete;
36 region& operator=(
const region&) =
delete;
37 region& operator=(region&&) =
delete;
43 template<const auto& StateBuilder>
44 [[nodiscard]]
bool is()
const
53 template<const auto& StateBuilder>
54 [[nodiscard]]
const auto&
state()
const
62#ifdef MAKI_DETAIL_DOXYGEN
65 static constexpr auto path()
72 using impl_type = Impl;
74 MAKI_DETAIL_FRIENDLY_IMPL
Encodes a path to a state or region.
Definition path.hpp:24
bool is() const
Returns whether the state created by StateBuilder is active.
Definition region.hpp:44
const auto & state() const
Returns the maki::state object created by StateBuilder (of type maki::state_builder).
Definition region.hpp:54
static constexpr maki::path< IMPLEMENTATION_DETAIL > path()
Returns the path to the region.
Definition region.hpp:63