Walls And Holes  1
DereferencingIterator< ObjectType, IteratorType > Class Template Reference

A helper class to provide an iterator into a collection of pointers such that when the iterator is dereferenced, it returns a reference instead of a pointer. More...

#include <dereferencingiterator.h>

Public Member Functions

 DereferencingIterator (IteratorType itr)
 
ObjectType & operator* ()
 
bool operator== (const DereferencingIterator< ObjectType, IteratorType > &other) const
 
bool operator!= (const DereferencingIterator< ObjectType, IteratorType > &other) const
 
DereferencingIterator< ObjectType, IteratorType > & operator++ ()
 
DereferencingIterator< ObjectType, IteratorType > operator++ (int)
 

Detailed Description

template<typename ObjectType, typename IteratorType>
class DereferencingIterator< ObjectType, IteratorType >

A helper class to provide an iterator into a collection of pointers such that when the iterator is dereferenced, it returns a reference instead of a pointer.

Constructor & Destructor Documentation

◆ DereferencingIterator()

template<typename ObjectType, typename IteratorType>
DereferencingIterator< ObjectType, IteratorType >::DereferencingIterator ( IteratorType  itr)
inline

Member Function Documentation

◆ operator!=()

template<typename ObjectType, typename IteratorType>
bool DereferencingIterator< ObjectType, IteratorType >::operator!= ( const DereferencingIterator< ObjectType, IteratorType > &  other) const
inline

◆ operator*()

template<typename ObjectType, typename IteratorType>
ObjectType& DereferencingIterator< ObjectType, IteratorType >::operator* ( )
inline

◆ operator++() [1/2]

template<typename ObjectType, typename IteratorType>
DereferencingIterator<ObjectType, IteratorType>& DereferencingIterator< ObjectType, IteratorType >::operator++ ( )
inline

◆ operator++() [2/2]

template<typename ObjectType, typename IteratorType>
DereferencingIterator<ObjectType, IteratorType> DereferencingIterator< ObjectType, IteratorType >::operator++ ( int  )
inline

◆ operator==()

template<typename ObjectType, typename IteratorType>
bool DereferencingIterator< ObjectType, IteratorType >::operator== ( const DereferencingIterator< ObjectType, IteratorType > &  other) const
inline

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