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 doesn't have the GetArc function). It assumes that the FST can have only one arc for any given input symbol, which makes the GetArc function below possible. Note: we don't use "const" in this interface, because it creates problems when we do things like caching.

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

Member Typedef Documentation

typedef Arc::Label Label

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

typedef Arc::StateId StateId

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

typedef Arc::Weight Weight

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

Constructor & Destructor Documentation

virtual ~DeterministicOnDemandFst ( )

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

87 { }

Member Function Documentation

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