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

#include <ManagedMap.hpp>

Inheritance diagram for zeus::TManagedMap< TKeyType, T >:

zeus::TMap< TKeyType, T > zeus::IMap< TKeyType, T > zeus::IValueType

List of all members.

Public Member Functions

 TManagedMap ()
virtual void MQUALIFIER setItem (const TKeyType &rKey, const TAutoPtr< T > &rData)
virtual void setItem (const TKeyType &rKey, const T *pData, bool bAddReference)
virtual void setItem (const TKeyType &rKey, const T &rData, bool bAddReference)


Detailed Description

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

This map takes objects (interfaces) and manages fully their references

Constructor & Destructor Documentation

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

The standard constructor uses an empty smart pointer.


Member Function Documentation

template<class TKeyType, class T>
virtual void MQUALIFIER zeus::TManagedMap< TKeyType, T >::setItem ( const TKeyType &  rKey,
const TAutoPtr< T > &  rData 
) [inline, virtual]

See also:
IMap::setItem

template<class TKeyType, class T>
virtual void zeus::TManagedMap< TKeyType, T >::setItem ( const TKeyType &  rKey,
const T *  pData,
bool  bAddReference 
) [inline, virtual]

adds a new object to the map

Parameters:
bAddReference : If this flag is true the pointer will be allocated with addRef()
See also:
IMap::setItem

template<class TKeyType, class T>
virtual void zeus::TManagedMap< TKeyType, T >::setItem ( const TKeyType &  rKey,
const T &  rData,
bool  bAddReference 
) [inline, virtual]

adds a new object to the map

Parameters:
bAddReference : If this flag is true the pointer will be allocated with addRef()
See also:
IMap::setItem


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


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Wed Oct 28 21:42:35 2009