![]() |
Vcsn
2.1
Be Rational
|
Factor common bits in automaton formatting. More...
#include <grail.hh>
Public Types | |
| using | state_t = state_t_of< automaton_t > |
Public Member Functions | |
| outputter (const automaton_t &aut, std::ostream &out) | |
Protected Types | |
| using | automaton_t = Aut |
| using | context_t = context_t_of< automaton_t > |
| using | label_t = label_t_of< automaton_t > |
| using | transition_t = transition_t_of< automaton_t > |
| using | weightset_t = weightset_t_of< automaton_t > |
| using | weight_t = weight_t_of< automaton_t > |
| using | polynomialset_t = polynomialset< context_t > |
| using | polynomial_t = typename polynomialset_t::value_t |
| using | states_t = std::vector< state_t > |
| A list of states. More... | |
Protected Member Functions | |
| virtual std::string | label_ (const label_t &l) const |
| Convert a label to its representation. More... | |
| virtual void | output_transition_ (transition_t t) const |
| Output the transition t. More... | |
| void | output_state_ (const state_t s) |
| Output transitions, sorted lexicographically on (Label, Dest). More... | |
| void | output_transitions_ () |
| Output transitions, sorted lexicographically. More... | |
| void | list_states_ (const states_t &ss) |
| List names of states in ss, preceded by ' '. More... | |
| states_t | initials_ () |
| The list of initial states, sorted. More... | |
| states_t | finals_ () |
| The list of final states, sorted. More... | |
Protected Attributes | |
| automaton_t | aut_ |
| The automaton we have to output. More... | |
| std::ostream & | os_ |
| Output stream. More... | |
| const labelset_t_of< automaton_t > & | ls_ = *aut_->labelset() |
| Short-hand to the labelset. More... | |
| const weightset_t & | ws_ = *aut_->weightset() |
| Short-hand to the weightset. More... | |
| const polynomialset_t | ps_ {aut_->context()} |
| Short-hand to the polynomialset used to print the entries. More... | |
Factor common bits in automaton formatting.
| Aut | an automaton type. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| using vcsn::detail::outputter< Aut >::state_t = state_t_of<automaton_t> |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
|
inlineprotected |
The list of final states, sorted.
Definition at line 114 of file grail.hh.
References vcsn::detail::outputter< Aut >::aut_, and vcsn::sort().
Referenced by vcsn::detail::fadoer< Aut >::operator()(), vcsn::detail::grailer< Aut >::operator()(), and vcsn::detail::dotter< Aut >::print_states_().
|
inlineprotected |
The list of initial states, sorted.
Definition at line 104 of file grail.hh.
References vcsn::detail::outputter< Aut >::aut_, and vcsn::sort().
Referenced by vcsn::detail::fadoer< Aut >::operator()(), vcsn::detail::grailer< Aut >::operator()(), and vcsn::detail::dotter< Aut >::print_states_().
|
inlineprotectedvirtual |
Convert a label to its representation.
Definition at line 57 of file grail.hh.
References vcsn::detail::outputter< Aut >::ls_, and vcsn::to_string().
Referenced by vcsn::detail::outputter< Aut >::output_transition_().
|
inlineprotected |
List names of states in ss, preceded by ' '.
Definition at line 94 of file grail.hh.
References vcsn::detail::outputter< Aut >::aut_, and vcsn::detail::outputter< Aut >::os_.
Referenced by vcsn::detail::fadoer< Aut >::operator()().
|
inlineprotected |
Output transitions, sorted lexicographically on (Label, Dest).
Definition at line 72 of file grail.hh.
References vcsn::detail::outputter< Aut >::aut_, vcsn::detail::outputter< Aut >::os_, vcsn::detail::outputter< Aut >::output_transition_(), and vcsn::sort().
Referenced by vcsn::detail::outputter< Aut >::output_transitions_(), and vcsn::detail::efsmer< Aut >::output_transitions_().
|
inlineprotectedvirtual |
Output the transition t.
Do not insert eol. "Src Label Dst".
Definition at line 64 of file grail.hh.
References vcsn::detail::outputter< Aut >::aut_, vcsn::detail::outputter< Aut >::label_(), and vcsn::detail::outputter< Aut >::os_.
Referenced by vcsn::detail::outputter< Aut >::output_state_().
|
inlineprotected |
Output transitions, sorted lexicographically.
"Src Label Dst\n".
Definition at line 87 of file grail.hh.
References vcsn::detail::outputter< Aut >::aut_, and vcsn::detail::outputter< Aut >::output_state_().
Referenced by vcsn::detail::fadoer< Aut >::operator()(), and vcsn::detail::grailer< Aut >::operator()().
|
protected |
The automaton we have to output.
Definition at line 124 of file grail.hh.
Referenced by vcsn::detail::outputter< Aut >::finals_(), vcsn::detail::outputter< Aut >::initials_(), vcsn::detail::outputter< Aut >::list_states_(), vcsn::detail::outputter< Aut >::output_state_(), vcsn::detail::outputter< Aut >::output_transition_(), vcsn::detail::efsmer< Aut >::output_transition_(), vcsn::detail::outputter< Aut >::output_transitions_(), vcsn::detail::efsmer< Aut >::output_transitions_(), vcsn::detail::dotter< Aut >::print_prologue_(), vcsn::detail::dotter< Aut >::print_state_(), vcsn::detail::tikzer< Aut >::print_states_(), vcsn::detail::dotter< Aut >::print_states_(), vcsn::detail::tikzer< Aut >::print_transitions_(), and vcsn::detail::dotter< Aut >::print_transitions_().
|
protected |
Short-hand to the labelset.
Definition at line 128 of file grail.hh.
Referenced by vcsn::detail::outputter< Aut >::label_(), and vcsn::detail::efsmer< Aut >::output_label_().
|
protected |
Output stream.
Definition at line 126 of file grail.hh.
Referenced by vcsn::detail::outputter< Aut >::list_states_(), vcsn::detail::tikzer< Aut >::operator()(), vcsn::detail::efsmer< Aut >::operator()(), vcsn::detail::dotter< Aut >::operator()(), vcsn::detail::efsmer< Aut >::output_label_(), vcsn::detail::outputter< Aut >::output_state_(), vcsn::detail::outputter< Aut >::output_transition_(), vcsn::detail::efsmer< Aut >::output_transition_(), vcsn::detail::efsmer< Aut >::output_transitions_(), vcsn::detail::tikzer< Aut >::print_finitial_(), vcsn::detail::tikzer< Aut >::print_states_(), and vcsn::detail::tikzer< Aut >::print_transitions_().
|
protected |
Short-hand to the polynomialset used to print the entries.
Definition at line 132 of file grail.hh.
Referenced by vcsn::detail::tikzer< Aut >::print_transitions_(), and vcsn::detail::dotter< Aut >::print_transitions_().
|
protected |
Short-hand to the weightset.
Definition at line 130 of file grail.hh.
Referenced by vcsn::detail::efsmer< Aut >::arc_type_(), vcsn::detail::dotter< Aut >::format_(), vcsn::detail::efsmer< Aut >::output_transition_(), vcsn::detail::efsmer< Aut >::output_transitions_(), and vcsn::detail::tikzer< Aut >::print_finitial_().