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

#include <cartotype_base.h>

List of all members.

Public Member Functions

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

Detailed Description

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

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


Constructor & Destructor Documentation

template<class Key, class Value>
virtual CartoType::MDictionary< Key, Value >::~MDictionary ( ) [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::MDictionary< Key, Value >::Find ( const Key &  aKey,
Value &  aValue 
) const [pure virtual]

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

Implemented in CartoType::CDictionary< T >, CartoType::CDictionary< int32 >, and CartoType::CStringTypeDictionary.


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