Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
zorba::SmartPtr< T > Class Template Reference

#include <zorba/smart_ptr.h>

Inheritance diagram for zorba::SmartPtr< T >:
Inheritance graph
[legend]

Public Member Functions

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

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 51 of file smart_ptr.h.

Constructor & Destructor Documentation

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

Definition at line 72 of file smart_ptr.h.

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

Definition at line 76 of file smart_ptr.h.

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

Definition at line 80 of file smart_ptr.h.

Member Function Documentation

template<class T>
template<class otherT >
SmartPtr& zorba::SmartPtr< T >::assign ( const SmartPtr< otherT > &  rhs)
inlineprotected

Definition at line 61 of file smart_ptr.h.

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

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

Definition at line 88 of file smart_ptr.h.

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

template<class T>
void zorba::SmartPtr< T >::init ( )
inlineprotected
template<class T>
bool zorba::SmartPtr< T >::isNull ( ) const
inline

Definition at line 86 of file smart_ptr.h.

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

Definition at line 91 of file smart_ptr.h.

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

Definition at line 90 of file smart_ptr.h.

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

Definition at line 97 of file smart_ptr.h.

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

Definition at line 99 of file smart_ptr.h.

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

Definition at line 94 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>
bool zorba::SmartPtr< T >::operator< ( const SmartPtr< T > &  h) const
inline

Definition at line 100 of file smart_ptr.h.

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

Definition at line 102 of file smart_ptr.h.

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

Definition at line 106 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>
bool zorba::SmartPtr< T >::operator== ( T const *  pp) const
inline

Definition at line 98 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:
blog comments powered by Disqus