CartoType API
Classes | Public Member Functions
CartoType::CDictionary< T > Class Template Reference

#include <cartotype_trie.h>

Inheritance diagram for CartoType::CDictionary< T >:
CartoType::MDictionary< MString, T >

List of all members.

Classes

class  CItem

Public Member Functions

TResult Set (const MString &aKey, const T &aValue)
TResult Delete (const MString &aKey)
bool Find (const MString &aKey, T &aValue) const
const CPointerArray< CItem > & Data () const

Detailed Description

template<class T>
class CartoType::CDictionary< T >

A general dictionary. Implemented very inefficiently using linear search: do not use for large dictionaries.


Member Function Documentation

template<class T>
bool CartoType::CDictionary< T >::Find ( const MString aKey,
T &  aValue 
) const [inline, virtual]

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

Implements CartoType::MDictionary< MString, T >.


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