Tuple of information that uniquely defines a state in replace. More...
#include <fst/replace.h>
Public Types | |
| typedef S | StateId |
| typedef P | PrefixId |
Public Member Functions | |
| ReplaceStateTuple () | |
| ReplaceStateTuple (PrefixId p, StateId f, StateId s) | |
Public Attributes | |
| PrefixId | prefix_id |
| index in prefix table | |
| StateId | fst_id |
| current fst being walked | |
| StateId | fst_state |
Tuple of information that uniquely defines a state in replace.
REPLACE STATE TUPLES AND TABLES
The replace state table has the form
template <class A, class P> class ReplaceStateTable { public: typedef A Arc; typedef P PrefixId; typedef typename A::StateId StateId; typedef ReplaceStateTuple<StateId, PrefixId> StateTuple; typedef typename A::Label Label;
Required constuctor ReplaceStateTable(const vector<pair<Label, const Fst*> > &fst_tuples, Label root);
Required copy constructor that does not copy state ReplaceStateTable(const ReplaceStateTable<A,P> &table);
Lookup state ID by tuple. If it doesn't exist, then add it. StateId FindState(const StateTuple &tuple);
Lookup state tuple by ID. const StateTuple &Tuple(StateId id) const; };
Definition at line 76 of file replace.h.
| typedef P fst::ReplaceStateTuple< S, P >::PrefixId |
| typedef S fst::ReplaceStateTuple< S, P >::StateId |
| fst::ReplaceStateTuple< S, P >::ReplaceStateTuple | ( | ) | [inline] |
| fst::ReplaceStateTuple< S, P >::ReplaceStateTuple | ( | PrefixId | p, | |
| StateId | f, | |||
| StateId | s | |||
| ) | [inline] |
| StateId fst::ReplaceStateTuple< S, P >::fst_id |
| StateId fst::ReplaceStateTuple< S, P >::fst_state |
| PrefixId fst::ReplaceStateTuple< S, P >::prefix_id |
1.7.1