30 template <
typename Decorated,
46 template <
size_t... I>
47 using seq =
typename tuple_automaton_impl::template
seq<I...>;
61 # pragma clang diagnostic push 62 # pragma clang diagnostic ignored "-Wuninitialized" 72 # pragma clang diagnostic pop 74 template <
typename... T>
86 return aut_->origins();
97 self.add_transitions(s, sn);
113 template <Automaton A>
119 template <
typename... Args>
122 return aut_->template state<Lazy>(std::forward<Args>(args)...);
126 std::tuple<typename transition_map_t<Auts>::map_t&...>
132 template <
size_t... I>
133 std::tuple<typename transition_map_t<Auts>::map_t&...>
auto make_tuple_automaton(const Auts &... auts) -> tuple_automaton< Auts... >
typename detail::weightset_t_of_impl< base_t< ValueSet > >::type weightset_t_of
typename tuple_automaton_t::element_type tuple_automaton_impl
weightset_t_of< Aut > weightset_t
typename tuple_automaton_impl::state_name_t state_name_t
Decorator implementing the laziness for an algorithm.
Build the (accessible part of the) product.
std::tuple< state_t_of< Auts >... > state_name_t
State names: Tuple of states of input automata.
lazy_tuple_automaton(Aut aut, const Auts &... auts)
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.
automaton_t aut_
The wrapped automaton, possibly const.
tuple_automaton< Aut, Auts... > tuple_automaton_t
The underlying automaton, output and inputs.
void complete_(state_t s) const
Complete a state: find its outgoing transitions.
static symbol sname_(const T &... t)
auto all_out(const Aut &aut, state_t_of< Aut > s)
Indexes of transitions leaving state s.
static constexpr auto pre(Args &&... args) -> decltype(element_type::pre(std::forward< Args >(args)...))
auto origins() const -> decltype(aut_->origins())
A map from result state to tuple of original states.
Cache the outgoing transitions of an automaton as efficient maps label -> vector<(weight, dst)>.
std::shared_ptr< detail::tuple_automaton_impl< Auts... > > tuple_automaton
A tuple automaton as a shared pointer.
auto set_lazy(Args &&... args) -> decltype(aut_-> set_lazy(std::forward< Args >(args)...))
Aggregate an automaton, and forward calls to it.
std::tuple< typename transition_map_t< Auts >::map_t &... > out_(const state_name_t &ss)
The outgoing tuple of transitions from state tuple ss.
typename context_t::weightset_t weightset_t
typename super_t::state_t state_t
Result state type.
typename tuple_automaton_impl::template seq< I... > seq
std::tuple< transition_map_t< Auts >... > transition_maps_
Transition caches.
auto all_out(state_t s) const -> decltype(all_out(aut_, s))
All the outgoing transitions.
std::tuple< typename transition_map_t< Auts >::map_t &... > out_(const state_name_t &ss, seq< I... >)
const weightset_t & ws_
The resulting weightset.
static std::string sname_(const T &... t)
The sname of the sub automata.
state_t_of< automaton_t > state_t
auto is_lazy(Args &&... args) const -> decltype(aut_-> is_lazy(std::forward< Args >(args)...))