#include <fst/mutable-fst.h>
Inherits fst::ImplToExpandedFst< I, F >.

Public Types | |
| typedef I::Arc | Arc |
| typedef Arc::Weight | Weight |
| typedef Arc::StateId | StateId |
Public Member Functions | |
| virtual void | SetStart (StateId s) |
| virtual void | SetFinal (StateId s, Weight w) |
| virtual void | SetProperties (uint64 props, uint64 mask) |
| virtual StateId | AddState () |
| virtual void | AddArc (StateId s, const Arc &arc) |
| virtual void | DeleteStates (const vector< StateId > &dstates) |
| virtual void | DeleteStates () |
| virtual void | DeleteArcs (StateId s, size_t n) |
| virtual void | DeleteArcs (StateId s) |
| virtual const SymbolTable * | InputSymbols () const |
| virtual const SymbolTable * | OutputSymbols () const |
| virtual SymbolTable * | MutableInputSymbols () |
| virtual SymbolTable * | MutableOutputSymbols () |
| virtual void | SetInputSymbols (const SymbolTable *isyms) |
| virtual void | SetOutputSymbols (const SymbolTable *osyms) |
Protected Member Functions | |
| ImplToMutableFst () | |
| ImplToMutableFst (I *impl) | |
| ImplToMutableFst (const ImplToMutableFst< I, F > &fst) | |
| ImplToMutableFst (const ImplToMutableFst< I, F > &fst, bool safe) | |
| void | MutateCheck () |
This is a helper class template useful for attaching a MutableFst interface to its implementation, handling reference counting and copy-on-write.
Definition at line 220 of file mutable-fst.h.
| typedef I::Arc fst::ImplToMutableFst< I, F >::Arc |
Reimplemented from fst::ImplToExpandedFst< I, F >.
Reimplemented in fst::EditFst< A >, fst::VectorFst< A >, fst::VectorFst< RevA >, and fst::VectorFst< Arc >.
Definition at line 222 of file mutable-fst.h.
| typedef Arc::StateId fst::ImplToMutableFst< I, F >::StateId |
Reimplemented from fst::ImplToExpandedFst< I, F >.
Reimplemented in fst::EditFst< A >, fst::VectorFst< A >, fst::VectorFst< RevA >, and fst::VectorFst< Arc >.
Definition at line 224 of file mutable-fst.h.
| typedef Arc::Weight fst::ImplToMutableFst< I, F >::Weight |
Reimplemented from fst::ImplToExpandedFst< I, F >.
Definition at line 223 of file mutable-fst.h.
| fst::ImplToMutableFst< I, F >::ImplToMutableFst | ( | ) | [inline, protected] |
Definition at line 302 of file mutable-fst.h.
| fst::ImplToMutableFst< I, F >::ImplToMutableFst | ( | I * | impl | ) | [inline, protected] |
Definition at line 304 of file mutable-fst.h.
| fst::ImplToMutableFst< I, F >::ImplToMutableFst | ( | const ImplToMutableFst< I, F > & | fst | ) | [inline, protected] |
Definition at line 307 of file mutable-fst.h.
| fst::ImplToMutableFst< I, F >::ImplToMutableFst | ( | const ImplToMutableFst< I, F > & | fst, | |
| bool | safe | |||
| ) | [inline, protected] |
Definition at line 310 of file mutable-fst.h.
| virtual void fst::ImplToMutableFst< I, F >::AddArc | ( | StateId | s, | |
| const Arc & | arc | |||
| ) | [inline, virtual] |
Definition at line 248 of file mutable-fst.h.
| virtual StateId fst::ImplToMutableFst< I, F >::AddState | ( | ) | [inline, virtual] |
Definition at line 243 of file mutable-fst.h.
| virtual void fst::ImplToMutableFst< I, F >::DeleteArcs | ( | StateId | s, | |
| size_t | n | |||
| ) | [inline, virtual] |
Definition at line 263 of file mutable-fst.h.
| virtual void fst::ImplToMutableFst< I, F >::DeleteArcs | ( | StateId | s | ) | [inline, virtual] |
Definition at line 268 of file mutable-fst.h.
| virtual void fst::ImplToMutableFst< I, F >::DeleteStates | ( | const vector< StateId > & | dstates | ) | [inline, virtual] |
Definition at line 253 of file mutable-fst.h.
| virtual void fst::ImplToMutableFst< I, F >::DeleteStates | ( | ) | [inline, virtual] |
Definition at line 258 of file mutable-fst.h.
| virtual const SymbolTable* fst::ImplToMutableFst< I, F >::InputSymbols | ( | ) | const [inline, virtual] |
Reimplemented from fst::ImplToFst< I, F >.
Definition at line 273 of file mutable-fst.h.
| virtual SymbolTable* fst::ImplToMutableFst< I, F >::MutableInputSymbols | ( | ) | [inline, virtual] |
Definition at line 281 of file mutable-fst.h.
| virtual SymbolTable* fst::ImplToMutableFst< I, F >::MutableOutputSymbols | ( | ) | [inline, virtual] |
Definition at line 286 of file mutable-fst.h.
| void fst::ImplToMutableFst< I, F >::MutateCheck | ( | ) | [inline, protected] |
Definition at line 313 of file mutable-fst.h.
| virtual const SymbolTable* fst::ImplToMutableFst< I, F >::OutputSymbols | ( | ) | const [inline, virtual] |
Reimplemented from fst::ImplToFst< I, F >.
Definition at line 277 of file mutable-fst.h.
| virtual void fst::ImplToMutableFst< I, F >::SetFinal | ( | StateId | s, | |
| Weight | w | |||
| ) | [inline, virtual] |
Definition at line 234 of file mutable-fst.h.
| virtual void fst::ImplToMutableFst< I, F >::SetInputSymbols | ( | const SymbolTable * | isyms | ) | [inline, virtual] |
Definition at line 291 of file mutable-fst.h.
| virtual void fst::ImplToMutableFst< I, F >::SetOutputSymbols | ( | const SymbolTable * | osyms | ) | [inline, virtual] |
Definition at line 296 of file mutable-fst.h.
| virtual void fst::ImplToMutableFst< I, F >::SetProperties | ( | uint64 | props, | |
| uint64 | mask | |||
| ) | [inline, virtual] |
Definition at line 239 of file mutable-fst.h.
| virtual void fst::ImplToMutableFst< I, F >::SetStart | ( | StateId | s | ) | [inline, virtual] |
Definition at line 229 of file mutable-fst.h.
1.7.1