![]()  | 
  
    Awali
    
   Another Weighted Automata library 
   | 
 
Factor common bits in automaton formatting. More...
#include <grail.hh>
  
Public Member Functions | |
| outputter (const automaton_t &aut, std::ostream &out) | |
| virtual | ~outputter ()=default | 
Protected Types | |
| using | automaton_t = Aut | 
| using | context_t = context_t_of< automaton_t > | 
| using | label_t = label_t_of< automaton_t > | 
| using | states_t = std::vector< state_t > | 
| A list of states.  More... | |
| using | weight_t = weight_t_of< automaton_t > | 
| using | weightset_t = weightset_t_of< automaton_t > | 
Protected Member Functions | |
| states_t | finals_ () | 
| The list of final states, sorted.  More... | |
| std::string | format_entry_ (state_t src, state_t dst, const std::string &fmt="text") | 
| The labels and weights of transitions from src to dst.  More... | |
| states_t | initials_ () | 
| The list of initial states, sorted.  More... | |
| virtual std::string | label_ (const label_t &l) | 
| Convert a label to its representation.  More... | |
| void | list_states_ (const states_t &ss) | 
| List names of states in ss, preceded by ' '.  More... | |
| void | output_state_ (const state_t s) | 
| Output transitions, sorted lexicographically on (Label, Dest).  More... | |
| virtual void | output_transition_ (transition_t t) | 
| Output the transition t.  More... | |
| void | output_transitions_ () | 
| Output transitions, sorted lexicographically.  More... | |
Protected Attributes | |
| const automaton_t & | aut_ | 
| The automaton we have to output.  More... | |
| const labelset_t_of< automaton_t > & | ls_ = *aut_->labelset() | 
| Short-hand to the labelset.  More... | |
| std::ostream & | os_ | 
| Output stream.  More... | |
| const polynomialset< context_t_of< automaton_t > > | ps_ {aut_->context()} | 
| Short-hand to the polynomialset used to print the entries.  More... | |
| const weightset_t & | ws_ = *aut_->weightset() | 
| Short-hand to the weightset.  More... | |
Factor common bits in automaton formatting.
| Aut | an automaton type. | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
A list of states.
      
  | 
  protected | 
      
  | 
  protected | 
| awali::sttc::internal::outputter< Aut >::outputter | ( | const automaton_t & | aut, | 
| std::ostream & | out | ||
| ) | 
      
  | 
  virtualdefault | 
      
  | 
  protected | 
The list of final states, sorted.
      
  | 
  protected | 
The labels and weights of transitions from src to dst.
The main advantage of using polynomials instead of directly iterating over aut_->outin(src, dst) is to get a result which is sorted (hence more deterministic).
      
  | 
  protected | 
The list of initial states, sorted.
      
  | 
  protectedvirtual | 
Convert a label to its representation.
      
  | 
  protected | 
List names of states in ss, preceded by ' '.
      
  | 
  protected | 
Output transitions, sorted lexicographically on (Label, Dest).
      
  | 
  protectedvirtual | 
Output the transition t.
Do not insert eol. "Src Label Dst".
      
  | 
  protected | 
Output transitions, sorted lexicographically.
"Src Label Dst\n".
      
  | 
  protected | 
The automaton we have to output.
      
  | 
  protected | 
Short-hand to the labelset.
      
  | 
  protected | 
Output stream.
      
  | 
  protected | 
Short-hand to the polynomialset used to print the entries.
      
  | 
  protected | 
Short-hand to the weightset.