#include <pointerlookup.h>
Inheritance diagram for PointerLookup< T, K >:
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. |