ezEngine  Milestone 7
ezListBase< T >::Iterator Struct Reference

A forward-iterator. Allows sequential access from front-to-back. More...

#include <List.h>

Inheritance diagram for ezListBase< T >::Iterator:

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
 Iterator ()
 Constructor.
 
T & operator* ()
 Accesses the element stored in the node.
 
T * operator-> ()
 Accesses the element stored in the node.
 
- Public Member Functions inherited from ezListBase< T >::ConstIterator
 EZ_DECLARE_POD_TYPE ()
 
 ConstIterator ()
 Constructor.
 
bool operator== (typename ezListBase< T >::ConstIterator it2) const
 Equality comparison operator.
 
bool operator!= (typename ezListBase< T >::ConstIterator it2) const
 Inequality comparison operator.
 
const T & operator* () const
 Grants access to the node-data.
 
const T * operator-> () const
 Grants access to the node-data.
 
void Next ()
 Moves the iterator to the next node.
 
void Prev ()
 Moves the iterator to the previous node.
 
bool IsValid () const
 Checks whether this iterator points to a valid element (and not the start/end of the list)
 
void operator++ ()
 Moves the iterator to the next element in the list.
 
void operator-- ()
 Moves the iterator to the previous element in the list.
 

Private Member Functions

 Iterator (ListElement *pInit)
 

Friends

class ezListBase< T >
 

Detailed Description

template<typename T>
struct ezListBase< T >::Iterator

A forward-iterator. Allows sequential access from front-to-back.


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