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

ACE_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 <Malloc.h>

Collaboration diagram for ACE_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 (ACE_Malloc_Header **ptr, ACE_Malloc_Header *init, void *base_addr)
 Initialize a malloc header pointer. More...


Public Attributes

ACE_Malloc_Header * next_block_
 Points to next block if on free list. More...

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

long padding_ [ACE_MALLOC_PADDING_SIZE< 1?1:ACE_MALLOC_PADDING_SIZE]

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 269 of file Malloc.h.


Constructor & Destructor Documentation

ACE_Control_Block::ACE_Malloc_Header::ACE_Malloc_Header void   
 

Definition at line 140 of file Malloc.cpp.

Referenced by dump.

00141   : next_block_ (0),
00142     size_ (0)
00143 {
00144 }


Member Function Documentation

void ACE_Control_Block::ACE_Malloc_Header::dump void    const
 

Dump the state of the object.

Definition at line 27 of file 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_Control_Block::dump.

00028 {
00029   ACE_TRACE ("ACE_Control_Block::ACE_Malloc_Header::dump");
00030 
00031   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00032   ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\nnext_block = %@"), (ACE_Malloc_Header *) this->next_block_));
00033   ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\nsize = %d\n"), this->size_));
00034   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00035 }

ACE_INLINE void ACE_Control_Block::ACE_Malloc_Header::init_ptr ACE_Malloc_Header **    ptr,
ACE_Malloc_Header *    init,
void *    base_addr
[static]
 

Initialize a malloc header pointer.

Definition at line 11 of file Malloc.i.

00012 {
00013   *ptr = init;
00014 }


Member Data Documentation

ACE_Malloc_Header* ACE_Control_Block::ACE_Malloc_Header::next_block_
 

Points to next block if on free list.

Definition at line 275 of file Malloc.h.

Referenced by ACE_Control_Block::dump.

long ACE_Control_Block::ACE_Malloc_Header::padding_[ACE_MALLOC_PADDING_SIZE < 1 ? 1 : ACE_MALLOC_PADDING_SIZE]
 

Definition at line 293 of file Malloc.h.

size_t ACE_Control_Block::ACE_Malloc_Header::size_
 

Size of this header control block.

Definition at line 283 of file Malloc.h.


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