31 template <
typename Decorated,
47 template <
size_t... I>
48 using seq =
typename tuple_automaton_impl::template
seq<I...>;
68 template <
typename... T>
80 return aut_->origins();
91 self.add_transitions(s, sn);
107 template <Automaton A>
113 template <
typename... Args>
116 return aut_->template state<Lazy>(std::forward<Args>(args)...);
120 std::tuple<typename transition_map_t<Auts>::map_t&...>
126 template <
size_t... I>
127 std::tuple<typename transition_map_t<Auts>::map_t&...>
lazy_tuple_automaton(Aut aut, const Auts &... auts)
auto set_lazy(Args &&... args) -> decltype(aut_-> set_lazy(std::forward< Args >(args)...))
std::tuple< state_t_of< Auts >... > state_name_t
State names: Tuple of states of input automata.
std::tuple< transition_map_t< Auts >... > transition_maps_
Transition caches.
tuple_automaton< Aut, Auts... > tuple_automaton_t
The underlying automaton, output and inputs.
Aggregate an automaton, and forward calls to it.
state_t state(Args &&... args)
Conversion from state name to state number.
boost::flyweight< std::string, boost::flyweights::no_tracking, boost::flyweights::intermodule_holder > symbol
An internalized string.
typename tuple_automaton_t::element_type tuple_automaton_impl
typename context_t::weightset_t weightset_t
std::shared_ptr< detail::tuple_automaton_impl< Auts... > > tuple_automaton
A tuple automaton as a shared pointer.
typename detail::weightset_t_of_impl< base_t< ValueSet > >::type weightset_t_of
auto all_out(const Aut &aut, state_t_of< Aut > s)
Indexes of transitions leaving state s.
typename tuple_automaton_impl::state_name_t state_name_t
typename tuple_automaton_impl::template seq< I... > seq
auto is_lazy(Args &&... args) const -> decltype(aut_-> is_lazy(std::forward< Args >(args)...))
const weightset_t & ws_
The resulting weightset.
weightset_t_of< Aut > weightset_t
Cache the outgoing transitions of an automaton as efficient maps label -> vector<(weight, dst)>.
auto origins() const -> decltype(aut_->origins())
A map from result state to tuple of original states.
auto make_tuple_automaton(const Auts &... auts) -> tuple_automaton< Auts... >
static symbol sname_(const T &... t)
static std::string sname_(const T &... t)
The sname of the sub automata.
Decorator implementing the laziness for an algorithm.
std::tuple< typename transition_map_t< Auts >::map_t &... > out_(const state_name_t &ss, seq< I... >)
std::tuple< typename transition_map_t< Auts >::map_t &... > out_(const state_name_t &ss)
The outgoing tuple of transitions from state tuple ss.
auto all_out(state_t s) const -> decltype(all_out(aut_, s))
All the outgoing transitions.
Build the (accessible part of the) product.
automaton_t aut_
The wrapped automaton, possibly const.
void complete_(state_t s) const
Complete a state: find its outgoing transitions.
static constexpr auto pre(Args &&... args) -> decltype(element_type::pre(std::forward< Args >(args)...))
typename super_t::state_t state_t
Result state type.
state_t_of< automaton_t > state_t