Bayonne2 / Common C++ 2 Framework
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Public Member Functions | Protected Member Functions | Private Attributes
Assoc Class Referenceabstract

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

#include <misc.h>

Inheritance diagram for Assoc:
Inheritance graph
[legend]
Collaboration diagram for Assoc:
Collaboration graph
[legend]

Data Structures

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
 

Private Attributes

entryentries [97]
 

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.

Definition at line 674 of file misc.h.

Constructor & Destructor Documentation

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

Member Function Documentation

void Assoc::clear ( void  )
protected
virtual void* Assoc::getMemory ( size_t  size)
protectedpure virtual

Implemented in ost::ScriptImage.

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

Field Documentation

entry* Assoc::entries[97]
private

Definition at line 683 of file misc.h.


The documentation for this class was generated from the following file: