Public Types | Public Member Functions

fst::ArcIteratorBase< A > Class Template Reference

#include <fst/fst.h>

Inherited by fst::ArcIterator< ComplementFst< A > >, and fst::MutableArcIteratorBase< A >.

List of all members.

Public Types

typedef A Arc
typedef A::StateId StateId

Public Member Functions

virtual ~ArcIteratorBase ()
bool Done () const
const A & Value () const
 End of iterator?
void Next ()
 Current state (when !Done).
size_t Position () const
 Advance to next arc (when !Done).
void Reset ()
 Return current position.
void Seek (size_t a)
 Return to initial condition.
uint32 Flags () const
 Random arc access by position.
void SetFlags (uint32 flags, uint32 mask)
 Return current behavorial flags.

Detailed Description

template<class A>
class fst::ArcIteratorBase< A >

Arc iterator interface, templated on the Arc definition; used for Arc iterator specializations that are returned by the InitArcIterator Fst method.

Definition at line 368 of file fst.h.


Member Typedef Documentation

template<class A>
typedef A fst::ArcIteratorBase< A >::Arc

Reimplemented in fst::MutableArcIteratorBase< A >, and fst::MutableArcIteratorBase< Arc >.

Definition at line 370 of file fst.h.

template<class A>
typedef A::StateId fst::ArcIteratorBase< A >::StateId

Constructor & Destructor Documentation

template<class A>
virtual fst::ArcIteratorBase< A >::~ArcIteratorBase (  )  [inline, virtual]

Definition at line 373 of file fst.h.


Member Function Documentation

template<class A>
bool fst::ArcIteratorBase< A >::Done (  )  const [inline]
template<class A>
uint32 fst::ArcIteratorBase< A >::Flags (  )  const [inline]

Random arc access by position.

Reimplemented in fst::ArcIterator< ComplementFst< A > >, and fst::MutableArcIterator< VectorFst< A > >.

Definition at line 381 of file fst.h.

template<class A>
void fst::ArcIteratorBase< A >::Next (  )  [inline]

Current state (when !Done).

Reimplemented in fst::ArcIterator< ComplementFst< A > >, and fst::MutableArcIterator< VectorFst< A > >.

Definition at line 377 of file fst.h.

template<class A>
size_t fst::ArcIteratorBase< A >::Position (  )  const [inline]

Advance to next arc (when !Done).

Reimplemented in fst::ArcIterator< ComplementFst< A > >, and fst::MutableArcIterator< VectorFst< A > >.

Definition at line 378 of file fst.h.

template<class A>
void fst::ArcIteratorBase< A >::Reset (  )  [inline]

Return current position.

Reimplemented in fst::ArcIterator< ComplementFst< A > >, and fst::MutableArcIterator< VectorFst< A > >.

Definition at line 379 of file fst.h.

template<class A>
void fst::ArcIteratorBase< A >::Seek ( size_t  a  )  [inline]

Return to initial condition.

Reimplemented in fst::ArcIterator< ComplementFst< A > >, and fst::MutableArcIterator< VectorFst< A > >.

Definition at line 380 of file fst.h.

template<class A>
void fst::ArcIteratorBase< A >::SetFlags ( uint32  flags,
uint32  mask 
) [inline]

Return current behavorial flags.

Reimplemented in fst::ArcIterator< ComplementFst< A > >, and fst::MutableArcIterator< VectorFst< A > >.

Definition at line 382 of file fst.h.

template<class A>
const A& fst::ArcIteratorBase< A >::Value (  )  const [inline]

End of iterator?

Reimplemented in fst::ArcIterator< ComplementFst< A > >, and fst::MutableArcIterator< VectorFst< A > >.

Definition at line 376 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