FST  openfst-1.8.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 ()=default
 
 FstImpl (const FstImpl< A > &impl)
 
 FstImpl (FstImpl< A > &&impl) noexcept
 
virtual ~FstImpl ()=default
 
FstImploperator= (const FstImpl &impl)
 
FstImploperator= (FstImpl &&impl) noexcept
 
const std::string & Type () const
 
void SetType (std::string_view type)
 
virtual uint64_t Properties () const
 
virtual uint64_t Properties (uint64_t mask) const
 
void SetProperties (uint64_t props)
 
void SetProperties (uint64_t props, uint64_t mask)
 
void SetProperties (uint64_t props, uint64_t mask) const
 
void UpdateProperties (uint64_t props, uint64_t mask)
 
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 ConstFstImplRead (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, std::string_view type, uint64_t properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< A > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, std::string_view type, uint64_t properties, FstHeader *hdr, size_t header_offset)
 

Friends

class ConstFst< Arc, Unsigned >
 

Additional Inherited Members

- Protected Attributes inherited from fst::internal::FstImpl< A >
std::atomic< uint64_t > properties_
 

Detailed Description

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

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

Member Typedef Documentation

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

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

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

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

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

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

Constructor & Destructor Documentation

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

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

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

Definition at line 151 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 97 of file const-fst.h.

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

Definition at line 85 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 106 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 100 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 89 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 91 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 93 of file const-fst.h.

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

Definition at line 87 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 195 of file const-fst.h.

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

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

Friends And Related Function Documentation

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

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


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