UCommon
Public Member Functions | Protected Member Functions | Friends
ucommon::ReusableObject Class Reference

Reusable objects for forming private heaps. More...

#include <linked.h>

Inheritance diagram for ucommon::ReusableObject:
Inheritance graph
[legend]
Collaboration diagram for ucommon::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>

Member Function Documentation

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

Get next effective reusable object when iterating.

Returns:
next reusable object in list.

Definition at line 164 of file linked.h.

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

Release list, mark as no longer linked.

Inherited from base Object.

Reimplemented from ucommon::LinkedObject.


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