AbstractObjectGenerator Class Reference

An interface that must be implemented by all ObjectPool classes. More...

#include <ObjectPool.h>

Inheritance diagram for AbstractObjectGenerator:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 AbstractObjectGenerator ()
 Default ctor.
virtual ~AbstractObjectGenerator ()
 Virtual dtor to keep C++ honest.
virtual void * ObtainObjectGeneric ()=0
 Should be implemented to pass through to ObtainObject().

Detailed Description

An interface that must be implemented by all ObjectPool classes.

Used to support polymorphism in pool management.

Definition at line 23 of file ObjectPool.h.


Member Function Documentation

virtual void* AbstractObjectGenerator::ObtainObjectGeneric (  )  [pure virtual]

Should be implemented to pass through to ObtainObject().

Useful for handling different types of ObjectPool interchangably. Note that the caller is responsible for deleting or recycling the returned object!

Implemented in ObjectPool< Object >.


The documentation for this class was generated from the following file:
Generated on Thu Jun 5 17:47:57 2008 for MUSCLE by  doxygen 1.5.1