FST  openfst-1.8.3
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, std::string_view type, std::shared_ptr< T > t=nullptr)
 
 AddOnImpl (const Fst< Arc > &fst, std::string_view 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 ()=default
 
 FstImpl (const FstImpl< FST::Arc > &impl)
 
 FstImpl (FstImpl< FST::Arc > &&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 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 112 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 115 of file add-on.h.

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

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

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

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

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

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

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

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

Constructor & Destructor Documentation

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

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

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

Definition at line 139 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 150 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 159 of file add-on.h.

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

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

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

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

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

Definition at line 229 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 233 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 223 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 219 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 161 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 163 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 165 of file add-on.h.

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

Definition at line 169 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 171 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 235 of file add-on.h.

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

Definition at line 157 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 202 of file add-on.h.


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