#include <Malloc.h>
Collaboration diagram for ACE_Control_Block::ACE_Malloc_Header:
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_Header * | next_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] |
Definition at line 267 of file Malloc.h.
ACE_Control_Block::ACE_Malloc_Header::ACE_Malloc_Header | ( | void | ) |
void ACE_Control_Block::ACE_Malloc_Header::dump | ( | void | ) | const |
Dump the state of the object.
Definition at line 30 of file Malloc.cpp.
References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_TEXT, ACE_TRACE, and LM_DEBUG.
Referenced by ACE_Control_Block::dump().
00031 { 00032 #if defined (ACE_HAS_DUMP) 00033 ACE_TRACE ("ACE_Control_Block::ACE_Malloc_Header::dump"); 00034 00035 ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this)); 00036 ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nnext_block = %@"), (ACE_Malloc_Header *) this->next_block_)); 00037 ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nsize = %d\n"), this->size_)); 00038 ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP)); 00039 #endif /* ACE_HAS_DUMP */ 00040 }
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 14 of file Malloc.inl.
References ACE::init().
00015 { 00016 *ptr = init; 00017 }
char ACE_Control_Block::ACE_Malloc_Header::padding_[(ACE_MALLOC_PADDING_SIZE)?ACE_MALLOC_PADDING_SIZE:ACE_MALLOC_ALIGN] |