---
name: "ACE_Name_Node"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_Name_Node"
---

# 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
