My Project
|
Base enumerator interface for simple iteration over a generic collection. More...
#include <Enumerator.h>
Public Member Functions | |
virtual bool | MoveNext ()=0 |
Advances the enumerator to the next element of the collection. returns true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. More... | |
virtual void | Reset ()=0 |
Sets the enumerator to its initial position: -1, which is before the first element in the collection. More... | |
virtual bool | IsValid () const =0 |
Current position is inside the collection (not -1 or past the end) More... | |
Protected Member Functions | |
IBaseEnumerator () | |
~IBaseEnumerator () | |
Private Member Functions | |
IBaseEnumerator (const IBaseEnumerator &) | |
disable copy constructor and assignment operator More... | |
void | operator= (const IBaseEnumerator &) |
Base enumerator interface for simple iteration over a generic collection.
Abstract API of enumerators for enumerable collections of standalone objects. Just like IEnumerator from C#. Usage pattern can be as follows:
Note that the Reset()
Definition at line 43 of file Enumerator.h.
|
private |
disable copy constructor and assignment operator
|
inlineprotected |
Definition at line 65 of file Enumerator.h.
|
inlineprotected |
Definition at line 66 of file Enumerator.h.
|
pure virtual |
Current position is inside the collection (not -1 or past the end)
Implemented in CBasePolyEnumerator, and CRecursivePolyCoeffsEnumerator< ConverterPolicy >.
|
pure virtual |
Advances the enumerator to the next element of the collection. returns true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.
Implemented in CBasePolyEnumerator, and CRecursivePolyCoeffsEnumerator< ConverterPolicy >.
|
private |
|
pure virtual |
Sets the enumerator to its initial position: -1, which is before the first element in the collection.
Implemented in CBasePolyEnumerator, and CRecursivePolyCoeffsEnumerator< ConverterPolicy >.