Classes | Public Types | Public Member Functions

fst::RmEpsilonState< Arc, Queue > Class Template Reference

Computation state of the epsilon-removal algorithm. More...

#include <fst/rmepsilon.h>

Collaboration diagram for fst::RmEpsilonState< Arc, Queue >:
Collaboration graph
[legend]

List of all members.

Classes

struct  Element
class  ElementEqual
class  ElementKey

Public Types

typedef Arc::Label Label
typedef Arc::StateId StateId
typedef Arc::Weight Weight

Public Member Functions

 RmEpsilonState (const Fst< Arc > &fst, vector< Weight > *distance, const RmEpsilonOptions< Arc, Queue > &opts)
void Expand (StateId s)
 Compute arcs and final weight for state 's'.
vector< Arc > & Arcs ()
 Returns arcs of expanded state.
const WeightFinal () const
 Returns final weight of expanded state.
bool Error () const
 Return true if an error has occured.

Detailed Description

template<class Arc, class Queue>
class fst::RmEpsilonState< Arc, Queue >

Computation state of the epsilon-removal algorithm.

Definition at line 71 of file rmepsilon.h.


Member Typedef Documentation

template<class Arc, class Queue>
typedef Arc::Label fst::RmEpsilonState< Arc, Queue >::Label

Definition at line 73 of file rmepsilon.h.

template<class Arc, class Queue>
typedef Arc::StateId fst::RmEpsilonState< Arc, Queue >::StateId

Definition at line 74 of file rmepsilon.h.

template<class Arc, class Queue>
typedef Arc::Weight fst::RmEpsilonState< Arc, Queue >::Weight

Definition at line 75 of file rmepsilon.h.


Constructor & Destructor Documentation

template<class Arc, class Queue>
fst::RmEpsilonState< Arc, Queue >::RmEpsilonState ( const Fst< Arc > &  fst,
vector< Weight > *  distance,
const RmEpsilonOptions< Arc, Queue > &  opts 
) [inline]

Definition at line 77 of file rmepsilon.h.


Member Function Documentation

template<class Arc, class Queue>
vector<Arc>& fst::RmEpsilonState< Arc, Queue >::Arcs (  )  [inline]

Returns arcs of expanded state.

Definition at line 87 of file rmepsilon.h.

template<class Arc, class Queue>
bool fst::RmEpsilonState< Arc, Queue >::Error (  )  const [inline]

Return true if an error has occured.

Definition at line 93 of file rmepsilon.h.

template<class Arc, class Queue>
void fst::RmEpsilonState< Arc, Queue >::Expand ( StateId  s  ) 

Compute arcs and final weight for state 's'.

template<class Arc, class Queue>
const Weight& fst::RmEpsilonState< Arc, Queue >::Final (  )  const [inline]

Returns final weight of expanded state.

Definition at line 90 of file rmepsilon.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines