FST  openfst-1.7.3
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=Weight::One()) override
 
void SetProperties (uint64 props, uint64 mask) override
 
StateId AddState () override
 
void AddStates (size_t n) 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 (size_t n) 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 std::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 std::string &filename)
 

Detailed Description

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

Definition at line 276 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 278 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 279 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 280 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 394 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 397 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 312 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 317 of file mutable-fst.h.

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

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

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

Definition at line 307 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 339 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 344 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 322 of file mutable-fst.h.

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

Definition at line 327 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 359 of file mutable-fst.h.

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

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

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

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

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

Definition at line 400 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 363 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 354 of file mutable-fst.h.

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

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

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

Definition at line 289 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 377 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 382 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 294 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 284 of file mutable-fst.h.


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