zorba::SmartPtr< T > Class Template Reference

#include <zorba/smart_ptr.h>

Inheritance diagram for zorba::SmartPtr< T >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

T * get () const
bool isNull () const
 operator const T * () const
 operator T * ()
bool operator!= (T const *pp) const
bool operator!= (SmartPtr const &h) const
T & operator* () const
T * operator-> () const
bool operator< (const SmartPtr &h) const
template<class otherT >
SmartPtroperator= (SmartPtr< otherT > const &rhs)
SmartPtroperator= (SmartPtr const &rhs)
bool operator== (T const *pp) const
bool operator== (SmartPtr const &h) const
 SmartPtr (SmartPtr const &rhs)
 SmartPtr (T *realPtr=0)
 ~SmartPtr () throw ()

Protected Member Functions

template<class otherT >
SmartPtrassign (const SmartPtr< otherT > &rhs)
void init ()

Protected Attributes

T * p


Detailed Description

template<class T>
class zorba::SmartPtr< T >

Examples:

context.cpp, datamanager.cpp, errors.cpp, external_functions.cpp, sax2.cpp, serialization.cpp, and simple.cpp.

Definition at line 50 of file smart_ptr.h.


Constructor & Destructor Documentation

template<class T >
zorba::SmartPtr< T >::SmartPtr ( T *  realPtr = 0  )  [inline]

Definition at line 71 of file smart_ptr.h.

template<class T >
zorba::SmartPtr< T >::SmartPtr ( SmartPtr< T > const &  rhs  )  [inline]

Definition at line 75 of file smart_ptr.h.

template<class T >
zorba::SmartPtr< T >::~SmartPtr (  )  throw () [inline]

Definition at line 79 of file smart_ptr.h.


Member Function Documentation

template<class T >
template<class otherT >
SmartPtr& zorba::SmartPtr< T >::assign ( const SmartPtr< otherT > &  rhs  )  [inline, protected]

Definition at line 60 of file smart_ptr.h.

Referenced by zorba::SmartPtr< zorba::TypeIdentifier >::operator=().

template<class T >
T* zorba::SmartPtr< T >::get (  )  const [inline]

Definition at line 87 of file smart_ptr.h.

Referenced by zorba::SmartPtr< zorba::TypeIdentifier >::assign().

template<class T >
void zorba::SmartPtr< T >::init (  )  [inline, protected]

template<class T >
bool zorba::SmartPtr< T >::isNull (  )  const [inline]

Definition at line 85 of file smart_ptr.h.

template<class T >
zorba::SmartPtr< T >::operator const T * (  )  const [inline]

Definition at line 90 of file smart_ptr.h.

template<class T >
zorba::SmartPtr< T >::operator T * (  )  [inline]

Definition at line 89 of file smart_ptr.h.

template<class T >
bool zorba::SmartPtr< T >::operator!= ( T const *  pp  )  const [inline]

Definition at line 98 of file smart_ptr.h.

template<class T >
bool zorba::SmartPtr< T >::operator!= ( SmartPtr< T > const &  h  )  const [inline]

Definition at line 96 of file smart_ptr.h.

template<class T >
T& zorba::SmartPtr< T >::operator* (  )  const [inline]

Definition at line 93 of file smart_ptr.h.

template<class T >
T* zorba::SmartPtr< T >::operator-> (  )  const [inline]

Definition at line 92 of file smart_ptr.h.

template<class T >
bool zorba::SmartPtr< T >::operator< ( const SmartPtr< T > &  h  )  const [inline]

Definition at line 99 of file smart_ptr.h.

template<class T >
template<class otherT >
SmartPtr& zorba::SmartPtr< T >::operator= ( SmartPtr< otherT > const &  rhs  )  [inline]

Definition at line 107 of file smart_ptr.h.

template<class T >
SmartPtr& zorba::SmartPtr< T >::operator= ( SmartPtr< T > const &  rhs  )  [inline]

Definition at line 103 of file smart_ptr.h.

template<class T >
bool zorba::SmartPtr< T >::operator== ( T const *  pp  )  const [inline]

Definition at line 97 of file smart_ptr.h.

template<class T >
bool zorba::SmartPtr< T >::operator== ( SmartPtr< T > const &  h  )  const [inline]

Definition at line 95 of file smart_ptr.h.


Member Data Documentation

template<class T >
T* zorba::SmartPtr< T >::p [protected]


The documentation for this class was generated from the following file: