#include <vector.h>
Inheritance diagram for ucommon::ArrayReuse:
Public Member Functions | |
~ArrayReuse () | |
Destroy reusable private heap array. | |
Protected Member Functions | |
ArrayReuse (size_t objsize, unsigned c, void *memory) | |
ArrayReuse (size_t objsize, unsigned c) | |
bool | avail (void) |
ReusableObject * | get (void) |
ReusableObject * | get (timeout_t timeout) |
ReusableObject * | request (void) |
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.
Definition at line 45 of file vector.h.