ACE  6.0.6
Public Member Functions
ACE_Free_List Class Reference

Implements a free list. More...

#include <Free_List.h>

List of all members.

Public Member Functions

virtual ~ACE_Free_List (void)
 Destructor - removes all the elements from the free_list.
virtual void add (T *element)=0
virtual T * remove (void)=0
virtual size_t size (void)=0
 Returns the current size of the free list.
virtual void resize (size_t newsize)=0
 Resizes the free list to newsize.

Detailed Description

Implements a free list.

This class maintains a free list of nodes of type T.


Constructor & Destructor Documentation

virtual ACE_Free_List::~ACE_Free_List ( void  ) [virtual]

Destructor - removes all the elements from the free_list.


Member Function Documentation

virtual void ACE_Free_List::add ( T *  element) [pure virtual]

Inserts an element onto the free list (if it isn't past the high water mark).

Implemented in ACE_Locked_Free_List.

virtual T* ACE_Free_List::remove ( void  ) [pure virtual]

Takes a element off the freelist and returns it. It creates <inc> new elements if the size is at or below the low water mark.

Implemented in ACE_Locked_Free_List.

virtual void ACE_Free_List::resize ( size_t  newsize) [pure virtual]

Resizes the free list to newsize.

Implemented in ACE_Locked_Free_List.

virtual size_t ACE_Free_List::size ( void  ) [pure virtual]

Returns the current size of the free list.

Implemented in ACE_Locked_Free_List.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines