EMP::Core::Pool< PoolType >::Iterator Class Reference

#include <Pool.h>

Collaboration diagram for EMP::Core::Pool< PoolType >::Iterator:

Public Member Functions

void operator++ ()
 operator bool ()
PoolType & operator* ()
PoolType * operator-> ()

Friends

class Pool< PoolType >

Detailed Description

template<typename PoolType>
class EMP::Core::Pool< PoolType >::Iterator

Iterator objects are used for safe traversal of the allocated members of a pool.

Member Function Documentation

template<typename PoolType>
void EMP::Core::Pool< PoolType >::Iterator::operator++ (  )  [inline]

Increments the iterator to reference the next node in the linked list. It is an error to call this function if the node this iterator references is invalid.

template<typename PoolType>
EMP::Core::Pool< PoolType >::Iterator::operator bool (  )  [inline]

Returns true if it is OK to deference or increment this iterator.

template<typename PoolType>
PoolType& EMP::Core::Pool< PoolType >::Iterator::operator* (  )  [inline]

Returns the object referenced by the iterator's current node.

template<typename PoolType>
PoolType* EMP::Core::Pool< PoolType >::Iterator::operator-> (  )  [inline]

Returns a pointer to the object referenced by the iterator's current node.


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