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.
Construct and destruct a managed elemented pointer object.
![]() |
public:
IMngElemPointer()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IMngElemPointer(Element*)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
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.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IMngElemPointer(Element const&)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these operators to access the element being managed by this object.
![]() |
public:
Element& operator *() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
Element* operator ->() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
operator Element *() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
~IMngPointer()
IMngPointer(Element*, IExplicitInit)
IMngPointer()
IMngPointer(IMngPointer < Element > const&)
IMngPointer < Element >& operator =( IMngPointer < Element > const& )