KrisLibrary  1.0.0
Public Member Functions | Protected Attributes | List of all members
SmartPointer< T > Class Template Reference

A smart pointer class. Performs automatic reference counting. More...

#include <SmartPointer.h>

Public Member Functions

 SmartPointer (T *ptr=0)
 
 SmartPointer (const SmartPointer< T > &other)
 
const SmartPointer< T > & operator= (const SmartPointer< T > &rhs)
 
bool isNull () const
 
 operator const T * () const
 
 operator T * ()
 
T * operator-> ()
 
const T * operator-> () const
 
T & operator* ()
 
const T & operator* () const
 
bool isNonUnique () const
 
int getRefCount () const
 

Protected Attributes

T * ptr
 
int * refCount
 

Detailed Description

template<class T>
class SmartPointer< T >

A smart pointer class. Performs automatic reference counting.


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