ACE 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
ACE_PI_Control_Block::ACE_Name_Node Class Reference

This class supports "named memory regions" within ACE_Malloc. More...

#include <PI_Malloc.h>

Collaboration diagram for ACE_PI_Control_Block::ACE_Name_Node:
Collaboration graph
[legend]

Public Member Functions

 ACE_Name_Node (const char *name, char *name_ptr, char *pointer, ACE_Name_Node *head)
 Constructor.
 
 ACE_Name_Node (const ACE_Name_Node &)
 Copy constructor.
 
 ACE_Name_Node ()
 Constructor.
 
 ~ACE_Name_Node ()
 Constructor.
 
const charname () const
 Return a pointer to the name of this node.
 
void name (const char *)
 Assign a name;.
 
void dump () const
 Dump the state of the object.
 

Static Public Member Functions

static void init_ptr (NAME_NODE_PTR *ptr, ACE_Name_Node *init, void *base_addr)
 Initialize a name node pointer.
 

Public Attributes

CHAR_PTR name_
 Name of the Node.
 
CHAR_PTR pointer_
 Pointer to the contents.
 
NAME_NODE_PTR next_
 Pointer to the next node in the doubly-linked list.
 
NAME_NODE_PTR prev_
 Pointer to the previous node in the doubly-linked list.
 

Private Member Functions

void operator= (const ACE_Name_Node &)
 

Detailed Description

This class supports "named memory regions" within ACE_Malloc.

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.

Constructor & Destructor Documentation

◆ ACE_Name_Node() [1/3]

ACE_PI_Control_Block::ACE_Name_Node::ACE_Name_Node ( const char * name,
char * name_ptr,
char * pointer,
ACE_Name_Node * head )

Constructor.

◆ ACE_Name_Node() [2/3]

ACE_PI_Control_Block::ACE_Name_Node::ACE_Name_Node ( const ACE_Name_Node & )

Copy constructor.

◆ ACE_Name_Node() [3/3]

ACE_PI_Control_Block::ACE_Name_Node::ACE_Name_Node ( )

Constructor.

◆ ~ACE_Name_Node()

ACE_PI_Control_Block::ACE_Name_Node::~ACE_Name_Node ( )
inline

Constructor.

Member Function Documentation

◆ dump()

void ACE_PI_Control_Block::ACE_Name_Node::dump ( ) const

Dump the state of the object.

◆ init_ptr()

void ACE_PI_Control_Block::ACE_Name_Node::init_ptr ( NAME_NODE_PTR * ptr,
ACE_Name_Node * init,
void * base_addr )
inlinestatic

Initialize a name node pointer.

◆ name() [1/2]

const char * ACE_PI_Control_Block::ACE_Name_Node::name ( ) const

Return a pointer to the name of this node.

◆ name() [2/2]

void ACE_PI_Control_Block::ACE_Name_Node::name ( const char * )

Assign a name;.

◆ operator=()

void ACE_PI_Control_Block::ACE_Name_Node::operator= ( const ACE_Name_Node & )
private

Member Data Documentation

◆ name_

CHAR_PTR ACE_PI_Control_Block::ACE_Name_Node::name_

Name of the Node.

◆ next_

NAME_NODE_PTR ACE_PI_Control_Block::ACE_Name_Node::next_

Pointer to the next node in the doubly-linked list.

◆ pointer_

CHAR_PTR ACE_PI_Control_Block::ACE_Name_Node::pointer_

Pointer to the contents.

◆ prev_

NAME_NODE_PTR ACE_PI_Control_Block::ACE_Name_Node::prev_

Pointer to the previous node in the doubly-linked list.


The documentation for this class was generated from the following files: