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

ShmAllocator::ObjectFactory Class Reference

#include <ShmAllocator.h>

List of all members.

Static Public Member Functions

template<typename T> T * getNewObject ()
template<typename T> void returnObject (T *obj)


Detailed Description

Generates new objects on the shared memory block.

Author:
Nir Shahaf
Version:
0.1


Member Function Documentation

template<typename T>
T* ShmAllocator::ObjectFactory::getNewObject  )  [static]
 

Returns a new objects of the requested type.

Parameters:
T Type of object.
Returns:
Pointer to the new object.

template<typename T>
void ShmAllocator::ObjectFactory::returnObject T *  obj  )  [static]
 

Destorys and frees an object.

Parameters:
T The object type.
obj The object.


The documentation for this class was generated from the following file:
Generated on Thu Jan 27 10:06:44 2005 for ShmAllocator by doxygen 1.3.6