Walls And Holes  1
DereferencingConstIterator< 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 <dereferencingconstiterator.h>

Public Member Functions

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

Detailed Description

template<typename ObjectType, typename IteratorType>
class DereferencingConstIterator< 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.

Const version of DereferncingIterator.

Constructor & Destructor Documentation

◆ DereferencingConstIterator()

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

Member Function Documentation

◆ operator!=()

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

◆ operator*()

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

◆ operator++() [1/2]

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

◆ operator++() [2/2]

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

◆ operator==()

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

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