FST  openfst-1.6.9
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
fst::ConstFst< A, Unsigned > Class Template Reference

#include <const-fst.h>

Inheritance diagram for fst::ConstFst< A, Unsigned >:
Inheritance graph
[legend]
Collaboration diagram for fst::ConstFst< A, Unsigned >:
Collaboration graph
[legend]

Public Types

using Arc = A
 
using StateId = typename Arc::StateId
 
using Impl = internal::ConstFstImpl< A, Unsigned >
 
using ConstState = typename Impl::ConstState
 
- Public Types inherited from fst::ImplToExpandedFst< internal::ConstFstImpl< A, Unsigned > >
using Arc = typename ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::Arc >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ImplToFst< internal::ConstFstImpl< A, Unsigned >, ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::Arc > >
using Arc = typename internal::ConstFstImpl< A, Unsigned >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::Arc >
using Arc = typename internal::ConstFstImpl< A, Unsigned >::Arc
 
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

template<class F , class G >
void friend Cast (const F &, G *)
 
 ConstFst ()
 
 ConstFst (const Fst< Arc > &fst)
 
 ConstFst (const ConstFst< A, Unsigned > &fst, bool safe=false)
 
ConstFst< A, Unsigned > * Copy (bool safe=false) const override
 
bool Write (std::ostream &strm, const FstWriteOptions &opts) const override
 
bool Write (const string &filename) const override
 
void InitStateIterator (StateIteratorData< Arc > *data) const override
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const override
 
- Public Member Functions inherited from fst::ImplToExpandedFst< internal::ConstFstImpl< A, Unsigned > >
StateId NumStates () const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::ConstFstImpl< A, Unsigned >, ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::Arc > >
StateId Start () const override
 
Weight Final (StateId s) const override
 
size_t NumArcs (StateId s) const override
 
size_t NumInputEpsilons (StateId s) const override
 
size_t NumOutputEpsilons (StateId s) const override
 
uint64 Properties (uint64 mask, bool test) const override
 
const string & Type () const override
 
const SymbolTableInputSymbols () const override
 
const SymbolTableOutputSymbols () const override
 
- Public Member Functions inherited from fst::Fst< A >
virtual ~Fst ()
 
virtual MatcherBase< Arc > * InitMatcher (MatchType match_type) const
 

Static Public Member Functions

static ConstFst< A, Unsigned > * Read (std::istream &strm, const FstReadOptions &opts)
 
static ConstFst< A, Unsigned > * Read (const string &filename)
 
template<class FST >
static bool WriteFst (const FST &fst, std::ostream &strm, const FstWriteOptions &opts)
 
- Static Public Member Functions inherited from fst::ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::Arc >
static ExpandedFst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static ExpandedFst< Arc > * Read (const string &filename)
 
- Static Public Member Functions inherited from fst::Fst< A >
static Fst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static Fst< Arc > * Read (const string &filename)
 

Friends

class StateIterator< ConstFst< Arc, Unsigned > >
 
class ArcIterator< ConstFst< Arc, Unsigned > >
 

Additional Inherited Members

- Protected Member Functions inherited from fst::ImplToExpandedFst< internal::ConstFstImpl< A, Unsigned > >
 ImplToExpandedFst (std::shared_ptr< internal::ConstFstImpl< A, Unsigned > > impl)
 
 ImplToExpandedFst (const ImplToExpandedFst< internal::ConstFstImpl< A, Unsigned >, ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::Arc > > &fst)
 
 ImplToExpandedFst (const ImplToExpandedFst< internal::ConstFstImpl< A, Unsigned >, ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::Arc > > &fst, bool safe)
 
- Protected Member Functions inherited from fst::ImplToFst< internal::ConstFstImpl< A, Unsigned >, ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::Arc > >
 ImplToFst (std::shared_ptr< internal::ConstFstImpl< A, Unsigned > > impl)
 
 ImplToFst (const ImplToFst< internal::ConstFstImpl< A, Unsigned >, ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::Arc > > &fst, bool safe)
 
const internal::ConstFstImpl< A, Unsigned > * GetImpl () const
 
internal::ConstFstImpl< A, Unsigned > * GetMutableImpl () const
 
std::shared_ptr< internal::ConstFstImpl< A, Unsigned > > GetSharedImpl () const
 
bool Unique () const
 
void SetImpl (std::shared_ptr< internal::ConstFstImpl< A, Unsigned > > impl)
 
- Protected Member Functions inherited from fst::Fst< A >
bool WriteFile (const string &filename) const
 
- Static Protected Member Functions inherited from fst::ImplToExpandedFst< internal::ConstFstImpl< A, Unsigned > >
static internal::ConstFstImpl< A, Unsigned > * Read (std::istream &strm, const FstReadOptions &opts)
 
static internal::ConstFstImpl< A, Unsigned > * Read (const string &filename)
 

Detailed Description

template<class A, class Unsigned>
class fst::ConstFst< A, Unsigned >

Definition at line 28 of file const-fst.h.

Member Typedef Documentation

template<class A, class Unsigned>
using fst::ConstFst< A, Unsigned >::Arc = A

Definition at line 246 of file const-fst.h.

template<class A, class Unsigned>
using fst::ConstFst< A, Unsigned >::ConstState = typename Impl::ConstState

Definition at line 250 of file const-fst.h.

template<class A, class Unsigned>
using fst::ConstFst< A, Unsigned >::Impl = internal::ConstFstImpl<A, Unsigned>

Definition at line 249 of file const-fst.h.

template<class A, class Unsigned>
using fst::ConstFst< A, Unsigned >::StateId = typename Arc::StateId

Definition at line 247 of file const-fst.h.

Constructor & Destructor Documentation

template<class A, class Unsigned>
fst::ConstFst< A, Unsigned >::ConstFst ( )
inline

Definition at line 258 of file const-fst.h.

template<class A, class Unsigned>
fst::ConstFst< A, Unsigned >::ConstFst ( const Fst< Arc > &  fst)
inlineexplicit

Definition at line 260 of file const-fst.h.

template<class A, class Unsigned>
fst::ConstFst< A, Unsigned >::ConstFst ( const ConstFst< A, Unsigned > &  fst,
bool  safe = false 
)
inline

Definition at line 263 of file const-fst.h.

Member Function Documentation

template<class A, class Unsigned>
template<class F , class G >
void friend fst::ConstFst< A, Unsigned >::Cast ( const F &  ,
G *   
)
template<class A, class Unsigned>
ConstFst<A, Unsigned>* fst::ConstFst< A, Unsigned >::Copy ( bool  safe = false) const
inlineoverridevirtual
template<class A, class Unsigned>
void fst::ConstFst< A, Unsigned >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
) const
inlineoverridevirtual

Implements fst::Fst< A >.

Definition at line 303 of file const-fst.h.

template<class A, class Unsigned>
void fst::ConstFst< A, Unsigned >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inlineoverridevirtual

Implements fst::Fst< A >.

Definition at line 299 of file const-fst.h.

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

Definition at line 272 of file const-fst.h.

template<class A, class Unsigned>
static ConstFst<A, Unsigned>* fst::ConstFst< A, Unsigned >::Read ( const string &  filename)
inlinestatic

Definition at line 281 of file const-fst.h.

template<class A, class Unsigned>
bool fst::ConstFst< A, Unsigned >::Write ( std::ostream &  strm,
const FstWriteOptions opts 
) const
inlineoverridevirtual

Reimplemented from fst::Fst< A >.

Definition at line 287 of file const-fst.h.

template<class A, class Unsigned>
bool fst::ConstFst< A, Unsigned >::Write ( const string &  filename) const
inlineoverridevirtual

Reimplemented from fst::Fst< A >.

Definition at line 291 of file const-fst.h.

template<class Arc , class Unsigned >
template<class FST >
bool fst::ConstFst< Arc, Unsigned >::WriteFst ( const FST &  fst,
std::ostream &  strm,
const FstWriteOptions opts 
)
static

Definition at line 331 of file const-fst.h.

Friends And Related Function Documentation

template<class A, class Unsigned>
friend class ArcIterator< ConstFst< Arc, Unsigned > >
friend

Definition at line 253 of file const-fst.h.

template<class A, class Unsigned>
friend class StateIterator< ConstFst< Arc, Unsigned > >
friend

Definition at line 252 of file const-fst.h.


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