Awali
Another Weighted Automata library
Public Member Functions | Protected Types | Protected Attributes
awali::sttc::internal::efsmer< Aut > Class Template Reference

Format automaton to EFSM format, based on FSM format. More...

#include <fsm.hh>

Inheritance diagram for awali::sttc::internal::efsmer< Aut >:
awali::sttc::internal::outputter< Aut >

Public Member Functions

void operator() ()
 Actually output aut_ on os_. More...
 
- Public Member Functions inherited from awali::sttc::internal::outputter< Aut >
 outputter (const automaton_t &aut, std::ostream &out)
 
virtual ~outputter ()=default
 

Protected Types

using automaton_t = Aut
 
using label_t = typename super_type::label_t
 
using super_type = outputter< Aut >
 
- Protected Types inherited from awali::sttc::internal::outputter< Aut >
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 Attributes

const automaton_taut_
 The automaton we have to output. More...
 
const labelset_t_of< automaton_t > & ls_
 Short-hand to the labelset. More...
 
std::ostream & os_
 Output stream. More...
 
const weightset_tws_
 Short-hand to the weightset. More...
 
- Protected Attributes inherited from awali::sttc::internal::outputter< Aut >
const automaton_taut_
 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_tws_ = *aut_->weightset()
 Short-hand to the weightset. More...
 

Additional Inherited Members

- Protected Member Functions inherited from awali::sttc::internal::outputter< Aut >
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...
 
void output_transitions_ ()
 Output transitions, sorted lexicographically. More...
 

Detailed Description

template<typename Aut>
class awali::sttc::internal::efsmer< Aut >

Format automaton to EFSM format, based on FSM format.

Template Parameters
Autan automaton type, not a pointer type.

http://www2.research.att.com/~fsmtools/fsm/man4/fsm.5.html

Member Typedef Documentation

◆ automaton_t

template<typename Aut >
using awali::sttc::internal::efsmer< Aut >::automaton_t = Aut
protected

◆ label_t

template<typename Aut >
using awali::sttc::internal::efsmer< Aut >::label_t = typename super_type::label_t
protected

◆ super_type

template<typename Aut >
using awali::sttc::internal::efsmer< Aut >::super_type = outputter<Aut>
protected

Member Function Documentation

◆ operator()()

template<typename Aut >
void awali::sttc::internal::efsmer< Aut >::operator() ( )

Actually output aut_ on os_.

Field Documentation

◆ aut_

template<typename Aut >
const automaton_t& awali::sttc::internal::outputter< Aut >::aut_
protected

The automaton we have to output.

◆ ls_

template<typename Aut >
const labelset_t_of<automaton_t>& awali::sttc::internal::outputter< Aut >::ls_
protected

Short-hand to the labelset.

◆ os_

template<typename Aut >
std::ostream& awali::sttc::internal::outputter< Aut >::os_
protected

Output stream.

◆ ws_

template<typename Aut >
const weightset_t& awali::sttc::internal::outputter< Aut >::ws_
protected

Short-hand to the weightset.


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