ucc::LinkedAllocator Class Reference

Linked allocator helper for linked_allocator template. More...

#include <containers.h>

Inheritance diagram for ucc::LinkedAllocator:

Inheritance graph
[legend]
Collaboration diagram for ucc::LinkedAllocator:

Collaboration graph
[legend]

Public Member Functions

 operator bool ()
 Test if there is still objects in the free list.
bool operator! ()
 Test if the free list is empty.

Protected Member Functions

LinkedObjectget (timeout_t timeout)
LinkedObjectget (void)
void release (LinkedObject *node)

Protected Attributes

LinkedObjectfreelist

Detailed Description

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.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 60 of file containers.h.


Member Function Documentation

ucc::LinkedAllocator::operator bool (  ) 

Test if there is still objects in the free list.

Returns:
true if there are objects.

bool ucc::LinkedAllocator::operator! (  ) 

Test if the free list is empty.

Returns:
true if the free list is empty.


The documentation for this class was generated from the following file:

Generated on Tue May 17 12:15:31 2011 for UCommon by  doxygen 1.5.6