#include <fst/add-on.h>
Inherits FstImpl< F::Arc >.
List of all members.
Public Types |
| typedef F::Arc | Arc |
| typedef Arc::Label | Label |
| typedef Arc::Weight | Weight |
| typedef Arc::StateId | StateId |
Public Member Functions |
| | AddOnImpl (const F &fst, const string &type, T *t=0) |
| | If 't' is non-zero, its reference count is incremented.
|
| | AddOnImpl (const Fst< Arc > &fst, const string &type, T *t=0) |
| | If 't' is non-zero, its reference count is incremented.
|
| | AddOnImpl (const AddOnImpl< F, T > &impl) |
| | ~AddOnImpl () |
| StateId | Start () const |
| Weight | Final (StateId s) const |
| size_t | NumArcs (StateId s) const |
| size_t | NumInputEpsilons (StateId s) const |
| size_t | NumOutputEpsilons (StateId s) const |
| size_t | NumStates () const |
| bool | Write (ostream &strm, const FstWriteOptions &opts) const |
| void | InitStateIterator (StateIteratorData< Arc > *data) const |
| void | InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const |
| F & | GetFst () |
| const F & | GetFst () const |
| T * | GetAddOn () const |
| void | SetAddOn (T *t) |
| | If 't' is non-zero, its reference count is incremented.
|
Static Public Member Functions |
| static AddOnImpl< F, T > * | Read (istream &strm, const FstReadOptions &opts) |
Detailed Description
template<class F, class T>
class fst::AddOnImpl< F, T >
Add to an Fst F a type T object. T must have a 'T* Read(istream &)', a 'bool Write(ostream &)' method, and 'int RecCount(), 'int IncrRefCount()' and 'int DecrRefCount()' methods (e.g. 'MatcherData' in matcher-fst.h). The result is a new Fst implemenation with type name 'type'.
Definition at line 141 of file add-on.h.
Member Typedef Documentation
template<class F, class T>
template<class F, class T>
template<class F, class T>
template<class F, class T>
Constructor & Destructor Documentation
template<class F, class T>
If 't' is non-zero, its reference count is incremented.
Definition at line 153 of file add-on.h.
template<class F, class T>
If 't' is non-zero, its reference count is incremented.
Definition at line 162 of file add-on.h.
template<class F, class T>
template<class F, class T>
Member Function Documentation
template<class F, class T>
template<class F, class T>
template<class F, class T>
template<class F, class T>
template<class F, class T>
template<class F, class T>
template<class F, class T>
template<class F, class T>
template<class F, class T>
template<class F, class T>
template<class F, class T>
template<class F, class T>
If 't' is non-zero, its reference count is incremented.
Definition at line 270 of file add-on.h.
template<class F, class T>
template<class F, class T>
The documentation for this class was generated from the following file: