Public Types | Public Member Functions | Public Attributes

fst::ComposeStateTuple< S, F > Struct Template Reference

Represents the composition state. More...

#include <fst/state-table.h>

Collaboration diagram for fst::ComposeStateTuple< S, F >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef S StateId
typedef F FilterState

Public Member Functions

 ComposeStateTuple ()
 ComposeStateTuple (StateId s1, StateId s2, const FilterState &f)

Public Attributes

StateId state_id1
 State Id on fst1.
StateId state_id2
 State Id on fst2.
FilterState filter_state
 State of composition filter.

Detailed Description

template<typename S, typename F>
struct fst::ComposeStateTuple< S, F >

Represents the composition state.

COMPOSITION STATE TUPLES AND TABLES

The composition state table has the form:

template <class A, class F> class ComposeStateTable { public: typedef A Arc; typedef F FilterState; typedef typename A::StateId StateId; typedef ComposeStateTuple<StateId> StateTuple;

Required constructors. Copy constructor does not copy state. ComposeStateTable(const Fst<Arc> &fst1, const Fst<Arc> &fst2); ComposeStateTable(const ComposeStateTable<A, F> &table); Lookup state ID by tuple. If it doesn't exist, then add it. StateId FindState(const StateTuple &); Lookup state tuple by state ID. const StateTuple<StateId> &Tuple(StateId) const; # of stored tuples. StateId Size() const; Return true if error encountered bool Error() const; };

Definition at line 215 of file state-table.h.


Member Typedef Documentation

template<typename S, typename F>
typedef F fst::ComposeStateTuple< S, F >::FilterState

Definition at line 217 of file state-table.h.

template<typename S, typename F>
typedef S fst::ComposeStateTuple< S, F >::StateId

Definition at line 216 of file state-table.h.


Constructor & Destructor Documentation

template<typename S, typename F>
fst::ComposeStateTuple< S, F >::ComposeStateTuple (  )  [inline]

Definition at line 219 of file state-table.h.

template<typename S, typename F>
fst::ComposeStateTuple< S, F >::ComposeStateTuple ( StateId  s1,
StateId  s2,
const FilterState f 
) [inline]

Definition at line 223 of file state-table.h.


Member Data Documentation

template<typename S, typename F>
FilterState fst::ComposeStateTuple< S, F >::filter_state

State of composition filter.

Definition at line 228 of file state-table.h.

template<typename S, typename F>
StateId fst::ComposeStateTuple< S, F >::state_id1

State Id on fst1.

Definition at line 226 of file state-table.h.

template<typename S, typename F>
StateId fst::ComposeStateTuple< S, F >::state_id2

State Id on fst2.

Definition at line 227 of file state-table.h.


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