Public Member Functions

fst::StateIterator< FST > Class Template Reference

#include <fst/fst.h>

Inherited by fst::StateIterator< MatcherFst< FST, M, Name, Init > >.

List of all members.

Public Member Functions

 StateIterator (const FST &fst)
 ~StateIterator ()
bool Done () const
StateId Value () const
void Next ()
void Reset ()

Detailed Description

template<class FST>
class fst::StateIterator< FST >

Generic state iterator, templated on the FST definition (a wrapper around a pointer to a specific one). Here is a typical use:

for (StateIterator<StdFst> siter(fst); !siter.Done(); siter.Next()) { StateId s = siter.Value(); ... }

Definition at line 371 of file fst.h.


Constructor & Destructor Documentation

template<class FST>
fst::StateIterator< FST >::StateIterator ( const FST &  fst  )  [inline, explicit]

Definition at line 376 of file fst.h.

template<class FST>
fst::StateIterator< FST >::~StateIterator (  )  [inline]

Definition at line 380 of file fst.h.


Member Function Documentation

template<class FST>
bool fst::StateIterator< FST >::Done (  )  const [inline]

Definition at line 382 of file fst.h.

template<class FST>
void fst::StateIterator< FST >::Next (  )  [inline]

Definition at line 388 of file fst.h.

template<class FST>
void fst::StateIterator< FST >::Reset (  )  [inline]

Definition at line 396 of file fst.h.

template<class FST>
StateId fst::StateIterator< FST >::Value (  )  const [inline]

Definition at line 386 of file fst.h.


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