FST  openfst-1.8.2.post1
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::internal::AddOnImpl< FST, T > Class Template Reference

#include <add-on.h>

Inheritance diagram for fst::internal::AddOnImpl< FST, T >:
Inheritance graph
[legend]
Collaboration diagram for fst::internal::AddOnImpl< FST, T >:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 AddOnImpl (const FST &fst, const std::string &type, std::shared_ptr< T > t=nullptr)
 
 AddOnImpl (const Fst< Arc > &fst, const std::string &type, std::shared_ptr< T > t=nullptr)
 
 AddOnImpl (const AddOnImpl &impl)
 
StateId Start () const
 
Weight Final (StateId s) const
 
size_t NumArcs (StateId s) const
 
size_t NumInputEpsilons (StateId s) const
 
size_t NumOutputEpsilons (StateId s) const
 
size_t NumStates () const
 
bool Write (std::ostream &strm, const FstWriteOptions &opts) const
 
void InitStateIterator (StateIteratorData< Arc > *data) const
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const
 
FST & GetFst ()
 
const FST & GetFst () const
 
const T * GetAddOn () const
 
std::shared_ptr< T > GetSharedAddOn () const
 
void SetAddOn (std::shared_ptr< T > t)
 
- Public Member Functions inherited from fst::internal::FstImpl< FST::Arc >
 FstImpl ()
 
 FstImpl (const FstImpl< FST::Arc > &impl)
 
 FstImpl (FstImpl< FST::Arc > &&impl) noexcept
 
virtual ~FstImpl ()
 
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 AddOnImplRead (std::istream &strm, const FstReadOptions &opts)
 
- Static Public Member Functions inherited from fst::internal::FstImpl< FST::Arc >
static void WriteFstHeader (const Fst< FST::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, std::string_view type, uint64_t properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< FST::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, std::string_view type, uint64_t properties, FstHeader *hdr, size_t header_offset)
 

Additional Inherited Members

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

Detailed Description

template<class FST, class T>
class fst::internal::AddOnImpl< FST, T >

Definition at line 109 of file add-on.h.

Member Typedef Documentation

template<class FST , class T >
using fst::internal::AddOnImpl< FST, T >::Arc = typename FST::Arc

Definition at line 112 of file add-on.h.

template<class FST , class T >
using fst::internal::AddOnImpl< FST, T >::FstType = FST

Definition at line 111 of file add-on.h.

template<class FST , class T >
using fst::internal::AddOnImpl< FST, T >::Label = typename Arc::Label

Definition at line 113 of file add-on.h.

template<class FST , class T >
using fst::internal::AddOnImpl< FST, T >::StateId = typename Arc::StateId

Definition at line 114 of file add-on.h.

template<class FST , class T >
using fst::internal::AddOnImpl< FST, T >::Weight = typename Arc::Weight

Definition at line 115 of file add-on.h.

Constructor & Destructor Documentation

template<class FST , class T >
fst::internal::AddOnImpl< FST, T >::AddOnImpl ( const FST &  fst,
const std::string &  type,
std::shared_ptr< T >  t = nullptr 
)
inline

Definition at line 125 of file add-on.h.

template<class FST , class T >
fst::internal::AddOnImpl< FST, T >::AddOnImpl ( const Fst< Arc > &  fst,
const std::string &  type,
std::shared_ptr< T >  t = nullptr 
)
inline

Definition at line 136 of file add-on.h.

template<class FST , class T >
fst::internal::AddOnImpl< FST, T >::AddOnImpl ( const AddOnImpl< FST, T > &  impl)
inline

Definition at line 147 of file add-on.h.

Member Function Documentation

template<class FST , class T >
Weight fst::internal::AddOnImpl< FST, T >::Final ( StateId  s) const
inline

Definition at line 156 of file add-on.h.

template<class FST , class T >
const T* fst::internal::AddOnImpl< FST, T >::GetAddOn ( ) const
inline

Definition at line 228 of file add-on.h.

template<class FST , class T >
FST& fst::internal::AddOnImpl< FST, T >::GetFst ( )
inline

Definition at line 224 of file add-on.h.

template<class FST , class T >
const FST& fst::internal::AddOnImpl< FST, T >::GetFst ( ) const
inline

Definition at line 226 of file add-on.h.

template<class FST , class T >
std::shared_ptr<T> fst::internal::AddOnImpl< FST, T >::GetSharedAddOn ( ) const
inline

Definition at line 230 of file add-on.h.

template<class FST , class T >
void fst::internal::AddOnImpl< FST, T >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
) const
inline

Definition at line 220 of file add-on.h.

template<class FST , class T >
void fst::internal::AddOnImpl< FST, T >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inline

Definition at line 216 of file add-on.h.

template<class FST , class T >
size_t fst::internal::AddOnImpl< FST, T >::NumArcs ( StateId  s) const
inline

Definition at line 158 of file add-on.h.

template<class FST , class T >
size_t fst::internal::AddOnImpl< FST, T >::NumInputEpsilons ( StateId  s) const
inline

Definition at line 160 of file add-on.h.

template<class FST , class T >
size_t fst::internal::AddOnImpl< FST, T >::NumOutputEpsilons ( StateId  s) const
inline

Definition at line 162 of file add-on.h.

template<class FST , class T >
size_t fst::internal::AddOnImpl< FST, T >::NumStates ( ) const
inline

Definition at line 166 of file add-on.h.

template<class FST , class T >
static AddOnImpl* fst::internal::AddOnImpl< FST, T >::Read ( std::istream &  strm,
const FstReadOptions opts 
)
inlinestatic

Definition at line 168 of file add-on.h.

template<class FST , class T >
void fst::internal::AddOnImpl< FST, T >::SetAddOn ( std::shared_ptr< T >  t)
inline

Definition at line 232 of file add-on.h.

template<class FST , class T >
StateId fst::internal::AddOnImpl< FST, T >::Start ( ) const
inline

Definition at line 154 of file add-on.h.

template<class FST , class T >
bool fst::internal::AddOnImpl< FST, T >::Write ( std::ostream &  strm,
const FstWriteOptions opts 
) const
inline

Definition at line 199 of file add-on.h.


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