Public Member Functions | Protected Member Functions | Protected Attributes
zorba::SmartPtr Class Reference

#include <zorba/smart_ptr.h>

Inheritance diagram for zorba::SmartPtr:
Inheritance graph
[legend]

List of all members.

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

Examples:

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


Constructor & Destructor Documentation

zorba::SmartPtr::SmartPtr ( T *  realPtr = 0) [inline]

Definition at line 72 of file smart_ptr.h.

zorba::SmartPtr::SmartPtr ( SmartPtr const &  rhs) [inline]

Definition at line 76 of file smart_ptr.h.

zorba::SmartPtr::~SmartPtr ( ) [inline]

Definition at line 80 of file smart_ptr.h.


Member Function Documentation

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

Definition at line 61 of file smart_ptr.h.

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

T* zorba::SmartPtr::get ( ) const [inline]

Definition at line 88 of file smart_ptr.h.

void zorba::SmartPtr::init ( ) [inline, protected]
bool zorba::SmartPtr::isNull ( ) const [inline]

Definition at line 86 of file smart_ptr.h.

zorba::SmartPtr::operator const T * ( ) const [inline]

Definition at line 91 of file smart_ptr.h.

zorba::SmartPtr::operator T * ( ) [inline]

Definition at line 90 of file smart_ptr.h.

bool zorba::SmartPtr::operator!= ( SmartPtr const &  h) const [inline]

Definition at line 97 of file smart_ptr.h.

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

Definition at line 99 of file smart_ptr.h.

T& zorba::SmartPtr::operator* ( ) const [inline]

Definition at line 94 of file smart_ptr.h.

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

Definition at line 93 of file smart_ptr.h.

bool zorba::SmartPtr::operator< ( const SmartPtr h) const [inline]

Definition at line 100 of file smart_ptr.h.

SmartPtr& zorba::SmartPtr::operator= ( SmartPtr const &  rhs) [inline]

Definition at line 102 of file smart_ptr.h.

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

Definition at line 106 of file smart_ptr.h.

bool zorba::SmartPtr::operator== ( SmartPtr const &  h) const [inline]

Definition at line 96 of file smart_ptr.h.

bool zorba::SmartPtr::operator== ( T const *  pp) const [inline]

Definition at line 98 of file smart_ptr.h.


Member Data Documentation

T* zorba::SmartPtr::p [protected]

The documentation for this class was generated from the following file:
blog comments powered by Disqus