Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

ost::Assoc Class Reference

This class is used to associate (object) pointers with named strings. associate names with pointers. More...

#include <misc.h>

List of all members.

Public Methods

void* getPointer (const char *id) const
void setPointer (const char *id, void *data)

Protected Methods

 Assoc ()
virtual ~Assoc ()
void clear (void)
virtual void* getMemory (size_t size)=0


Detailed Description

This class is used to associate (object) pointers with named strings. associate names with pointers.

A virtual is used to allocate memory which can be overriden in the derived class.

Author:
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

ost::Assoc::Assoc ( ) [protected]
 

ost::Assoc::~Assoc ( ) [protected, virtual]
 


Member Function Documentation

void ost::Assoc::clear ( void ) [protected]
 

void * ost::Assoc::getMemory ( size_t size ) [protected, pure virtual]
 

void * ost::Assoc::getPointer ( const char * id ) const
 

void ost::Assoc::setPointer ( const char * id,
void * data )
 


The documentation for this class was generated from the following file:
Generated at Sat May 12 18:59:39 2007 for GNU CommonC++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001