Go to the source code of this file.
|
| void * | InitObjectPool (int objectSize, int poolInitialSize) |
| |
| void * | GetObjectPoolIndex (void *pObjectPool, int *pOutIndex) |
| | returns the object pool, possibly resized. returns index of a free space in the pool through pOutIndex
|
| |
| void | FreeObjectPoolIndex (void *pObjectPool, int indexToFree) |
| |
| void * | FreeObjectPool (void *pObjectPool) |
| |
◆ NEW_OBJECT_POOL
| #define NEW_OBJECT_POOL |
( |
|
a, |
|
|
|
size |
|
) |
| ((a*)InitObjectPool(sizeof(a),size)) |
◆ OBJ_POOL_BOUNDS_CHECK
| #define OBJ_POOL_BOUNDS_CHECK |
( |
|
handle, |
|
|
|
rVal, |
|
|
|
pool |
|
) |
| |
Value:{\
if(!bBoundsValid){\
printf("function '%s' invalid bounds handle %i", __FUNCTION__, handle);\
return rVal;\
}\
}
#define ObjectPoolCapacity(pObjectPool)
Definition ObjectPool.h:29
◆ OBJ_POOL_BOUNDS_CHECK_NO_RETURN
| #define OBJ_POOL_BOUNDS_CHECK_NO_RETURN |
( |
|
handle, |
|
|
|
pool |
|
) |
| |
Value:{\
if(!bBoundsValid){\
printf("function '%s' invalid bounds handle %i", __FUNCTION__, handle);\
return;\
}\
}
◆ OBJECT_POOL
| #define OBJECT_POOL |
( |
|
a | ) |
a* |
◆ ObjectPoolCapacity
| #define ObjectPoolCapacity |
( |
|
pObjectPool | ) |
((((struct ObjectPoolData*)pObjectPool) - 1)->capacity) |
◆ ObjectPoolFreeArraySize
| #define ObjectPoolFreeArraySize |
( |
|
pObjectPool | ) |
(((struct ObjectPoolData*)pObjectPool) - 1)->freeObjectsArraySize |
◆ FreeObjectPool()
| void * FreeObjectPool |
( |
void * |
pObjectPool | ) |
|
◆ FreeObjectPoolIndex()
| void FreeObjectPoolIndex |
( |
void * |
pObjectPool, |
|
|
int |
indexToFree |
|
) |
| |
◆ GetObjectPoolIndex()
| void * GetObjectPoolIndex |
( |
void * |
pObjectPool, |
|
|
int * |
pOutIndex |
|
) |
| |
returns the object pool, possibly resized. returns index of a free space in the pool through pOutIndex
◆ InitObjectPool()
| void * InitObjectPool |
( |
int |
objectSize, |
|
|
int |
poolInitialSize |
|
) |
| |