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