ACE 7.0.7
Public Member Functions | List of all members
ACE_Free_List< T > Class Template Referenceabstract

Implements a free list. More...

#include <Free_List.h>

Inheritance diagram for ACE_Free_List< T >:
Inheritance graph
[legend]

Public Member Functions

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

Detailed Description

template<class T>
class ACE_Free_List< T >

Implements a free list.

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

Constructor & Destructor Documentation

◆ ~ACE_Free_List()

template<class T >
virtual ACE_Free_List< T >::~ACE_Free_List ( )
virtualdefault

Destructor - removes all the elements from the free_list.

Member Function Documentation

◆ add()

template<class T >
virtual void ACE_Free_List< T >::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< T, ACE_LOCK >.

◆ remove()

template<class T >
virtual T * ACE_Free_List< T >::remove ( )
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< T, ACE_LOCK >.

◆ resize()

template<class T >
virtual void ACE_Free_List< T >::resize ( size_t  newsize)
pure virtual

Resizes the free list to newsize.

Implemented in ACE_Locked_Free_List< T, ACE_LOCK >.

◆ size()

template<class T >
virtual size_t ACE_Free_List< T >::size ( )
pure virtual

Returns the current size of the free list.

Implemented in ACE_Locked_Free_List< T, ACE_LOCK >.


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