ucc::ReusableObject Class Reference

Reusable objects for forming private heaps. More...

#include <linked.h>

Inheritance diagram for ucc::ReusableObject:

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

Collaboration graph
[legend]

Public Member Functions

ReusableObjectgetNext (void)
 Get next effective reusable object when iterating.

Protected Member Functions

virtual void release (void)
 Release list, mark as no longer linked.

Friends

class ReusableAllocator

Detailed Description

Reusable objects for forming private heaps.

Reusable objects are linked objects that may be allocated in a private heap, and are returned to a free list when they are no longer needed so they can be reused without having to be re-allocated. The free list is the root of a linked object chain. This is used as a base class for those objects that will be managed through reusable heaps.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 142 of file linked.h.


Member Function Documentation

ReusableObject* ucc::ReusableObject::getNext ( void   )  [inline]

Get next effective reusable object when iterating.

Returns:
next reusable object in list.

Definition at line 154 of file linked.h.

virtual void ucc::ReusableObject::release ( void   )  [protected, virtual]

Release list, mark as no longer linked.

Inherited from base Object.

Reimplemented from ucc::LinkedObject.


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

Generated on Wed May 13 09:11:32 2009 for UCommon by  doxygen 1.5.8