CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass > Class Template Reference

#include <mfccontainer.h>

List of all members.

Public Types

typedef BaseClass::iterator iterator
typedef BaseClass::const_iterator const_iterator

Public Member Functions

 CMap ()
 CMap (INT32)
PINT32 GetCount () const
PINT32 GetSize () const
BOOL IsEmpty () const
BOOL Lookup (ARG_KEY key, VALUE &rValue) const
VALUE & operator[] (ARG_KEY key)
void SetAt (ARG_KEY key, ARG_VALUE newValue)
BOOL RemoveKey (ARG_KEY key)
void RemoveAll ()
const_iterator GetStartPosition () const
void GetNextAssoc (const_iterator &rNextPosition, KEY &rKey, VALUE &rValue) const

Protected Attributes

BaseClass m_TheMap


Detailed Description

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
class CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >

Definition at line 105 of file mfccontainer.h.


Member Typedef Documentation

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
typedef BaseClass::const_iterator CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >::const_iterator
 

Definition at line 112 of file mfccontainer.h.

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
typedef BaseClass::iterator CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >::iterator
 

Definition at line 111 of file mfccontainer.h.


Constructor & Destructor Documentation

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >::CMap  )  [inline]
 

Definition at line 114 of file mfccontainer.h.

00115     {
00116     }

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >::CMap INT32   )  [inline]
 

Definition at line 118 of file mfccontainer.h.

00119     {
00120     }


Member Function Documentation

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
PINT32 CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >::GetCount void   )  const [inline]
 

Definition at line 124 of file mfccontainer.h.

00124 { return m_TheMap.size(); }

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
void CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >::GetNextAssoc const_iterator rNextPosition,
KEY &  rKey,
VALUE &  rValue
const [inline]
 

Definition at line 173 of file mfccontainer.h.

00174     {
00175         if( m_TheMap.end() == rNextPosition || NULL == rNextPosition )
00176         {
00177             rNextPosition = NULL;
00178             return;
00179         }
00180 
00181         rKey    = rNextPosition->first;
00182         rValue  = rNextPosition->second;
00183         ++rNextPosition;
00184     }

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
PINT32 CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >::GetSize  )  const [inline]
 

Definition at line 125 of file mfccontainer.h.

00125 { return m_TheMap.size(); }

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
const_iterator CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >::GetStartPosition  )  const [inline]
 

Definition at line 168 of file mfccontainer.h.

00169     {
00170         return m_TheMap.begin();
00171     }

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
BOOL CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >::IsEmpty void   )  const [inline]
 

Definition at line 126 of file mfccontainer.h.

00126 { return m_TheMap.empty(); }

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
BOOL CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >::Lookup ARG_KEY  key,
VALUE &  rValue
const [inline]
 

Definition at line 129 of file mfccontainer.h.

00130     {
00131         const_iterator  iter = m_TheMap.find( key );
00132         if( m_TheMap.end() == iter )
00133             return FALSE;
00134 
00135         rValue = iter->second;
00136         return TRUE;
00137     }

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
VALUE& CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >::operator[] ARG_KEY  key  )  [inline]
 

Definition at line 141 of file mfccontainer.h.

00142     {
00143         return m_TheMap[key];
00144     }

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
void CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >::RemoveAll  )  [inline]
 

Reimplemented in CCUserAttrMap.

Definition at line 162 of file mfccontainer.h.

00163     {
00164         m_TheMap.clear();
00165     }

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
BOOL CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >::RemoveKey ARG_KEY  key  )  [inline]
 

Definition at line 153 of file mfccontainer.h.

00154     {
00155         
00156         const_iterator  iter = m_TheMap.find( key );
00157         if( m_TheMap.end() == iter )
00158             return FALSE;
00159         m_TheMap.erase( key );
00160         return TRUE;
00161     }

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
void CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >::SetAt ARG_KEY  key,
ARG_VALUE  newValue
[inline]
 

Reimplemented in CCUserAttrMap.

Definition at line 147 of file mfccontainer.h.

00148     {
00149         m_TheMap[key] = newValue;
00150     }


Member Data Documentation

template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE, typename BaseClass = std::map<KEY, VALUE>>
BaseClass CMap< KEY, ARG_KEY, VALUE, ARG_VALUE, BaseClass >::m_TheMap [protected]
 

Definition at line 108 of file mfccontainer.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 03:52:35 2007 for Camelot by  doxygen 1.4.4