FST  openfst-1.7.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 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=std::shared_ptr< T >())
 
 AddOnImpl (const Fst< Arc > &fst, const std::string &type, std::shared_ptr< T > t=std::shared_ptr< T >())
 
 AddOnImpl (const AddOnImpl< FST, T > &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< FST::Arc > &impl)
 
FstImploperator= (FstImpl< FST::Arc > &&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 AddOnImpl< FST, T > * Read (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, const std::string &type, uint64 properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< FST::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const std::string &type, uint64 properties, FstHeader *hdr, size_t header_offset)
 

Additional Inherited Members

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

Detailed Description

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

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

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

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

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

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

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

Definition at line 102 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 = std::shared_ptr<T>() 
)
inline

Definition at line 112 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 = std::shared_ptr<T>() 
)
inline

Definition at line 123 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 134 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 144 of file add-on.h.

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

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

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

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

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

Definition at line 215 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 219 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 209 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 205 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 146 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 148 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 150 of file add-on.h.

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

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

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

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

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

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


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