NAME

ACE_Cached_Mem_Pool_Node - ACE_Cached_Mem_Pool_Node keeps unused memory within a free list.

SYNOPSIS

#include <ace/Malloc_T.h>

template<class T> class ACE_Cached_Mem_Pool_Node { public: T *addr (void); ACE_Cached_Mem_Pool_Node<T> *get_next (void); void set_next (ACE_Cached_Mem_Pool_Node<T> *ptr); private: ACE_Cached_Mem_Pool_Node<T> *next_; };

DESCRIPTION

The length of a piece of unused memory must be greater than sizeof (void*). This makes sense because we'll waste even more memory if we keep them in a separate data structure. This class should really be placed within the next class ACE_Cached_Allocator. But this can't be done due to C++ compiler portability problems.

PUBLIC MEMBERS

T *addr (void);

ACE_Cached_Mem_Pool_Node<T> *get_next (void);

void set_next (ACE_Cached_Mem_Pool_Node<T> *ptr);

PRIVATE MEMBERS

ACE_Cached_Mem_Pool_Node<T> *next_;

AUTHOR

Doug Schmidt and Irfan Pyarali

LIBRARY

ace