LDK::SmartPointerBase< T > Class Template Reference
[Garbage CollectionGarbage Collection]

Functionality common to all smart pointers. More...

#include <LDK/SmartPointers.h>

Inheritance diagram for LDK::SmartPointerBase< T >:

Inheritance graph
[legend]

Public Types

typedef T Type
typedef T * PointerType
typedef T & ReferenceType

Public Member Functions

 operator Tester * () const
PointerType operator-> ()
ReferenceType operator * ()
PointerType operator-> () const
ReferenceType operator * () const
bool operator! () const

Static Public Member Functions

static PointerType pointer (const SmartPointerBase &rhs)

Protected Member Functions

 SmartPointerBase (PointerType p=NULL)

Protected Attributes

PointerType mPtr

Friends

bool operator== (const SmartPointerBase &lhs, const SmartPointerBase &rhs)
template<typename U>
bool operator== (const SmartPointerBase &lhs, const U *rhs)
template<typename U>
bool operator== (const U *lhs, const SmartPointerBase &rhs)
bool operator!= (const SmartPointerBase &lhs, const SmartPointerBase &rhs)
template<typename U>
bool operator!= (const SmartPointerBase &lhs, const U *rhs)
template<typename U>
bool operator!= (const U *lhs, const SmartPointerBase &rhs)

Data Structures

class  Tester

Detailed Description

template<class T>
class LDK::SmartPointerBase< T >

Somewhat influenced by the Loki library smart pointer and chapter 7 of "Modern C++ Design: Generic Programming and Design Patterns Applied" by Andrei Alexandrescu.

Definition at line 54 of file SmartPointers.h.


The documentation for this class was generated from the following file:
Generated on Fri Aug 17 18:32:27 2007 for LDK by  doxygen 1.5.1