18 typename Context = context_t_of<Aut>>
32 template <
typename Ctx = context_t>
36 using kind_t =
typename context_t::kind_t;
40 using label_t =
typename labelset_t::value_t;
44 using weight_t =
typename weightset_t::value_t;
63 std::swap(
aut_, aut.aut_);
69 aut_ = std::move(that.aut_);
92 #define DEFINE(Name) \
93 template <typename... Args> \
96 Name(Args&&... args) \
97 -> decltype(element_type::Name(std::forward<Args>(args)...)) \
99 return element_type::Name(std::forward<Args>(args)...); \
115 #define DEFINE(Name) \
116 template <typename... Args> \
118 Name(Args&&... args) const \
119 -> decltype(aut_->Name(std::forward<Args>(args)...)) \
121 return aut_->Name(std::forward<Args>(args)...); \
164 #define DEFINE(Name) \
165 template <typename... Args> \
167 Name(Args&&... args) \
168 -> decltype(aut_->Name(std::forward<Args>(args)...)) \
170 return aut_->Name(std::forward<Args>(args)...); \
auto weightset(Args &&...args) const -> decltype(aut_-> weightset(std::forward< Args >(args)...))
auto set_transition(Args &&...args) -> decltype(aut_-> set_transition(std::forward< Args >(args)...))
auto new_state(Args &&...args) -> decltype(aut_-> new_state(std::forward< Args >(args)...))
auto del_transition(Args &&...args) -> decltype(aut_-> del_transition(std::forward< Args >(args)...))
auto set_weight(Args &&...args) -> decltype(aut_-> set_weight(std::forward< Args >(args)...))
auto new_transition_copy(Args &&...args) -> decltype(aut_-> new_transition_copy(std::forward< Args >(args)...))
auto is_lazy_in(Args &&...args) const -> decltype(aut_-> is_lazy_in(std::forward< Args >(args)...))
auto add_initial(Args &&...args) -> decltype(aut_-> add_initial(std::forward< Args >(args)...))
auto num_finals(Args &&...args) const -> decltype(aut_-> num_ final s(std
auto weight_of(Args &&...args) const -> decltype(aut_-> weight_of(std::forward< Args >(args)...))
auto all_in(Args &&...args) const -> decltype(aut_-> all_in(std::forward< Args >(args)...))
transition_t_of< automaton_t > transition_t
auto all_transitions(Args &&...args) const -> decltype(aut_-> all_transitions(std::forward< Args >(args)...))
auto num_initials(Args &&...args) const -> decltype(aut_-> num_initials(std::forward< Args >(args)...))
automaton_decorator(const context_t &ctx)
auto unset_initial(Args &&...args) -> decltype(aut_-> unset_initial(std::forward< Args >(args)...))
state_t_of< automaton_t > state_t
auto rmul_weight(Args &&...args) -> decltype(aut_-> rmul_weight(std::forward< Args >(args)...))
auto src_of(Args &&...args) const -> decltype(aut_-> src_of(std::forward< Args >(args)...))
static constexpr auto pre(Args &&...args) -> decltype(element_type::pre(std::forward< Args >(args)...))
auto prepost_label(Args &&...args) const -> decltype(aut_-> prepost_label(std::forward< Args >(args)...))
auto get_initial_weight(Args &&...args) const -> decltype(aut_-> get_initial_weight(std::forward< Args >(args)...))
static constexpr auto post(Args &&...args) -> decltype(element_type::post(std::forward< Args >(args)...))
auto is_initial(Args &&...args) const -> decltype(aut_-> is_initial(std::forward< Args >(args)...))
auto print_set(Args &&...args) const -> decltype(aut_-> print_set(std::forward< Args >(args)...))
auto num_all_states(Args &&...args) const -> decltype(aut_-> num_all_states(std::forward< Args >(args)...))
auto set_initial(Args &&...args) -> decltype(aut_-> set_initial(std::forward< Args >(args)...))
typename context_t::labelset_t labelset_t
auto is_final(Args &&...args) const -> decltype(aut_-> is_ final(std
Aut automaton_t
The type of automaton to wrap.
automaton_t aut_
The wrapped automaton, possibly const.
SharedPtr make_shared_ptr(Args &&...args)
Same as std::make_shared, but parameterized by the shared_ptr type, not the (pointed to) element_type...
auto add_final(Args &&...args) -> decltype(aut_-> add_ final(std
auto print_state_name(Args &&...args) const -> decltype(aut_-> print_state_name(std::forward< Args >(args)...))
auto unset_final(Args &&...args) -> decltype(aut_-> unset_ final(std
typename context_t::weightset_ptr weightset_ptr
auto has_state(Args &&...args) const -> decltype(aut_-> has_state(std::forward< Args >(args)...))
auto get_transition(Args &&...args) const -> decltype(aut_-> get_transition(std::forward< Args >(args)...))
auto set_lazy_in(Args &&...args) -> decltype(aut_-> set_lazy_in(std::forward< Args >(args)...))
typename detail::state_t_of_impl< base_t< ValueSet >>::type state_t_of
automaton_decorator(automaton_t aut)
auto dst_of(Args &&...args) const -> decltype(aut_-> dst_of(std::forward< Args >(args)...))
auto print_state(Args &&...args) const -> decltype(aut_-> print_state(std::forward< Args >(args)...))
auto is_lazy(Args &&...args) const -> decltype(aut_-> is_lazy(std::forward< Args >(args)...))
auto num_states(Args &&...args) const -> decltype(aut_-> num_states(std::forward< Args >(args)...))
typename labelset_t::value_t label_t
auto lmul_weight(Args &&...args) -> decltype(aut_-> lmul_weight(std::forward< Args >(args)...))
Aggregate an automaton, and forward calls to it.
static constexpr auto sname(Args &&...args) -> decltype(element_type::sname(std::forward< Args >(args)...))
typename automaton_t::element_type element_type
The automaton type, without shared_ptr.
auto add_transition_copy(Args &&...args) -> decltype(aut_-> add_transition_copy(std::forward< Args >(args)...))
static constexpr auto null_state(Args &&...args) -> decltype(element_type::null_state(std::forward< Args >(args)...))
automaton_decorator & operator=(automaton_decorator &&that)
auto has_transition(Args &&...args) const -> decltype(aut_-> has_transition(std::forward< Args >(args)...))
typename context_t::kind_t kind_t
typename detail::transition_t_of_impl< base_t< ValueSet >>::type transition_t_of
auto labelset(Args &&...args) const -> decltype(aut_-> labelset(std::forward< Args >(args)...))
auto new_transition(Args &&...args) -> decltype(aut_-> new_transition(std::forward< Args >(args)...))
auto all_states(Args &&...args) const -> decltype(aut_-> all_states(std::forward< Args >(args)...))
context_t_of< Aut > context_t
auto add_weight(Args &&...args) -> decltype(aut_-> add_weight(std::forward< Args >(args)...))
auto set_lazy(Args &&...args) -> decltype(aut_-> set_lazy(std::forward< Args >(args)...))
auto set_final(Args &&...args) -> decltype(aut_-> set_ final(std
auto state_has_name(Args &&...args) const -> decltype(aut_-> state_has_name(std::forward< Args >(args)...))
auto print(Args &&...args) const -> decltype(aut_-> print(std::forward< Args >(args)...))
static dyn::context ctx(const driver &d)
Get the context of the driver.
automaton_decorator(automaton_decorator &&aut)
auto all_out(Args &&...args) const -> decltype(aut_-> all_out(std::forward< Args >(args)...))
auto add_transition(Args &&...args) -> decltype(aut_-> add_transition(std::forward< Args >(args)...))
typename context_t::labelset_ptr labelset_ptr
auto num_transitions(Args &&...args) const -> decltype(aut_-> num_transitions(std::forward< Args >(args)...))
static constexpr auto lazy_transition(Args &&...args) -> decltype(element_type::lazy_transition(std::forward< Args >(args)...))
static constexpr auto null_transition(Args &&...args) -> decltype(element_type::null_transition(std::forward< Args >(args)...))
typename element_type::template fresh_automaton_t< Ctx > fresh_automaton_t
The (shared pointer) type to use it we have to create an automaton of the same (underlying) type...
auto get_final_weight(Args &&...args) const -> decltype(aut_-> get_ final _weight(std
automaton_t strip()
The automaton we decorate.
typename weightset_t::value_t weight_t
auto del_state(Args &&...args) -> decltype(aut_-> del_state(std::forward< Args >(args)...))
typename context_t::weightset_t weightset_t
auto states(Args &&...args) const -> decltype(aut_-> states(std::forward< Args >(args)...))
automaton_decorator(const automaton_decorator &aut)
auto label_of(Args &&...args) const -> decltype(aut_-> label_of(std::forward< Args >(args)...))