All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DeterministicOnDemandFst< Arc > Class Template Referenceabstract

class DeterministicOnDemandFst is an "FST-like" base-class. More...

#include <deterministic-fst.h>

Inheritance diagram for DeterministicOnDemandFst< Arc >:

Public Types

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

Public Member Functions

virtual StateId Start ()=0
 
virtual Weight Final (StateId s)=0
 
virtual bool GetArc (StateId s, Label ilabel, Arc *oarc)=0
 Note: ilabel must not be epsilon. More...
 
virtual ~DeterministicOnDemandFst ()
 

Detailed Description

template<class Arc>
class fst::DeterministicOnDemandFst< Arc >

class DeterministicOnDemandFst is an "FST-like" base-class.

It does not actually inherit from any Fst class because its interface is not exactly the same; it's much smaller. It assumes that the FST can have only one arc for any given input symbol, which makes the GetArc function below possible. (The FST is also assumed to be free of input epsilons). Note: we don't use "const" in this interface, because it creates problems when we do things like caching.

Definition at line 75 of file deterministic-fst.h.

Member Typedef Documentation

typedef Arc::Label Label

Definition at line 79 of file deterministic-fst.h.

typedef Arc::StateId StateId

Definition at line 77 of file deterministic-fst.h.

typedef Arc::Weight Weight

Definition at line 78 of file deterministic-fst.h.

Constructor & Destructor Documentation

virtual ~DeterministicOnDemandFst ( )
inlinevirtual

Definition at line 88 of file deterministic-fst.h.

88 { }

Member Function Documentation


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