5 #include <boost/range/algorithm/sort.hpp>
23 template <Automaton Aut>
70 std::vector<transition_t> ts;
85 for (
auto s:
aut_->states())
104 res.emplace_back(
aut_->dst_of(t));
114 res.emplace_back(
aut_->src_of(t));
typename detail::weight_t_of_impl< base_t< ValueSet >>::type weight_t_of
context_t_of< automaton_t > context_t
Factor common bits in automaton formatting.
void print_transitions_()
Output transitions, sorted lexicographically.
Compare transitions of an automaton.
typename detail::transition_t_of_impl< base_t< ValueSet >>::type transition_t_of
const polynomialset_t ps_
Short-hand to the polynomialset used to print the entries.
const weightset_t & ws_
Short-hand to the weightset.
printer(const automaton_t &aut, std::ostream &out)
typename detail::labelset_t_of_impl< base_t< ValueSet >>::type labelset_t_of
typename detail::context_t_of_impl< base_t< ValueSet >>::type context_t_of
states_t initials_()
The list of initial states, sorted.
weight_t_of< automaton_t > weight_t
auto out(const Aut &aut, state_t_of< Aut > s)
Indexes of visible transitions leaving state s.
states_t finals_()
The list of final states, sorted.
virtual std::string label_(const label_t &l) const
Convert a label to its representation.
typename polynomialset_t::value_t polynomial_t
void list_states_(const states_t &ss)
List names of states in ss, preceded by ' '.
typename detail::state_t_of_impl< base_t< ValueSet >>::type state_t_of
virtual void print_transition_(transition_t t) const
Output the transition t.
typename detail::label_t_of_impl< base_t< ValueSet >>::type label_t_of
transition_t_of< automaton_t > transition_t
state_t_of< automaton_t > state_t
std::ostream & os_
Output stream.
std::string to_string(direction d)
Conversion to string.
weightset_t_of< automaton_t > weightset_t
label_t_of< automaton_t > label_t
std::vector< state_t > states_t
A list of states.
auto initial_transitions(const Aut &aut) -> decltype(aut->all_out(aut->pre()))
Indexes of transitions to (visible) initial states.
typename detail::weightset_t_of_impl< base_t< ValueSet >>::type weightset_t_of
const labelset_t_of< automaton_t > & ls_
Short-hand to the labelset.
auto sort(const Aut &a) -> permutation_automaton< Aut >
automaton_t aut_
The automaton we have to output.
Provide a variadic mul on top of a binary mul(), and one().
auto final_transitions(const Aut &aut) -> decltype(aut->all_in(aut->post()))
Indexes of transitions from (visible) final states.
void print_state_(const state_t s)
Output transitions, sorted lexicographically on (Label, Dest).