Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csPoly2DPool Class Reference

This is an object pool which holds objects of type csPolygon2D. More...

#include <polypool.h>

List of all members.

Public Methods

 csPoly2DPool (csPoly2DFactory *fact)
 Create an empty pool.

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

csPoly2DAlloc ()
 Allocate a new object in the pool.

void Free (csPoly2D *pol)
 Free an object and put it back in the pool. More...


Detailed Description

This is an object pool which holds objects of type csPolygon2D.

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.


Member Function Documentation

void csPoly2DPool::Free ( csPoly2D * pol ) [inline]
 

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.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000