### IMngElemPointer

  Use objects of the IMngPointer class as managed element pointers for collections. Managed element pointers route the operations on the pointers to the referenced elements, and keep a reference count for each referenced element. When the last managed pointer to the element is destructed, the element is automatically deleted.

### IMngElemPointer - Member Functions and Data by Group

### Constructors & Destructor

Construct and destruct a managed elemented pointer object.

IMngElemPointer
  Constructs a pointer object of the indicated type from a given C++ pointer. The reference count of the referenced element is set to 1.

  Overload 1

      public:
      IMngElemPointer()

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

  Overload 2

      public:
      IMngElemPointer(Element*)

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

  Overload 3

      public:
      IMngElemPointer(Element*, IExplicitInit)

  Constructs a pointer object of the indicated type from a given C++ pointer. The reference count of the referenced element is set to 1.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

  Overload 4

      public:
      IMngElemPointer(Element const&)

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### Operators

Use these operators to access the element being managed by this object.

operator *

      public:
      Element& operator *() const

  Returns a reference to the object to which the pointer refers.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

operator ->

      public:
      Element* operator ->() const

  Returns a C pointer to the object to which the pointer refers.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

operator Element *

      public:
      operator Element *() const

  Implicitly converts this pointer to a C++ pointer.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### IMngElemPointer - Inherited Member Functions and Data

#### Inherited Public Functions

  IMngPointer

  -     ~IMngPointer()

  -     IMngPointer(Element*, IExplicitInit)

  -     IMngPointer()

  -     IMngPointer(IMngPointer < Element > const&)

  -     IMngPointer < Element >&
          operator =( IMngPointer < Element > const& )

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None