SH::ShPointer< T > Class Template Reference

A reference-counting smart pointer. More...

#include <ShRefCount.hpp>

Inheritance diagram for SH::ShPointer< T >:

Inheritance graph
[legend]
List of all members.

Public Types

typedef T *(ShPointer< T >::* unspecified_bool_type )() const

Public Member Functions

 ShPointer ()
 ShPointer (T *object)
 ShPointer (const ShPointer &other)
template<typename S>
 ShPointer (const ShPointer< S > &other)
 ~ShPointer ()
ShPointeroperator= (T *other)
ShPointeroperator= (const ShPointer &other)
template<typename S>
ShPointeroperator= (const ShPointer< S > &other)
bool operator== (const ShPointer &other) const
 Two references are equal if they point to the same object.
bool operator!= (const ShPointer &other) const
 Two references are equal if they point to the same object.
bool operator< (const ShPointer &other) const
 Actually compares the pointers.
T & operator * () const
T * operator-> () const
 operator unspecified_bool_type () const
 Return true iff this is not a reference to a null pointer.
int refCount () const
 Obtain the total amount of references to the referenced object.
T * object () const
 Obtain a pointer to the object we reference count.
void swap (ShPointer &other)
template<typename T>
 ShPointer (const ShPointer< T > &other)
template<typename T>
ShPointer< T > & operator= (const ShPointer< T > &other)

Detailed Description

template<typename T>
class SH::ShPointer< T >

A reference-counting smart pointer.

Definition at line 109 of file ShRefCount.hpp.


The documentation for this class was generated from the following files:
Generated on Wed Nov 9 15:36:03 2005 for Sh by  doxygen 1.4.5