Reference

ACE_Name_Node(3)

This class supports "named memory regions" within ACE_Malloc.

NAME

ACE_Name_Node - This class supports "named memory regions" within ACE_Malloc.

SYNOPSIS

#include <ace/Malloc.h>
class ACE_Name_Node
{
  public:
    ACE_Name_Node (
        const char *name,
        char *name_ptr,
        char *pointer,
        ACE_Name_Node *head
        );
    ACE_Name_Node (const ACE_Name_Node &);
    ACE_Name_Node (void);
    ~ACE_Name_Node (void);
    const char *name (void) const;
    void name (const char *);
    ACE_CHAR_PTR name_;
    ACE_CHAR_PTR pointer_;
    ACE_NAME_NODE_PTR next_;
    ACE_NAME_NODE_PTR prev_;
    void dump (void) const;
  private:
    inline ACE_UNIMPLEMENTED_FUNC (
        void operator= (const ACE_Name_Node &)
        );
};

DESCRIPTION

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.

Initialization methods.

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 (void);

Constructor.

~ACE_Name_Node (void);

Constructor.

const char *name (void) const;

Return a pointer to the name of this node.

void name (const char *);

Assign a name;

ACE_CHAR_PTR name_;

Name of the Node.

ACE_CHAR_PTR pointer_;

Pointer to the contents.

ACE_NAME_NODE_PTR next_;

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

ACE_NAME_NODE_PTR prev_;

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

void dump (void) const;

Dump the state of the object.

AUTHOR

Doug Schmidt and Irfan Pyarali

LIBRARY

ace