FST  openfst-1.8.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_t props, uint64_t 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_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

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

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 (std::string_view source)
 

Detailed Description

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

Definition at line 295 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 297 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 298 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 299 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 413 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 416 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 331 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 336 of file mutable-fst.h.

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

Definition at line 321 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 326 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 358 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 363 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 341 of file mutable-fst.h.

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

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

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

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

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

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

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

Definition at line 419 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 382 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 373 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 368 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 308 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 396 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 401 of file mutable-fst.h.

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

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


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