Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
vcsn::detail::grailer< Aut > Class Template Reference

Format an automaton into Fado. More...

#include <grail.hh>

Inheritance diagram for vcsn::detail::grailer< Aut >:
Collaboration diagram for vcsn::detail::grailer< Aut >:

Public Member Functions

void operator() ()
 Actually output aut_ on os_. More...
 
- Public Member Functions inherited from vcsn::detail::outputter< Aut >
 outputter (const automaton_t &aut, std::ostream &out)
 

Private Types

using super_t = outputter< Aut >
 
using automaton_t = Aut
 
using state_t = state_t_of< automaton_t >
 
using transition_t = transition_t_of< automaton_t >
 

Additional Inherited Members

- Public Types inherited from vcsn::detail::outputter< Aut >
using state_t = state_t_of< automaton_t >
 
- Protected Types inherited from vcsn::detail::outputter< Aut >
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 states_t = std::vector< state_t >
 A list of states. More...
 
- Protected Member Functions inherited from vcsn::detail::outputter< Aut >
virtual std::string label_ (const label_t &l)
 Convert a label to its representation. More...
 
virtual void output_transition_ (transition_t t)
 Output the transition t. More...
 
std::ostream & print_entry_ (state_t src, state_t dst, std::ostream &os, const std::string &fmt="text")
 The labels and weights of transitions from src to dst. 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 inherited from vcsn::detail::outputter< Aut >
const automaton_taut_
 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_tws_ = *aut_->weightset()
 Short-hand to the weightset. More...
 
const polynomialset
< context_t_of< automaton_t > > 
ps_ {aut_->context()}
 Short-hand to the polynomialset used to print the entries. More...
 

Detailed Description

template<typename Aut>
class vcsn::detail::grailer< Aut >

Format an automaton into Fado.

Template Parameters
Autan automaton type, not a pointer type.

See https://cs.uwaterloo.ca/research/tr/1993/01/93-01.pdf.

Definition at line 266 of file grail.hh.

Member Typedef Documentation

template<typename Aut >
using vcsn::detail::outputter< Aut >::automaton_t = Aut
private

Definition at line 30 of file grail.hh.

template<typename Aut >
using vcsn::detail::outputter< Aut >::state_t = state_t_of<automaton_t>
private

Definition at line 40 of file grail.hh.

template<typename Aut >
using vcsn::detail::grailer< Aut >::super_t = outputter<Aut>
private

Definition at line 273 of file grail.hh.

template<typename Aut >
using vcsn::detail::outputter< Aut >::transition_t = transition_t_of<automaton_t>
private

Definition at line 45 of file grail.hh.

Member Function Documentation

template<typename Aut >
void vcsn::detail::grailer< Aut >::operator() ( )
inline

Actually output aut_ on os_.

Definition at line 290 of file grail.hh.

References vcsn::detail::outputter< Aut >::aut_, vcsn::detail::outputter< Aut >::finals_(), vcsn::detail::outputter< Aut >::initials_(), vcsn::detail::outputter< Aut >::os_, and vcsn::detail::outputter< Aut >::output_transitions_().

Here is the call graph for this function:


The documentation for this class was generated from the following file: