FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
fst::ImplToFst< Impl, FST > Class Template Reference

#include <impl-to-fst.h>

Inheritance diagram for fst::ImplToFst< Impl, FST >:
Inheritance graph
[legend]
Collaboration diagram for fst::ImplToFst< Impl, FST >:
Collaboration graph
[legend]

Public Types

using Arc = typename Impl::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

StateId Start () const override
 
Weight Final (StateId s) const override
 
size_t NumArcs (StateId s) const override
 
size_t NumInputEpsilons (StateId s) const override
 
size_t NumOutputEpsilons (StateId s) const override
 
uint64_t Properties (uint64_t mask, bool test) const override
 
const std::string & Type () const override
 
const SymbolTableInputSymbols () const override
 
const SymbolTableOutputSymbols () const override
 

Protected Member Functions

 ImplToFst (std::shared_ptr< Impl > impl)
 
 ImplToFst (const ImplToFst &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst &fst)
 
 ImplToFst (ImplToFst &&fst) noexcept
 
ImplToFstoperator= (const ImplToFst &fst)
 
ImplToFstoperator= (ImplToFst &&fst) noexcept
 
const Impl * GetImpl () const
 
Impl * GetMutableImpl () const
 
std::shared_ptr< Impl > GetSharedImpl () const
 
bool Unique () const
 
void SetImpl (std::shared_ptr< Impl > impl)
 

Friends

template<class IFST , class OFST >
void Cast (const IFST &ifst, OFST *ofst)
 

Detailed Description

template<class Impl, class FST = Fst<typename Impl::Arc>>
class fst::ImplToFst< Impl, FST >

Definition at line 41 of file impl-to-fst.h.

Member Typedef Documentation

template<class Impl, class FST = Fst<typename Impl::Arc>>
using fst::ImplToFst< Impl, FST >::Arc = typename Impl::Arc

Definition at line 43 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
using fst::ImplToFst< Impl, FST >::StateId = typename Arc::StateId

Definition at line 44 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
using fst::ImplToFst< Impl, FST >::Weight = typename Arc::Weight

Definition at line 45 of file impl-to-fst.h.

Constructor & Destructor Documentation

template<class Impl, class FST = Fst<typename Impl::Arc>>
fst::ImplToFst< Impl, FST >::ImplToFst ( std::shared_ptr< Impl >  impl)
inlineexplicitprotected

Definition at line 87 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
fst::ImplToFst< Impl, FST >::ImplToFst ( const ImplToFst< Impl, FST > &  fst,
bool  safe 
)
inlineprotected

Definition at line 93 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
fst::ImplToFst< Impl, FST >::ImplToFst ( )
protecteddelete
template<class Impl, class FST = Fst<typename Impl::Arc>>
fst::ImplToFst< Impl, FST >::ImplToFst ( const ImplToFst< Impl, FST > &  fst)
inlineprotected

Definition at line 103 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
fst::ImplToFst< Impl, FST >::ImplToFst ( ImplToFst< Impl, FST > &&  fst)
inlineprotectednoexcept

Definition at line 105 of file impl-to-fst.h.

Member Function Documentation

template<class Impl, class FST = Fst<typename Impl::Arc>>
Weight fst::ImplToFst< Impl, FST >::Final ( StateId  s) const
inlineoverride

Definition at line 49 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
const Impl* fst::ImplToFst< Impl, FST >::GetImpl ( ) const
inlineprotected

Definition at line 123 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
Impl* fst::ImplToFst< Impl, FST >::GetMutableImpl ( ) const
inlineprotected

Definition at line 125 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
std::shared_ptr<Impl> fst::ImplToFst< Impl, FST >::GetSharedImpl ( ) const
inlineprotected

Definition at line 128 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
const SymbolTable* fst::ImplToFst< Impl, FST >::InputSymbols ( ) const
inlineoverride
template<class Impl, class FST = Fst<typename Impl::Arc>>
size_t fst::ImplToFst< Impl, FST >::NumArcs ( StateId  s) const
inlineoverride

Definition at line 51 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
size_t fst::ImplToFst< Impl, FST >::NumInputEpsilons ( StateId  s) const
inlineoverride

Definition at line 53 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
size_t fst::ImplToFst< Impl, FST >::NumOutputEpsilons ( StateId  s) const
inlineoverride

Definition at line 57 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
ImplToFst& fst::ImplToFst< Impl, FST >::operator= ( const ImplToFst< Impl, FST > &  fst)
inlineprotected

Definition at line 109 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
ImplToFst& fst::ImplToFst< Impl, FST >::operator= ( ImplToFst< Impl, FST > &&  fst)
inlineprotectednoexcept

Definition at line 114 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
const SymbolTable* fst::ImplToFst< Impl, FST >::OutputSymbols ( ) const
inlineoverride
template<class Impl, class FST = Fst<typename Impl::Arc>>
uint64_t fst::ImplToFst< Impl, FST >::Properties ( uint64_t  mask,
bool  test 
) const
inlineoverride

Definition at line 63 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
void fst::ImplToFst< Impl, FST >::SetImpl ( std::shared_ptr< Impl >  impl)
inlineprotected

Definition at line 132 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
StateId fst::ImplToFst< Impl, FST >::Start ( ) const
inlineoverride

Definition at line 47 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
const std::string& fst::ImplToFst< Impl, FST >::Type ( ) const
inlineoverride

Definition at line 76 of file impl-to-fst.h.

template<class Impl, class FST = Fst<typename Impl::Arc>>
bool fst::ImplToFst< Impl, FST >::Unique ( ) const
inlineprotected

Definition at line 130 of file impl-to-fst.h.

Friends And Related Function Documentation

template<class Impl, class FST = Fst<typename Impl::Arc>>
template<class IFST , class OFST >
void Cast ( const IFST &  ifst,
OFST *  ofst 
)
friend

Definition at line 942 of file fst.h.


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