Public Types | Public Member Functions | Public Attributes

fst::ReplaceStateTuple< S, P > Struct Template Reference

Tuple of information that uniquely defines a state in replace. More...

#include <fst/replace.h>

List of all members.

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

Detailed Description

template<class S, class P>
struct fst::ReplaceStateTuple< S, P >

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.


Member Typedef Documentation

template<class S, class P>
typedef P fst::ReplaceStateTuple< S, P >::PrefixId

Definition at line 78 of file replace.h.

template<class S, class P>
typedef S fst::ReplaceStateTuple< S, P >::StateId

Definition at line 77 of file replace.h.


Constructor & Destructor Documentation

template<class S, class P>
fst::ReplaceStateTuple< S, P >::ReplaceStateTuple (  )  [inline]

Definition at line 80 of file replace.h.

template<class S, class P>
fst::ReplaceStateTuple< S, P >::ReplaceStateTuple ( PrefixId  p,
StateId  f,
StateId  s 
) [inline]

Definition at line 83 of file replace.h.


Member Data Documentation

template<class S, class P>
StateId fst::ReplaceStateTuple< S, P >::fst_id

current fst being walked

Definition at line 87 of file replace.h.

template<class S, class P>
StateId fst::ReplaceStateTuple< S, P >::fst_state

current state in fst being walked, not to be

Definition at line 88 of file replace.h.

template<class S, class P>
PrefixId fst::ReplaceStateTuple< S, P >::prefix_id

index in prefix table

Definition at line 86 of file replace.h.


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