#include <polyint.h>
Public Methods | |
| csPolygonIntPool (csPolygonIntFactory *fact) | |
| Create an empty pool. | |
| ~csPolygonIntPool () | |
| Destroy pool and all objects in the pool. | |
| csPolygonInt* | Alloc () |
| 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. | |
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.
|
|
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. |