In file include/csengine/lppool.h:

class csLightPatchPool

This is an object pool which holds objects of type csLightPatch

Public Methods

csLightPatch* Alloc ()
Allocate a new object in the pool.
csLightPatchPool ()
Create an empty pool.
void Dump ()
Dump some information about this pool.
void Free (csLightPatch* lp)
Free an object and put it back in the pool
~csLightPatchPool ()
Destroy pool and all objects in the pool.

Private Fields

PoolObj* alloced
List of allocated lightpatches.
PoolObj* freed
List of previously allocated, but now unused lightpatches.

Documentation

This is an object pool which holds objects of type csLightPatch. You can ask new instances from this pool. If needed it will allocate one for you but ideally it can give you one which was allocated earlier.
PoolObj* alloced
List of allocated lightpatches.

PoolObj* freed
List of previously allocated, but now unused lightpatches.

csLightPatchPool()
Create an empty pool.

~csLightPatchPool()
Destroy pool and all objects in the pool.

csLightPatch* Alloc()
Allocate a new object in the pool.

void Free(csLightPatch* lp)
Free an object and put it back in the pool. Note that it is only legal to free objects which were allocated from the pool.

void Dump()
Dump some information about this pool.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de