In file include/csgeom/polypool.h:

## class csPoly2DPool

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

### Public Methods

csPoly2D* Alloc()
  Allocate a new object in the pool.
csPoly2DPool(csPoly2DFactory* fact)
  Create an empty pool.
void Free(csPoly2D* pol)
  Free an object and put it back in the pool
~csPoly2DPool()
  Destroy pool and all objects in the pool.

### Private Fields

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

## Documentation

> 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.

`PoolObj* alloced`
  List of allocated polygons.

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

`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. Note that it is only legal to free objects which were allocated from the 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