CLookupAny< T > Class Template Reference
#include <clookup.h>
Classes | |
class | CIterator |
Public Member Functions | |
CLookupAny (T default_value) | |
const T | get (void *key) const |
void | put (void *key, T value) |
bool | exists (void *key) const |
Private Attributes | |
CLookupPtr< T > | m_lookup_ptr |
T | m_default_value |
Friends | |
class | CIterator |
Detailed Description
template<class T>
class CLookupAny< T >
CLookupAny<T> Lookup from void pointer to 'T' T must be a compact data structure that allows copying by the '=' operator
Constructor & Destructor Documentation
template<class T >
CLookupAny< T >::CLookupAny | ( | T | default_value | ) | [inline] |
Member Function Documentation
template<class T >
bool CLookupAny< T >::exists | ( | void * | key | ) | const [inline] |
template<class T >
const T CLookupAny< T >::get | ( | void * | key | ) | const [inline] |
template<class T >
void CLookupAny< T >::put | ( | void * | key, | |
T | value | |||
) | [inline] |
Friends And Related Function Documentation
template<class T >
friend class CIterator [friend] |
Member Data Documentation
template<class T >
T CLookupAny< T >::m_default_value [private] |
template<class T >
CLookupPtr<T> CLookupAny< T >::m_lookup_ptr [private] |
The documentation for this class was generated from the following file: