CartoType API
Public Member Functions
CartoType::MPointerDictionary< Key, Value > Class Template Reference

#include <cartotype_base.h>

List of all members.

Public Member Functions

virtual ~MPointerDictionary ()
virtual bool Find (const Key &aKey, const Value *&aValue) const =0

Detailed Description

template<class Key, class Value>
class CartoType::MPointerDictionary< Key, Value >

A templated interface class defining dictionaries in which a key is used to access a pointer to a value.


Constructor & Destructor Documentation

template<class Key, class Value>
virtual CartoType::MPointerDictionary< Key, Value >::~MPointerDictionary ( ) [inline, virtual]

Although pointers to this class are not owned, a virtual destructor is provided for safety and to avoid compiler warnings.


Member Function Documentation

template<class Key, class Value>
virtual bool CartoType::MPointerDictionary< Key, Value >::Find ( const Key &  aKey,
const Value *&  aValue 
) const [pure virtual]

Return true if aKey exists, false if not. If aKey exists in the dictionary, set aValue to point to the value associated with aKey.

Implemented in CartoType::CTrie< T >, and CartoType::CTrie< MString >.


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