2005/5/9

     
 

class ExtObjectPtr

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

ExtObjectPtr< T > Class Template Reference
[SmartPointers and Garbage Collection]

#include <ExtObject.h>

Inheritance diagram for ExtObjectPtr< T >:

acdk::lang::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

template<class T>
class ExtObjectPtr< T >

Wrapper to external class pointer.

I do not recommend to use this wrapper, because it doesn't interoperate with ACDK Collections (acdk::util). Better is to use ExtObjectVal


Public Member Functions

 ExtObjectPtr (T *ptr, bool owns=true)
 ~ExtObjectPtr ()
T * operator-> ()

Public Attributes

T * _extPtr
bool _owns


Constructor & Destructor Documentation

template<class T>
ExtObjectPtr< T >::ExtObjectPtr T *  ptr,
bool  owns = true
[inline]
 

template<class T>
ExtObjectPtr< T >::~ExtObjectPtr  )  [inline]
 


Member Function Documentation

template<class T>
T* ExtObjectPtr< T >::operator->  )  [inline]
 

Todo:
nullpointerexception


Member Data Documentation

template<class T>
T* ExtObjectPtr< T >::_extPtr
 

template<class T>
bool ExtObjectPtr< T >::_owns