#include <fst/replace.h>
List of all members.
Detailed Description
template<class A, class T>
class fst::ArcIterator< ReplaceFst< A, T > >
Specialization for ReplaceFst. Implements optional caching. It can be used as follows:
ReplaceFst replace; ArcIterator< ReplaceFst > aiter(replace, s); Note: ArcIterator< Fst > is always a caching arc iterator. aiter.SetFlags(kArcNoCache, kArcNoCache); Use the arc iterator, no arc will be cached, no state will be expanded. The varied 'kArcValueFlags' can be used to decide which part of arc values needs to be computed. aiter.SetFlags(kArcILabelValue, kArcValueFlags); Only want the ilabel for this arc aiter.Value(); ///< Does not compute the destination state. aiter.Next(); aiter.SetFlags(kArcNextStateValue, kArcNextStateValue); Want both ilabel and nextstate for that arc aiter.Value(); ///< Does compute the destination state and inserts it in the replace state table. No Arc has been cached at that point.
Definition at line 1024 of file replace.h.
Member Typedef Documentation
template<class A , class T >
template<class A , class T >
Constructor & Destructor Documentation
template<class A , class T >
template<class A , class T >
Member Function Documentation
template<class A , class T >
template<class A , class T >
template<class A , class T >
template<class A , class T >
template<class A , class T >
template<class A , class T >
template<class A , class T >
template<class A , class T >
template<class A , class T >
template<class A , class T >
The documentation for this class was generated from the following file: