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.


[view class]
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.


[view class]
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


[view class]
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


[view class]
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

Inherited Public Data

Inherited Protected Functions

Inherited Protected Data