DeSR Dependency Parser

Tanl::Enumerator< T > Class Template Reference

Enumerator interface. More...

#include <Enumerator.h>

Inheritance diagram for Tanl::Enumerator< T >:

Inheritance graph

List of all members.

Public Types

typedef T ItemType

Public Member Functions

virtual bool MoveNext ()=0
 Advances to the next element of the collection.
virtual ItemType Current ()=0
virtual void Reset ()
 Optional reset to the beginning of the enumeration.


Detailed Description

template<class T>
class Tanl::Enumerator< T >

Enumerator interface.

Definition at line 33 of file Enumerator.h.


Member Function Documentation

template<class T >
virtual ItemType Tanl::Enumerator< T >::Current (  )  [pure virtual]

Returns:
the current element.

Implemented in Parser::Tokenizer.

template<class T >
virtual bool Tanl::Enumerator< T >::MoveNext (  )  [pure virtual]

Advances to the next element of the collection.

Returns:
true if there is another item available.

Implemented in Tanl::ConllXSentenceReader, Tanl::DgaSentenceReader, Tanl::TokenSentenceReader, Tanl::SplitSentenceReader, and Parser::Tokenizer.

template<class T >
virtual void Tanl::Enumerator< T >::Reset (  )  [inline, virtual]

Optional reset to the beginning of the enumeration.

Reimplemented in Parser::Tokenizer.

Definition at line 46 of file Enumerator.h.


The documentation for this class was generated from the following file:
 
Copyright © 2005-2007 G. Attardi. Generated on 13 Aug 2009 by doxygen 1.5.7.1.