FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::ExpandedFst< A > Class Template Referenceabstract

#include <expanded-fst.h>

Inheritance diagram for fst::ExpandedFst< A >:
Inheritance graph
[legend]
Collaboration diagram for fst::ExpandedFst< A >:
Collaboration graph
[legend]

Public Types

using Arc = A
 
using StateId = typename Arc::StateId
 
- Public Types inherited from fst::Fst< A >
using Arc = A
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

virtual StateId NumStates () const =0
 
std::optional< StateIdNumStatesIfKnown () const override
 
ExpandedFstCopy (bool safe=false) const override=0
 
- Public Member Functions inherited from fst::Fst< A >
virtual ~Fst ()=default
 
virtual StateId Start () const =0
 
virtual Weight Final (StateId) const =0
 
virtual size_t NumArcs (StateId) const =0
 
virtual size_t NumInputEpsilons (StateId) const =0
 
virtual size_t NumOutputEpsilons (StateId) const =0
 
virtual uint64_t Properties (uint64_t mask, bool test) const =0
 
virtual const std::string & Type () const =0
 
virtual bool Write (std::ostream &strm, const FstWriteOptions &opts) const
 
virtual bool Write (const std::string &source) const
 
virtual const SymbolTableInputSymbols () const =0
 
virtual const SymbolTableOutputSymbols () const =0
 
virtual void InitStateIterator (StateIteratorData< Arc > *data) const =0
 
virtual void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const =0
 
virtual MatcherBase< Arc > * InitMatcher (MatchType match_type) const
 

Static Public Member Functions

static ExpandedFstRead (std::istream &strm, const FstReadOptions &opts)
 
static ExpandedFstRead (std::string_view source)
 
- Static Public Member Functions inherited from fst::Fst< A >
static FstRead (std::istream &strm, const FstReadOptions &opts)
 
static FstRead (const std::string &source)
 

Additional Inherited Members

- Protected Member Functions inherited from fst::Fst< A >
bool WriteFile (const std::string &source) const
 

Detailed Description

template<class A>
class fst::ExpandedFst< A >

Definition at line 46 of file expanded-fst.h.

Member Typedef Documentation

template<class A>
using fst::ExpandedFst< A >::Arc = A

Definition at line 48 of file expanded-fst.h.

template<class A>
using fst::ExpandedFst< A >::StateId = typename Arc::StateId

Definition at line 49 of file expanded-fst.h.

Member Function Documentation

template<class A>
ExpandedFst* fst::ExpandedFst< A >::Copy ( bool  safe = false) const
overridepure virtual
template<class A>
virtual StateId fst::ExpandedFst< A >::NumStates ( ) const
pure virtual
template<class A>
std::optional<StateId> fst::ExpandedFst< A >::NumStatesIfKnown ( ) const
inlineoverridevirtual

Reimplemented from fst::Fst< A >.

Definition at line 53 of file expanded-fst.h.

template<class A>
static ExpandedFst* fst::ExpandedFst< A >::Read ( std::istream &  strm,
const FstReadOptions opts 
)
inlinestatic

Definition at line 61 of file expanded-fst.h.

template<class A>
static ExpandedFst* fst::ExpandedFst< A >::Read ( std::string_view  source)
inlinestatic

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


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