Public Member Functions | Protected Member Functions

zeus::TAbstractMapIterator< TKeyType, T > Class Template Reference

#include <Iterators.hpp>

Inheritance diagram for zeus::TAbstractMapIterator< TKeyType, T >:
zeus::TAutoPtrBase< IMapIterator< TKeyType, T > > zeus::IMapIterator< TKeyType, T > zeus::TConstMapIterator< TKeyType, T > zeus::TMapIterator< TKeyType, T >

List of all members.

Public Member Functions

virtual void MQUALIFIER reset () const
virtual const T &MQUALIFIER getNextItemConst () const
virtual bool MQUALIFIER hasNextItem () const
virtual Retval MQUALIFIER getNextKeyConst (TKeyType &rKey) const
virtual const T &MQUALIFIER getNextItemWithKeyConst (TKeyType &rKey) const

Protected Member Functions

 TAbstractMapIterator ()
 TAbstractMapIterator (const IMapIterator< TKeyType, T > *pIt, bool bAllocPointer=false)
 TAbstractMapIterator (IMapIterator< TKeyType, T > *pIt, bool bAllocPointer=false)
virtual T &MQUALIFIER getNextItem () const =0
virtual Retval MQUALIFIER getNextKey (TKeyType &rKey)=0
virtual T &MQUALIFIER getNextItemWithKey (TKeyType &rKey) const =0

Detailed Description

template<class TKeyType, class T>
class zeus::TAbstractMapIterator< TKeyType, T >

Abstract implementation of the map iterator wrapper.


Constructor & Destructor Documentation

template<class TKeyType , class T >
zeus::TAbstractMapIterator< TKeyType, T >::TAbstractMapIterator (  ) [inline, protected]

Standard constructor

template<class TKeyType , class T >
zeus::TAbstractMapIterator< TKeyType, T >::TAbstractMapIterator ( const IMapIterator< TKeyType, T > *  pIt,
bool  bAllocPointer = false 
) [inline, protected]

Creates an Interface Smart pointer

Parameters:
pIt: Iterator Interface
bAllocPointer: If this flag is true the pointer will be allocated with addRef()
template<class TKeyType , class T >
zeus::TAbstractMapIterator< TKeyType, T >::TAbstractMapIterator ( IMapIterator< TKeyType, T > *  pIt,
bool  bAllocPointer = false 
) [inline, protected]

Creates an Interface Smart pointer

Parameters:
pIt: Iterator Interface
bAllocPointer: If this flag is true the pointer will be allocated with addRef()

Member Function Documentation

template<class TKeyType , class T >
virtual T& MQUALIFIER zeus::TAbstractMapIterator< TKeyType, T >::getNextItem (  ) const [protected, pure virtual]

Gets the next Item

Implements zeus::IListIterator< T >.

Implemented in zeus::TMapIterator< TKeyType, T >.

template<class TKeyType , class T >
virtual const T& MQUALIFIER zeus::TAbstractMapIterator< TKeyType, T >::getNextItemConst (  ) const [inline, virtual]
template<class TKeyType , class T >
virtual T& MQUALIFIER zeus::TAbstractMapIterator< TKeyType, T >::getNextItemWithKey ( TKeyType &  rKey ) const [protected, pure virtual]

Gets the next Item and also returns the key value as a copy

Implements zeus::IMapIterator< TKeyType, T >.

Implemented in zeus::TMapIterator< TKeyType, T >.

template<class TKeyType , class T >
virtual const T& MQUALIFIER zeus::TAbstractMapIterator< TKeyType, T >::getNextItemWithKeyConst ( TKeyType &  rKey ) const [inline, virtual]
template<class TKeyType , class T >
virtual Retval MQUALIFIER zeus::TAbstractMapIterator< TKeyType, T >::getNextKey ( TKeyType &  rKey ) [protected, pure virtual]

This method returns the key of an item instead of the value

Implements zeus::IMapIterator< TKeyType, T >.

Implemented in zeus::TMapIterator< TKeyType, T >.

template<class TKeyType , class T >
virtual Retval MQUALIFIER zeus::TAbstractMapIterator< TKeyType, T >::getNextKeyConst ( TKeyType &  rKey ) const [inline, virtual]
template<class TKeyType , class T >
virtual bool MQUALIFIER zeus::TAbstractMapIterator< TKeyType, T >::hasNextItem (  ) const [inline, virtual]
template<class TKeyType , class T >
virtual void MQUALIFIER zeus::TAbstractMapIterator< TKeyType, T >::reset (  ) const [inline, virtual]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:28:39