OWBI1::AutoPtr< X > Class Template Reference

#include <OWBI1_AutoPtr.hpp>

Collaboration diagram for OWBI1::AutoPtr< X >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef X element_type

Public Member Functions

 AutoPtr (X *p=0)
 Construct a new AutoPtr.
AutoPtroperator= (X *p)
 ~AutoPtr ()
X & operator * () const
X * operator-> () const
X * get () const
X * release ()
void reset (X *p=0)

Private Member Functions

 AutoPtr (const AutoPtr &a)
AutoPtroperator= (const AutoPtr &a)

Private Attributes

X * _ptr

Detailed Description

template<class X>
class OWBI1::AutoPtr< X >

Definition at line 44 of file OWBI1_AutoPtr.hpp.


Member Typedef Documentation

template<class X>
typedef X OWBI1::AutoPtr< X >::element_type
 

Definition at line 54 of file OWBI1_AutoPtr.hpp.


Constructor & Destructor Documentation

template<class X>
OWBI1::AutoPtr< X >::AutoPtr const AutoPtr< X > &  a  )  [private]
 

template<class X>
OWBI1::AutoPtr< X >::AutoPtr X *  p = 0  )  [inline, explicit]
 

Construct a new AutoPtr.

Parameters:
p pointer to the object

Definition at line 70 of file OWBI1_AutoPtr.hpp.

template<class X>
OWBI1::AutoPtr< X >::~AutoPtr  )  [inline]
 

Definition at line 84 of file OWBI1_AutoPtr.hpp.

References OWBI1::AutoPtr< X >::_ptr.


Member Function Documentation

template<class X>
X * OWBI1::AutoPtr< X >::get  )  const [inline]
 

Definition at line 97 of file OWBI1_AutoPtr.hpp.

References OWBI1::AutoPtr< X >::_ptr.

template<class X>
X & OWBI1::AutoPtr< X >::operator *  )  const [inline]
 

Definition at line 91 of file OWBI1_AutoPtr.hpp.

References OWBI1::AutoPtr< X >::_ptr.

template<class X>
X * OWBI1::AutoPtr< X >::operator->  )  const [inline]
 

Definition at line 94 of file OWBI1_AutoPtr.hpp.

References OWBI1::AutoPtr< X >::_ptr.

template<class X>
AutoPtr< X > & OWBI1::AutoPtr< X >::operator= X *  p  )  [inline]
 

Definition at line 73 of file OWBI1_AutoPtr.hpp.

References OWBI1::AutoPtr< X >::_ptr, and OWBI1::AutoPtr< X >::reset().

template<class X>
AutoPtr& OWBI1::AutoPtr< X >::operator= const AutoPtr< X > &  a  )  [private]
 

template<class X>
X * OWBI1::AutoPtr< X >::release  )  [inline]
 

Definition at line 100 of file OWBI1_AutoPtr.hpp.

References OWBI1::AutoPtr< X >::_ptr.

template<class X>
void OWBI1::AutoPtr< X >::reset X *  p = 0  )  [inline]
 

Definition at line 108 of file OWBI1_AutoPtr.hpp.

References OWBI1::AutoPtr< X >::_ptr.

Referenced by OWBI1::AutoPtr< X >::operator=().


Member Data Documentation

template<class X>
X* OWBI1::AutoPtr< X >::_ptr [private]
 

Definition at line 47 of file OWBI1_AutoPtr.hpp.

Referenced by OWBI1::AutoPtr< X >::get(), OWBI1::AutoPtr< X >::operator *(), OWBI1::AutoPtr< X >::operator->(), OWBI1::AutoPtr< X >::operator=(), OWBI1::AutoPtr< X >::release(), OWBI1::AutoPtr< X >::reset(), and OWBI1::AutoPtr< X >::~AutoPtr().


The documentation for this class was generated from the following file:
Generated on Thu Feb 9 09:18:23 2006 for openwbem by  doxygen 1.4.6