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

#include <const-fst.h>

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

Public Types

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

Public Member Functions

 ConstFstImpl ()
 
 ConstFstImpl (const Fst< Arc > &fst)
 
StateId Start () const
 
Weight Final (StateId s) const
 
StateId NumStates () const
 
size_t NumArcs (StateId s) const
 
size_t NumInputEpsilons (StateId s) const
 
size_t NumOutputEpsilons (StateId s) const
 
const ArcArcs (StateId s) const
 
void InitStateIterator (StateIteratorData< Arc > *data) const
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const
 
- Public Member Functions inherited from fst::internal::FstImpl< A >
 FstImpl ()
 
 FstImpl (const FstImpl< A > &impl)
 
 FstImpl (FstImpl< A > &&impl) noexcept
 
virtual ~FstImpl ()
 
FstImploperator= (const FstImpl< A > &impl)
 
FstImploperator= (FstImpl< A > &&impl) noexcept
 
const std::string & Type () const
 
void SetType (const std::string &type)
 
virtual uint64 Properties () const
 
virtual uint64 Properties (uint64 mask) const
 
void SetProperties (uint64 props)
 
void SetProperties (uint64 props, uint64 mask)
 
void SetProperties (uint64 props, uint64 mask) const
 
const SymbolTableInputSymbols () const
 
SymbolTableInputSymbols ()
 
const SymbolTableOutputSymbols () const
 
SymbolTableOutputSymbols ()
 
void SetInputSymbols (const SymbolTable *isyms)
 
void SetOutputSymbols (const SymbolTable *osyms)
 
bool ReadHeader (std::istream &strm, const FstReadOptions &opts, int min_version, FstHeader *hdr)
 
void WriteHeader (std::ostream &strm, const FstWriteOptions &opts, int version, FstHeader *hdr) const
 

Static Public Member Functions

static ConstFstImpl< Arc, Unsigned > * Read (std::istream &strm, const FstReadOptions &opts)
 
- Static Public Member Functions inherited from fst::internal::FstImpl< A >
static void WriteFstHeader (const Fst< A > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const std::string &type, uint64 properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< A > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const std::string &type, uint64 properties, FstHeader *hdr, size_t header_offset)
 

Friends

class ConstFst< Arc, Unsigned >
 

Additional Inherited Members

- Protected Attributes inherited from fst::internal::FstImpl< A >
uint64 properties_
 

Detailed Description

template<class A, class Unsigned>
class fst::internal::ConstFstImpl< A, Unsigned >

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

Member Typedef Documentation

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

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

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

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

template<class A, class Unsigned>
using fst::internal::ConstFstImpl< A, Unsigned >::Weight = typename Arc::Weight

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

Constructor & Destructor Documentation

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

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

template<class Arc , class Unsigned >
fst::internal::ConstFstImpl< Arc, Unsigned >::ConstFstImpl ( const Fst< Arc > &  fst)
explicit

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

Member Function Documentation

template<class A, class Unsigned>
const Arc* fst::internal::ConstFstImpl< A, Unsigned >::Arcs ( StateId  s) const
inline

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

template<class A, class Unsigned>
Weight fst::internal::ConstFstImpl< A, Unsigned >::Final ( StateId  s) const
inline

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

template<class A, class Unsigned>
void fst::internal::ConstFstImpl< A, Unsigned >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
) const
inline

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

template<class A, class Unsigned>
void fst::internal::ConstFstImpl< A, Unsigned >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inline

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

template<class A, class Unsigned>
size_t fst::internal::ConstFstImpl< A, Unsigned >::NumArcs ( StateId  s) const
inline

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

template<class A, class Unsigned>
size_t fst::internal::ConstFstImpl< A, Unsigned >::NumInputEpsilons ( StateId  s) const
inline

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

template<class A, class Unsigned>
size_t fst::internal::ConstFstImpl< A, Unsigned >::NumOutputEpsilons ( StateId  s) const
inline

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

template<class A, class Unsigned>
StateId fst::internal::ConstFstImpl< A, Unsigned >::NumStates ( ) const
inline

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

template<class Arc , class Unsigned >
ConstFstImpl< Arc, Unsigned > * fst::internal::ConstFstImpl< Arc, Unsigned >::Read ( std::istream &  strm,
const FstReadOptions opts 
)
static

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

template<class A, class Unsigned>
StateId fst::internal::ConstFstImpl< A, Unsigned >::Start ( ) const
inline

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

Friends And Related Function Documentation

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

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


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