Public Member Functions

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

#include <ManagedMap.hpp>

Inheritance diagram for zeus::TManagedMap< TKeyType, T >:
zeus::TMap< TKeyType, TAutoPtr< T > > zeus::IMap< TKeyType, TAutoPtr< 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]
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:
rKey: key of the data
rData: data to add
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 *  pData,
bool  bAddReference 
) [inline, virtual]

adds a new object to the map

Parameters:
rKey: key of the data
pData: data to add
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:
 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