Public Types | Public Member Functions | Protected Member Functions

fst::ImplToMutableFst< I, F > Class Template Reference

#include <fst/mutable-fst.h>

Inherits fst::ImplToExpandedFst< I, F >.

Collaboration diagram for fst::ImplToMutableFst< I, F >:
Collaboration graph
[legend]

List of all members.

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 SymbolTableInputSymbols () const
virtual const SymbolTableOutputSymbols () const
virtual SymbolTableMutableInputSymbols ()
virtual SymbolTableMutableOutputSymbols ()
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 ()

Detailed Description

template<class I, class F = MutableFst<typename I::Arc>>
class fst::ImplToMutableFst< I, F >

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.


Member Typedef Documentation

template<class I, class F = MutableFst<typename I::Arc>>
typedef I::Arc fst::ImplToMutableFst< I, F >::Arc
template<class I, class F = MutableFst<typename I::Arc>>
typedef Arc::StateId fst::ImplToMutableFst< I, F >::StateId
template<class I, class F = MutableFst<typename I::Arc>>
typedef Arc::Weight fst::ImplToMutableFst< I, F >::Weight

Reimplemented from fst::ImplToExpandedFst< I, F >.

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


Constructor & Destructor Documentation

template<class I, class F = MutableFst<typename I::Arc>>
fst::ImplToMutableFst< I, F >::ImplToMutableFst (  )  [inline, protected]

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

template<class I, class F = MutableFst<typename I::Arc>>
fst::ImplToMutableFst< I, F >::ImplToMutableFst ( I *  impl  )  [inline, protected]

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

template<class I, class F = MutableFst<typename I::Arc>>
fst::ImplToMutableFst< I, F >::ImplToMutableFst ( const ImplToMutableFst< I, F > &  fst  )  [inline, protected]

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

template<class I, class F = MutableFst<typename I::Arc>>
fst::ImplToMutableFst< I, F >::ImplToMutableFst ( const ImplToMutableFst< I, F > &  fst,
bool  safe 
) [inline, protected]

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


Member Function Documentation

template<class I, class F = MutableFst<typename I::Arc>>
virtual void fst::ImplToMutableFst< I, F >::AddArc ( StateId  s,
const Arc arc 
) [inline, virtual]

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

template<class I, class F = MutableFst<typename I::Arc>>
virtual StateId fst::ImplToMutableFst< I, F >::AddState (  )  [inline, virtual]

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

template<class I, class F = MutableFst<typename I::Arc>>
virtual void fst::ImplToMutableFst< I, F >::DeleteArcs ( StateId  s,
size_t  n 
) [inline, virtual]

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

template<class I, class F = MutableFst<typename I::Arc>>
virtual void fst::ImplToMutableFst< I, F >::DeleteArcs ( StateId  s  )  [inline, virtual]

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

template<class I, class F = MutableFst<typename I::Arc>>
virtual void fst::ImplToMutableFst< I, F >::DeleteStates ( const vector< StateId > &  dstates  )  [inline, virtual]

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

template<class I, class F = MutableFst<typename I::Arc>>
virtual void fst::ImplToMutableFst< I, F >::DeleteStates (  )  [inline, virtual]

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

template<class I, class F = MutableFst<typename I::Arc>>
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.

template<class I, class F = MutableFst<typename I::Arc>>
virtual SymbolTable* fst::ImplToMutableFst< I, F >::MutableInputSymbols (  )  [inline, virtual]

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

template<class I, class F = MutableFst<typename I::Arc>>
virtual SymbolTable* fst::ImplToMutableFst< I, F >::MutableOutputSymbols (  )  [inline, virtual]

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

template<class I, class F = MutableFst<typename I::Arc>>
void fst::ImplToMutableFst< I, F >::MutateCheck (  )  [inline, protected]

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

template<class I, class F = MutableFst<typename I::Arc>>
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.

template<class I, class F = MutableFst<typename I::Arc>>
virtual void fst::ImplToMutableFst< I, F >::SetFinal ( StateId  s,
Weight  w 
) [inline, virtual]

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

template<class I, class F = MutableFst<typename I::Arc>>
virtual void fst::ImplToMutableFst< I, F >::SetInputSymbols ( const SymbolTable isyms  )  [inline, virtual]

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

template<class I, class F = MutableFst<typename I::Arc>>
virtual void fst::ImplToMutableFst< I, F >::SetOutputSymbols ( const SymbolTable osyms  )  [inline, virtual]

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

template<class I, class F = MutableFst<typename I::Arc>>
virtual void fst::ImplToMutableFst< I, F >::SetProperties ( uint64  props,
uint64  mask 
) [inline, virtual]

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

template<class I, class F = MutableFst<typename I::Arc>>
virtual void fst::ImplToMutableFst< I, F >::SetStart ( StateId  s  )  [inline, virtual]

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines