Public Member Functions | Protected Member Functions

zeus::TIndexedMap< TKeyType, TValueType > Class Template Reference

#include <IndexedMap.hpp>

Inheritance diagram for zeus::TIndexedMap< TKeyType, TValueType >:
zeus::IIndexedMap< TKeyType, TValueType > zeus::IMap< TKeyType, TValueType > zeus::IValueType

List of all members.

Public Member Functions

 TIndexedMap ()
 TIndexedMap (const TIndexedMap< TKeyType, TValueType > &rMappedList)
 TIndexedMap (const IMap< TKeyType, TValueType > &rMap)
virtual ~TIndexedMap ()
virtual void MQUALIFIER clear ()
virtual void MQUALIFIER copyToMap (IMap< TKeyType, TValueType > &rMap) const
virtual void MQUALIFIER copyValuesToList (IList< TValueType > &rList) const
virtual void MQUALIFIER copyKeysToList (IList< TKeyType > &rList) const
virtual bool MQUALIFIER deleteItem (const TKeyType &rKey)
virtual bool MQUALIFIER equals (const IMap< TKeyType, TValueType > &rMap) const
virtual Int MQUALIFIER getCount () const
virtual TValueType &MQUALIFIER getItem (const TKeyType &rKey)
virtual const TValueType
&MQUALIFIER 
getItemConst (const TKeyType &rKey) const
virtual TValueType &MQUALIFIER getOrCreateItem (const TKeyType &rKey)
virtual const IMapIterator
< TKeyType, TValueType >
*MQUALIFIER 
getConstIterator () const
virtual const IListIterator
< TKeyType > *MQUALIFIER 
getConstKeyIterator () const
virtual const IListIterator
< TValueType > *MQUALIFIER 
getConstValueIterator () const
virtual bool MQUALIFIER hasItem (const TKeyType &rKey) const
virtual bool MQUALIFIER isEmpty () const
virtual void MQUALIFIER releaseIterator (const IListIterator< TValueType > *pIterator) const
virtual void MQUALIFIER releaseKeyIterator (const IListIterator< TKeyType > *pIterator) const
virtual void MQUALIFIER setItem (const TKeyType &rKey, const TValueType &rValue)
virtual void MQUALIFIER copyToIndexedMap (TIndexedMap< TKeyType, TValueType > &rIndexedMap) const
virtual bool MQUALIFIER deleteItemByIndex (Int iIndex)
virtual bool MQUALIFIER equals (const IIndexedMap< TKeyType, TValueType > &rIndexedMap) const
virtual bool equals (const TIndexedMap< TKeyType, TValueType > &rIndexedMap) const
virtual Int MQUALIFIER getIndexByKey (const TKeyType &rKey)
virtual const Int MQUALIFIER getIndexByKeyConst (const TKeyType &rKey) const
virtual TKeyType MQUALIFIER getKeyByIndex (Int iIndex)
virtual const TKeyType MQUALIFIER getKeyByIndexConst (Int iIndex) const
virtual TValueType &MQUALIFIER getValueByIndex (Int iIndex)
virtual const TValueType
&MQUALIFIER 
getValueByIndexConst (Int iIndex) const
virtual const IMap< TKeyType,
TValueType > &MQUALIFIER 
getMapConst () const
virtual TIndexedMap< TKeyType,
TValueType > & 
operator= (const TIndexedMap< TKeyType, TValueType > &rIndexedMap)
virtual TIndexedMap< TKeyType,
TValueType > & 
operator= (const IMap< TKeyType, TValueType > &rMap)
virtual bool operator== (const TIndexedMap< TKeyType, TValueType > &rIndexedMap) const
virtual bool operator== (const IIndexedMap< TKeyType, TValueType > &rIndexedMap) const
virtual bool operator== (const IMap< TKeyType, TValueType > &rMap) const
virtual bool operator!= (const TIndexedMap< TKeyType, TValueType > &rIndexedMap) const
virtual bool operator!= (const IIndexedMap< TKeyType, TValueType > &rIndexedMap) const
virtual bool operator!= (const IMap< TKeyType, TValueType > &rMap) const

Protected Member Functions

virtual IMapIterator< TKeyType,
TValueType > *MQUALIFIER 
getIterator ()

Detailed Description

template<class TKeyType, class TValueType>
class zeus::TIndexedMap< TKeyType, TValueType >

This class implements a IndexedMap A IndexedMap implements a map and tow lists. One list for values and one list for the keys. The index of value and key pair are every time the same.


Constructor & Destructor Documentation

template<class TKeyType, class TValueType>
zeus::TIndexedMap< TKeyType, TValueType >::TIndexedMap (  ) [inline]

Standard constructor

template<class TKeyType, class TValueType>
zeus::TIndexedMap< TKeyType, TValueType >::TIndexedMap ( const TIndexedMap< TKeyType, TValueType > &  rMappedList ) [inline]

copy constructor

template<class TKeyType, class TValueType>
zeus::TIndexedMap< TKeyType, TValueType >::TIndexedMap ( const IMap< TKeyType, TValueType > &  rMap ) [inline]

IMap constructor

template<class TKeyType, class TValueType>
virtual zeus::TIndexedMap< TKeyType, TValueType >::~TIndexedMap (  ) [inline, virtual]

destructor


Member Function Documentation

template<class TKeyType, class TValueType>
virtual void MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::clear (  ) [inline, virtual]
template<class TKeyType, class TValueType>
virtual void MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::copyKeysToList ( IList< TKeyType > &  rList ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual void MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::copyToIndexedMap ( TIndexedMap< TKeyType, TValueType > &  rIndexedMap ) const [inline, virtual]
See also:
IIndexedMap::copyToIndexedMap
template<class TKeyType, class TValueType>
virtual void MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::copyToMap ( IMap< TKeyType, TValueType > &  rMap ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual void MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::copyValuesToList ( IList< TValueType > &  rList ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual bool MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::deleteItem ( const TKeyType &  rKey ) [inline, virtual]
template<class TKeyType, class TValueType>
virtual bool MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::deleteItemByIndex ( Int  iIndex ) [inline, virtual]
template<class TKeyType, class TValueType>
virtual bool MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::equals ( const IIndexedMap< TKeyType, TValueType > &  rIndexedMap ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual bool zeus::TIndexedMap< TKeyType, TValueType >::equals ( const TIndexedMap< TKeyType, TValueType > &  rIndexedMap ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual bool MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::equals ( const IMap< TKeyType, TValueType > &  rMap ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual const IMapIterator<TKeyType, TValueType>* MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::getConstIterator (  ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual const IListIterator<TKeyType>* MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::getConstKeyIterator (  ) const [inline, virtual]

returns the const iterator of the key list

template<class TKeyType, class TValueType>
virtual const IListIterator<TValueType>* MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::getConstValueIterator (  ) const [inline, virtual]

returns the const iterator of the value list

template<class TKeyType, class TValueType>
virtual Int MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::getCount (  ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual Int MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::getIndexByKey ( const TKeyType &  rKey ) [inline, virtual]
template<class TKeyType, class TValueType>
virtual const Int MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::getIndexByKeyConst ( const TKeyType &  rKey ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual TValueType& MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::getItem ( const TKeyType &  rKey ) [inline, virtual]
template<class TKeyType, class TValueType>
virtual const TValueType& MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::getItemConst ( const TKeyType &  rKey ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual IMapIterator<TKeyType, TValueType>* MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::getIterator (  ) [inline, protected, virtual]
See also:
IMap::getIterator

No external changes on members are allowed for update reasons. Hidden as protected, the implementation does not return an iterator.

Auf getIterator darf kein Iterator herausgegeben werden da sonst die internen Listen bei Veränderungen nicht nachgeführt werden.

Implements zeus::IIndexedMap< TKeyType, TValueType >.

template<class TKeyType, class TValueType>
virtual TKeyType MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::getKeyByIndex ( Int  iIndex ) [inline, virtual]
template<class TKeyType, class TValueType>
virtual const TKeyType MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::getKeyByIndexConst ( Int  iIndex ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual const IMap<TKeyType, TValueType>& MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::getMapConst (  ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual TValueType& MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::getOrCreateItem ( const TKeyType &  rKey ) [inline, virtual]
template<class TKeyType, class TValueType>
virtual TValueType& MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::getValueByIndex ( Int  iIndex ) [inline, virtual]
template<class TKeyType, class TValueType>
virtual const TValueType& MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::getValueByIndexConst ( Int  iIndex ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual bool MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::hasItem ( const TKeyType &  rKey ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual bool MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::isEmpty (  ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual bool zeus::TIndexedMap< TKeyType, TValueType >::operator!= ( const IMap< TKeyType, TValueType > &  rMap ) const [inline, virtual]

not equals operator

template<class TKeyType, class TValueType>
virtual bool zeus::TIndexedMap< TKeyType, TValueType >::operator!= ( const TIndexedMap< TKeyType, TValueType > &  rIndexedMap ) const [inline, virtual]

not equals operator

template<class TKeyType, class TValueType>
virtual bool zeus::TIndexedMap< TKeyType, TValueType >::operator!= ( const IIndexedMap< TKeyType, TValueType > &  rIndexedMap ) const [inline, virtual]

not equals operator

template<class TKeyType, class TValueType>
virtual TIndexedMap<TKeyType, TValueType>& zeus::TIndexedMap< TKeyType, TValueType >::operator= ( const IMap< TKeyType, TValueType > &  rMap ) [inline, virtual]

Assigns the data of a indexedMap to this object

Parameters:
rMap: Map to assign
Returns:
this
template<class TKeyType, class TValueType>
virtual TIndexedMap<TKeyType, TValueType>& zeus::TIndexedMap< TKeyType, TValueType >::operator= ( const TIndexedMap< TKeyType, TValueType > &  rIndexedMap ) [inline, virtual]

Assigns the data of a indexedMap to this object

Parameters:
rIndexedMap: indexedMap to assign
Returns:
this
template<class TKeyType, class TValueType>
virtual bool zeus::TIndexedMap< TKeyType, TValueType >::operator== ( const IMap< TKeyType, TValueType > &  rMap ) const [inline, virtual]

equals operator

template<class TKeyType, class TValueType>
virtual bool zeus::TIndexedMap< TKeyType, TValueType >::operator== ( const IIndexedMap< TKeyType, TValueType > &  rIndexedMap ) const [inline, virtual]

equals operator

template<class TKeyType, class TValueType>
virtual bool zeus::TIndexedMap< TKeyType, TValueType >::operator== ( const TIndexedMap< TKeyType, TValueType > &  rIndexedMap ) const [inline, virtual]

equals operator

template<class TKeyType, class TValueType>
virtual void MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::releaseIterator ( const IListIterator< TValueType > *  pIterator ) const [inline, virtual]
template<class TKeyType, class TValueType>
virtual void MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::releaseKeyIterator ( const IListIterator< TKeyType > *  pIterator ) const [inline, virtual]

releases the key iterator

template<class TKeyType, class TValueType>
virtual void MQUALIFIER zeus::TIndexedMap< TKeyType, TValueType >::setItem ( const TKeyType &  rKey,
const TValueType &  rValue 
) [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:34