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

#include <mutable-fst.h>

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

Public Types

using Arc = typename Impl::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ImplToExpandedFst< Impl, FST >
using Arc = typename FST::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ImplToFst< Impl, FST >
using Arc = typename Impl::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

void SetStart (StateId s) override
 
void SetFinal (StateId s, Weight weight) override
 
void SetProperties (uint64 props, uint64 mask) override
 
StateId AddState () override
 
void AddArc (StateId s, const Arc &arc) override
 
void AddArc (StateId s, Arc &&arc) override
 
void DeleteStates (const std::vector< StateId > &dstates) override
 
void DeleteStates () override
 
void DeleteArcs (StateId s, size_t n) override
 
void DeleteArcs (StateId s) override
 
void ReserveStates (StateId s) override
 
void ReserveArcs (StateId s, size_t n) override
 
const SymbolTableInputSymbols () const override
 
const SymbolTableOutputSymbols () const override
 
SymbolTableMutableInputSymbols () override
 
SymbolTableMutableOutputSymbols () override
 
void SetInputSymbols (const SymbolTable *isyms) override
 
void SetOutputSymbols (const SymbolTable *osyms) override
 
- Public Member Functions inherited from fst::ImplToExpandedFst< Impl, FST >
StateId NumStates () const override
 
- Public Member Functions inherited from fst::ImplToFst< Impl, FST >
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 Properties (uint64 mask, bool test) const override
 
const string & Type () const override
 
const SymbolTableInputSymbols () const override
 
const SymbolTableOutputSymbols () const override
 

Protected Member Functions

 ImplToMutableFst (std::shared_ptr< Impl > impl)
 
 ImplToMutableFst (const ImplToMutableFst< Impl, FST > &fst, bool safe)
 
void MutateCheck ()
 
- Protected Member Functions inherited from fst::ImplToExpandedFst< Impl, FST >
 ImplToExpandedFst (std::shared_ptr< Impl > impl)
 
 ImplToExpandedFst (const ImplToExpandedFst< Impl, FST > &fst, bool safe)
 
- Protected Member Functions inherited from fst::ImplToFst< Impl, FST >
 ImplToFst (std::shared_ptr< Impl > impl)
 
 ImplToFst (const ImplToFst< Impl, FST > &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst< Impl, FST > &fst)
 
 ImplToFst (ImplToFst< Impl, FST > &&fst) noexcept
 
ImplToFst< Impl, FST > & operator= (const ImplToFst< Impl, FST > &fst)
 
ImplToFst< Impl, FST > & operator= (ImplToFst< Impl, FST > &&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)
 

Additional Inherited Members

- Static Protected Member Functions inherited from fst::ImplToExpandedFst< Impl, FST >
static Impl * Read (std::istream &strm, const FstReadOptions &opts)
 
static Impl * Read (const string &filename)
 

Detailed Description

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
class fst::ImplToMutableFst< Impl, FST >

Definition at line 272 of file mutable-fst.h.

Member Typedef Documentation

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
using fst::ImplToMutableFst< Impl, FST >::Arc = typename Impl::Arc

Definition at line 274 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
using fst::ImplToMutableFst< Impl, FST >::StateId = typename Arc::StateId

Definition at line 275 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
using fst::ImplToMutableFst< Impl, FST >::Weight = typename Arc::Weight

Definition at line 276 of file mutable-fst.h.

Constructor & Destructor Documentation

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

Definition at line 385 of file mutable-fst.h.

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

Definition at line 388 of file mutable-fst.h.

Member Function Documentation

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
void fst::ImplToMutableFst< Impl, FST >::AddArc ( StateId  s,
const Arc arc 
)
inlineoverride

Definition at line 303 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
void fst::ImplToMutableFst< Impl, FST >::AddArc ( StateId  s,
Arc &&  arc 
)
inlineoverride

Definition at line 308 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
StateId fst::ImplToMutableFst< Impl, FST >::AddState ( )
inlineoverride

Definition at line 298 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
void fst::ImplToMutableFst< Impl, FST >::DeleteArcs ( StateId  s,
size_t  n 
)
inlineoverride

Definition at line 330 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
void fst::ImplToMutableFst< Impl, FST >::DeleteArcs ( StateId  s)
inlineoverride

Definition at line 335 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
void fst::ImplToMutableFst< Impl, FST >::DeleteStates ( const std::vector< StateId > &  dstates)
inlineoverride

Definition at line 313 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
void fst::ImplToMutableFst< Impl, FST >::DeleteStates ( )
inlineoverride

Definition at line 318 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
const SymbolTable* fst::ImplToMutableFst< Impl, FST >::InputSymbols ( ) const
inlineoverride

Definition at line 350 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
SymbolTable* fst::ImplToMutableFst< Impl, FST >::MutableInputSymbols ( )
inlineoverride

Definition at line 358 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
SymbolTable* fst::ImplToMutableFst< Impl, FST >::MutableOutputSymbols ( )
inlineoverride

Definition at line 363 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
void fst::ImplToMutableFst< Impl, FST >::MutateCheck ( )
inlineprotected

Definition at line 391 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
const SymbolTable* fst::ImplToMutableFst< Impl, FST >::OutputSymbols ( ) const
inlineoverride

Definition at line 354 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
void fst::ImplToMutableFst< Impl, FST >::ReserveArcs ( StateId  s,
size_t  n 
)
inlineoverride

Definition at line 345 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
void fst::ImplToMutableFst< Impl, FST >::ReserveStates ( StateId  s)
inlineoverride

Definition at line 340 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
void fst::ImplToMutableFst< Impl, FST >::SetFinal ( StateId  s,
Weight  weight 
)
inlineoverride

Definition at line 285 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
void fst::ImplToMutableFst< Impl, FST >::SetInputSymbols ( const SymbolTable isyms)
inlineoverride

Definition at line 368 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
void fst::ImplToMutableFst< Impl, FST >::SetOutputSymbols ( const SymbolTable osyms)
inlineoverride

Definition at line 373 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
void fst::ImplToMutableFst< Impl, FST >::SetProperties ( uint64  props,
uint64  mask 
)
inlineoverride

Definition at line 290 of file mutable-fst.h.

template<class Impl, class FST = MutableFst<typename Impl::Arc>>
void fst::ImplToMutableFst< Impl, FST >::SetStart ( StateId  s)
inlineoverride

Definition at line 280 of file mutable-fst.h.


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