|
UCommon
|
An array of reusable objects. More...
#include <vector.h>


Public Member Functions | |
| ~ArrayReuse () | |
| Destroy reusable private heap array. | |
Protected Member Functions | |
| ArrayReuse (size_t objsize, unsigned c) | |
| bool | avail (void) |
| ReusableObject * | get (timeout_t timeout) |
| ReusableObject * | get (void) |
| ReusableObject * | request (void) |
Protected Member Functions inherited from ucommon::ReusableAllocator | |
| ReusableObject * | next (ReusableObject *object) |
| Get next reusable object in the pool. | |
| void | release (ReusableObject *object) |
| Release resuable object. | |
| ReusableAllocator () | |
| Initialize reusable allocator through a conditional. | |
Additional Inherited Members | |
Protected Attributes inherited from ucommon::ReusableAllocator | |
| ReusableObject * | freelist |
| unsigned | waiting |
An array of reusable objects.
This class is used to support the array_use template. A pool of objects are created which can be allocated as needed. Deallocated objects are returned to the pool so they can be reallocated later. This is a private fixed size heap.
1.8.1.1