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::CollectionCandidateSetIterator< Collection > Class Template Reference

An implementation of the CandidateSetIterator interface that is backed by an arbitrary C++ collection of pointers to CandidateSet’s, where the collection’s iterators implement the ForwardIterator concept. More...

#include <candidate-set-iterator.H>

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

Public Member Functions

 CollectionCandidateSetIterator (Collection &collection)
 
virtual bool HasNext () const
 Returns whether this iterator contains another CandidateSet. More...
 
virtual CandidateSetNext ()
 Returns the next CandidateSet. More...
 
virtual void Reset ()
 Resets this iterator back to the beginning of its backing collection. More...
 
- Public Member Functions inherited from reranker::CandidateSetIterator
virtual ~CandidateSetIterator ()
 

Detailed Description

template<typename Collection>
class reranker::CollectionCandidateSetIterator< Collection >

An implementation of the CandidateSetIterator interface that is backed by an arbitrary C++ collection of pointers to CandidateSet’s, where the collection’s iterators implement the ForwardIterator concept.

Attention
It is a requirement of instances of this class that the backing collections do not get destroyed during the lifetime of instances of this class. If they do, then the behavior of this candidate set iterator is undefined.
Template Parameters
Collectionthe type of collection that this candidate set iterator will wrap; the Collection must have begin and end methods, each returning an iterator of type Collection::iterator that implements the ForwardIterator concept

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

Constructor & Destructor Documentation

template<typename Collection >
reranker::CollectionCandidateSetIterator< Collection >::CollectionCandidateSetIterator ( Collection &  collection)
inline

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

Member Function Documentation

template<typename Collection >
virtual bool reranker::CollectionCandidateSetIterator< Collection >::HasNext ( ) const
inlinevirtual

Returns whether this iterator contains another CandidateSet.

Implements reranker::CandidateSetIterator.

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

template<typename Collection >
virtual CandidateSet& reranker::CollectionCandidateSetIterator< Collection >::Next ( )
inlinevirtual

Returns the next CandidateSet.

Implements reranker::CandidateSetIterator.

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

template<typename Collection >
virtual void reranker::CollectionCandidateSetIterator< Collection >::Reset ( )
inlinevirtual

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

Implements reranker::CandidateSetIterator.

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


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