Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csPolygonIntPool Class Reference

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

#include <polyint.h>

List of all members.

Public Methods

 csPolygonIntPool (csPolygonIntFactory *fact)
 Create an empty pool.

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

csPolygonIntAlloc ()
 Allocate a new object in the pool.

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

void Dump ()
 Dump some information about this pool.


Detailed Description

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

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 csPolygonIntPool::Free ( csPolygonInt * pi ) [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