#include <Malloc.h>
Collaboration diagram for ACE_Control_Block::ACE_Name_Node:
Public Member Functions | |
ACE_Name_Node (const char *name, char *name_ptr, char *pointer, ACE_Name_Node *head) | |
Constructor. | |
ACE_Name_Node (void) | |
Constructor. | |
~ACE_Name_Node (void) | |
Constructor. | |
const char * | name (void) const |
Return a pointer to the name of this node. | |
void | dump (void) const |
Dump the state of the object. | |
Static Public Member Functions | |
void | init_ptr (ACE_Name_Node **ptr, ACE_Name_Node *init, void *base_addr) |
Initialize a name node pointer. | |
Public Attributes | |
char * | name_ |
Name of the Node. | |
char * | pointer_ |
Pointer to the contents. | |
ACE_Name_Node * | next_ |
Pointer to the next node in the doubly-linked list. | |
ACE_Name_Node * | prev_ |
Pointer to the previous node in the doubly-linked list. | |
Private Member Functions | |
ACE_Name_Node (const ACE_Name_Node &) | |
Copy constructor. |
Internally, the named memory regions are stored as a doubly-linked list within the Memory_Pool
. This makes it easy to iterate over the items in the list in both FIFO and LIFO order.
Definition at line 302 of file Malloc.h.
|
Constructor.
Definition at line 110 of file Malloc.cpp. References ACE_TRACE, prev_, and ACE_OS::strcpy().
|
|
Constructor.
Definition at line 105 of file Malloc.cpp. References ACE_TRACE.
00106 { 00107 ACE_TRACE ("ACE_Control_Block::ACE_Name_Node::ACE_Name_Node"); 00108 } |
|
Constructor.
Definition at line 8 of file Malloc.inl.
00009 { 00010 } |
|
Copy constructor.
|
|
Dump the state of the object.
Definition at line 140 of file Malloc.cpp. References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_LIB_TEXT, ACE_TRACE, and LM_DEBUG. Referenced by ACE_Control_Block::dump().
00141 { 00142 #if defined (ACE_HAS_DUMP) 00143 ACE_TRACE ("ACE_Control_Block::ACE_Name_Node::dump"); 00144 00145 ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this)); 00146 ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("pointer = %@"), (const char *) this->pointer_)); 00147 ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\nnext_ = %@"), (ACE_Name_Node *) this->next_)); 00148 ACE_DEBUG ((LM_DEBUG, 00149 ACE_LIB_TEXT ("\nname_ = (%@, %s)"), 00150 (const char *) this->name_, 00151 (const char *) this->name_)); 00152 ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\n"))); 00153 ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP)); 00154 #endif /* ACE_HAS_DUMP */ 00155 } |
|
Initialize a name node pointer.
Definition at line 21 of file Malloc.inl.
00022 { 00023 *ptr = init; 00024 } |
|
Return a pointer to the name of this node.
Definition at line 127 of file Malloc.cpp.
00128 { 00129 const char *c = this->name_; 00130 return c; 00131 } |
|
Name of the Node.
|
|
Pointer to the next node in the doubly-linked list.
Definition at line 333 of file Malloc.h. Referenced by ACE_Control_Block::dump(). |
|
Pointer to the contents.
|
|
Pointer to the previous node in the doubly-linked list.
Definition at line 336 of file Malloc.h. Referenced by ACE_Name_Node(). |