Public Member Functions | Static Public Member Functions | Public Attributes

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 Member Functions

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

Static Public Member Functions

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

Public Attributes

ACE_Malloc_Headernext_block_
 Points to next block if on free list.
size_t size_
 Size of this header control block.
char padding_ [(ACE_MALLOC_PADDING_SIZE)?ACE_MALLOC_PADDING_SIZE:ACE_MALLOC_ALIGN]

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


Constructor & Destructor Documentation

ACE_Control_Block::ACE_Malloc_Header::ACE_Malloc_Header ( void   ) 

Definition at line 132 of file Malloc.cpp.

  : next_block_ (0),
    size_ (0)
{
}


Member Function Documentation

void ACE_Control_Block::ACE_Malloc_Header::dump ( void   )  const

Dump the state of the object.

Definition at line 30 of file Malloc.cpp.

{
#if defined (ACE_HAS_DUMP)
  ACE_TRACE ("ACE_Control_Block::ACE_Malloc_Header::dump");

  ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
  ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nnext_block = %@"), (ACE_Malloc_Header *) this->next_block_));
  ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nsize = %d\n"), this->size_));
  ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
#endif /* ACE_HAS_DUMP */
}

void ACE_Control_Block::ACE_Malloc_Header::init_ptr ( ACE_Malloc_Header **  ptr,
ACE_Malloc_Header init,
void *  base_addr 
) [inline, static]

Initialize a malloc header pointer.

Definition at line 14 of file Malloc.inl.

{
  *ptr = init;
}


Member Data Documentation

Points to next block if on free list.

Definition at line 273 of file Malloc.h.

char ACE_Control_Block::ACE_Malloc_Header::padding_[(ACE_MALLOC_PADDING_SIZE)?ACE_MALLOC_PADDING_SIZE:ACE_MALLOC_ALIGN]

Definition at line 286 of file Malloc.h.

Size of this header control block.

Definition at line 281 of file Malloc.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines