Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
reranker::CandidateSetIterator Class Referenceabstract

An interface specifying iteration over CandidateSet instances, using Java-style semantics (sorry, die-hard C++ iterator fans). More...

#include <candidate-set-iterator.H>

Inheritance diagram for reranker::CandidateSetIterator:
reranker::CollectionCandidateSetIterator< Collection > reranker::MultiFileCandidateSetIterator

Public Member Functions

virtual ~CandidateSetIterator ()
 
virtual bool HasNext () const =0
 Returns whether this iterator contains another CandidateSet. More...
 
virtual CandidateSetNext ()=0
 Returns the next CandidateSet. More...
 
virtual void Reset ()=0
 Resets this iterator back to the beginning of its backing collection. More...
 

Detailed Description

An interface specifying iteration over CandidateSet instances, using Java-style semantics (sorry, die-hard C++ iterator fans).

Unlike Java or C++ iterators, implementations of this interface are always assumed to have some way of returning to the beginning of their underlying collection of CandidateSet instances; this is required by the Reset method.

Definition at line 58 of file candidate-set-iterator.H.

Constructor & Destructor Documentation

virtual reranker::CandidateSetIterator::~CandidateSetIterator ( )
inlinevirtual

Definition at line 60 of file candidate-set-iterator.H.

Member Function Documentation

virtual bool reranker::CandidateSetIterator::HasNext ( ) const
pure virtual

Returns whether this iterator contains another CandidateSet.

Implemented in reranker::MultiFileCandidateSetIterator, and reranker::CollectionCandidateSetIterator< Collection >.

virtual CandidateSet& reranker::CandidateSetIterator::Next ( )
pure virtual
virtual void reranker::CandidateSetIterator::Reset ( )
pure virtual

Resets this iterator back to the beginning of its backing collection.

Implemented in reranker::MultiFileCandidateSetIterator, and reranker::CollectionCandidateSetIterator< Collection >.


The documentation for this class was generated from the following file: