Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_PI_Control_Block::ACE_Malloc_Header Class Reference

This is the control block header. It's used by <ACE_Malloc> to keep track of each chunk of data when it's in the free list or in use. More...

#include <PI_Malloc.h>

Collaboration diagram for ACE_PI_Control_Block::ACE_Malloc_Header:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Malloc_Header (void)
void dump (void) const
 Dump the state of the object. More...


Static Public Methods

void init_ptr (MALLOC_HEADER_PTR *ptr, ACE_Malloc_Header *init, void *base_addr)
 Initialize a malloc header pointer. More...


Public Attributes

MALLOC_HEADER_PTR next_block_
 Points to next block if on free list. More...

size_t size_
 Size of this header control block. More...

long padding_ [ACE_PI_MALLOC_PADDING_SIZE< 1?1:ACE_PI_MALLOC_PADDING_SIZE]

Private Methods

void operator= (const ACE_Malloc_Header &)

Detailed Description

This is the control block header. It's used by <ACE_Malloc> to keep track of each chunk of data when it's in the free list or in use.

Definition at line 59 of file PI_Malloc.h.


Constructor & Destructor Documentation

ACE_PI_Control_Block::ACE_Malloc_Header::ACE_Malloc_Header void   
 

Definition at line 132 of file PI_Malloc.cpp.

Referenced by dump.

00133   : next_block_ (0),
00134     size_ (0)
00135 {
00136 }


Member Function Documentation

void ACE_PI_Control_Block::ACE_Malloc_Header::dump void    const
 

Dump the state of the object.

Definition at line 23 of file PI_Malloc.cpp.

References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_LIB_TEXT, ACE_Malloc_Header, ACE_TRACE, and LM_DEBUG.

Referenced by ACE_PI_Control_Block::dump.

00024 {
00025   ACE_TRACE ("ACE_PI_Control_Block::ACE_Malloc_Header::dump");
00026 
00027   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00028   ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\nnext_block = %x"), (ACE_Malloc_Header *) this->next_block_));
00029   ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\nsize = %d\n"), this->size_));
00030   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00031 }

void ACE_PI_Control_Block::ACE_Malloc_Header::init_ptr MALLOC_HEADER_PTR   ptr,
ACE_Malloc_Header *    init,
void *    base_addr
[static]
 

Initialize a malloc header pointer.

void ACE_PI_Control_Block::ACE_Malloc_Header::operator= const ACE_Malloc_Header &    [private]
 


Member Data Documentation

MALLOC_HEADER_PTR ACE_PI_Control_Block::ACE_Malloc_Header::next_block_
 

Points to next block if on free list.

Definition at line 65 of file PI_Malloc.h.

Referenced by ACE_PI_Control_Block::dump.

long ACE_PI_Control_Block::ACE_Malloc_Header::padding_[ACE_PI_MALLOC_PADDING_SIZE < 1 ? 1 : ACE_PI_MALLOC_PADDING_SIZE]
 

Definition at line 83 of file PI_Malloc.h.

size_t ACE_PI_Control_Block::ACE_Malloc_Header::size_
 

Size of this header control block.

Definition at line 73 of file PI_Malloc.h.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:52:02 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002