GNU CommonC++
Classes | Public Member Functions | Protected Member Functions | List of all members
ost::Assoc Class Reference

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

#include <misc.h>

Classes

struct  entry

Public Member Functions

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

Protected Member Functions

 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.

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

Author
David Sugar dyfet.nosp@m.@ost.nosp@m.el.co.nosp@m.m associate names with pointers.

Constructor & Destructor Documentation

ost::Assoc::Assoc ( )
protected
virtual ost::Assoc::~Assoc ( )
protectedvirtual

Member Function Documentation

void ost::Assoc::clear ( void  )
protected
virtual void* ost::Assoc::getMemory ( size_t  size)
protectedpure 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: