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

HasTable< BaseType, TableType > Class Template Reference

#include <pointermap.h>

Inheritance diagram for HasTable< BaseType, TableType >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class BaseType, class TableType = PointerMap<BaseType>>
class HasTable< BaseType, TableType >

Mixin class for something that owns a simple publicly-accessible table of named items.

Definition at line 140 of file pointermap.h.

Public Types

typedef TableType Table
typedef Table::key_type key_type

Public Methods

void table_set (const key_type &name, BaseType *i)
 Add the given item to the table of available items, overwriting any old one with that name.

const Table & table () const


Member Function Documentation

template<class BaseType, class TableType = PointerMap<BaseType>>
void HasTable< BaseType, TableType >::table_set const key_type &    name,
BaseType *    i
[inline]
 

Add the given item to the table of available items, overwriting any old one with that name.

The pointer should be allocated using new, since it will be deleted when this object is destroyed (depending on the underlying TableType.)

Definition at line 149 of file pointermap.h.


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