csPoly2DPool Class Reference
[Geometry utilities]
This is an object pool which holds objects of type csPolygon2D.
More...
#include <polypool.h>
Public Methods | |
csPoly2DPool (csPoly2DFactory *fact) | |
Create an empty pool. | |
~csPoly2DPool () | |
Destroy pool and all objects in the pool. | |
csPoly2D * | Alloc () |
Allocate a new object in the pool. | |
void | Free (csPoly2D *pol) |
Free an object and put it back in the pool. |
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.
Definition at line 36 of file polypool.h.
Constructor & Destructor Documentation
|
Create an empty pool.
Definition at line 54 of file polypool.h. |
|
Destroy pool and all objects in the pool.
Definition at line 58 of file polypool.h. |
Member Function Documentation
|
Allocate a new object in the pool.
Definition at line 80 of file polypool.h. References csPoly2DFactory::Create(). |
|
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. Definition at line 103 of file polypool.h. |
The documentation for this class was generated from the following file:
- csgeom/polypool.h
Generated for Crystal Space by doxygen 1.2.18