CLookupPtr< T > Class Template Reference

#include <clookup.h>

List of all members.

Classes

class  CIterator

Public Member Functions

 CLookupPtr (bool freePointers)
 ~CLookupPtr ()
T * get (void *key) const
T * getOrCreate (void *key)
void put (void *key, T *value)
bool exists (void *key) const

Private Attributes

CLOOKUP_MAP_VOID m_impl
bool m_freePointers

Friends

class CIterator

Detailed Description

template<class T>
class CLookupPtr< T >

CLookupPtr<T> Lookup from void pointer to pointer 'T*'


Constructor & Destructor Documentation

template<class T>
CLookupPtr< T >::CLookupPtr ( bool  freePointers  )  [inline]
template<class T>
CLookupPtr< T >::~CLookupPtr (  )  [inline]

References CLookupPtr< T >::CIterator::next().

Here is the call graph for this function:


Member Function Documentation

template<class T>
bool CLookupPtr< T >::exists ( void *  key  )  const [inline]
template<class T>
T* CLookupPtr< T >::get ( void *  key  )  const [inline]
template<class T>
T* CLookupPtr< T >::getOrCreate ( void *  key  )  [inline]
template<class T>
void CLookupPtr< T >::put ( void *  key,
T *  value 
) [inline]

Referenced by CLookupAny< T >::get().


Friends And Related Function Documentation

template<class T>
friend class CIterator [friend]

Member Data Documentation

template<class T>
bool CLookupPtr< T >::m_freePointers [private]
template<class T>
CLOOKUP_MAP_VOID CLookupPtr< T >::m_impl [private]

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