UCommon
|
Linked allocator helper for linked_allocator template. More...
#include <containers.h>
Public Member Functions | |
operator bool () const | |
Test if there is still objects in the free list. More... | |
bool | operator! () const |
Test if the free list is empty. More... | |
Protected Member Functions | |
LinkedObject * | get (void) |
LinkedObject * | get (timeout_t timeout) |
void | release (LinkedObject *node) |
Protected Attributes | |
LinkedObject * | freelist |
Linked allocator helper for linked_allocator template.
This is used to alloc an array of typed objects tied to a free list in a single operation.
Definition at line 61 of file containers.h.
ucommon::LinkedAllocator::operator bool | ( | ) | const |
Test if there is still objects in the free list.
bool ucommon::LinkedAllocator::operator! | ( | ) | const |
Test if the free list is empty.