IAutoElemPointer

Use objects of the IAutoElemPointer class as automatic element pointers for collections. Automatic element pointers route the operations on the pointers to the referenced elements, and delete the elements they reference when the pointers are destructed. No reference count is kept.


IAutoElemPointer - Member Functions and Data by Group

Constructors & Destructor

Construct and destruct auto element pointer objects


[view class]
IAutoElemPointer
Construct an auto element pointer object.


Overload 1
public:
IAutoElemPointer(Element*, IExplicitInit)
Constructs a pointer of the indicated type from a given C++ pointer.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 2
public:
IAutoElemPointer()
Constructs a pointer of the indicated type and initializes it with NULL.

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


IAutoElemPointer - Inherited Member Functions and Data

Inherited Public Functions

IAutoPointer

Inherited Public Data

Inherited Protected Functions

Inherited Protected Data