ACE_Cached_Mem_Pool_Node< T > Class Template ReferenceACE_Cached_Mem_Pool_Node keeps unused memory within a free list. More...
Detailed Descriptiontemplate<class T>
ACE_Cached_Mem_Pool_Node keeps unused memory within a free list.
|
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE T * ACE_Cached_Mem_Pool_Node< T >::addr | ( | void | ) | [inline] |
Return the address of free memory.
ACE_INLINE ACE_Cached_Mem_Pool_Node< T > * ACE_Cached_Mem_Pool_Node< T >::get_next | ( | void | ) | [inline] |
Get the next ACE_Cached_Mem_Pool_Node in a list.
ACE_INLINE void ACE_Cached_Mem_Pool_Node< T >::set_next | ( | ACE_Cached_Mem_Pool_Node< T > * | ptr | ) | [inline] |
Set the next ACE_Cached_Mem_Pool_Node.
ACE_Cached_Mem_Pool_Node<T>* ACE_Cached_Mem_Pool_Node< T >::next_ [private] |
Since memory is not used when placed in a free list, we can use it to maintain the structure of free list. I was using union to hide the fact of overlapping memory usage. However, that cause problem on MSVC. So, I now turn back to hack this with casting.