Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

PointerLookup< T, K > Class Template Reference

#include <pointerlookup.h>

Inheritance diagram for PointerLookup< T, K >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class T, class K = string>
class PointerLookup< T, K >

Abstract, lookup-only base class for a PointerMap, i.e.

a map from strings (or other keys) to a pointer

Definition at line 18 of file pointerlookup.h.

Public Types

typedef K key_type
 Key type of our local map.

typedef T * data_type
 Data element type of our local map.


Public Methods

virtual T * getptr (const key_type &k)=0
 Similar to map's [], but if the key is not present just returns a null pointer without adding a new entry.

virtual const T * getptr (const key_type &k) const=0
 Const version of getptr.


The documentation for this class was generated from the following file:
Generated on Mon Jan 20 02:37:10 2003 for RF-LISSOM by doxygen1.3-rc2