#include <DeepCopyPointerByClone.h>
Public Member Functions | |
DeepCopyPointerByClone () | |
DeepCopyPointerByClone (const DeepCopyPointerByClone &other) | |
DeepCopyPointerByClone (T *t) | |
operator bool () const | |
to allow test like " if (p) {...}" | |
T & | operator* () |
const T & | operator* () const |
const T * | operator-> () const |
T * | operator-> () |
DeepCopyPointerByClone & | operator= (const DeepCopyPointerByClone &other) |
bool | operator== (const T *otherP) const |
to allow test like " if (p == &someT) {...}" | |
~DeepCopyPointerByClone () | |
Private Attributes | |
T * | theData |
Same as DeepCopyPointer, except that it copies the object pointed to wsing the clone() virtual copy constructor.
Definition at line 11 of file DeepCopyPointerByClone.h.
DeepCopyPointerByClone< T >::~DeepCopyPointerByClone | ( | ) | [inline] |
Definition at line 14 of file DeepCopyPointerByClone.h.
{ delete theData;}
DeepCopyPointerByClone< T >::DeepCopyPointerByClone | ( | ) | [inline] |
Definition at line 15 of file DeepCopyPointerByClone.h.
: theData(0) {}
DeepCopyPointerByClone< T >::DeepCopyPointerByClone | ( | T * | t | ) | [inline] |
Definition at line 17 of file DeepCopyPointerByClone.h.
DeepCopyPointerByClone< T >::DeepCopyPointerByClone | ( | const DeepCopyPointerByClone< T > & | other | ) | [inline] |
Definition at line 19 of file DeepCopyPointerByClone.h.
DeepCopyPointerByClone< T >::operator bool | ( | ) | const [inline] |
to allow test like " if (p) {...}"
Definition at line 53 of file DeepCopyPointerByClone.h.
{ return theData != 0;}
T& DeepCopyPointerByClone< T >::operator* | ( | ) | [inline] |
Definition at line 46 of file DeepCopyPointerByClone.h.
{ return *theData;}
const T& DeepCopyPointerByClone< T >::operator* | ( | ) | const [inline] |
Definition at line 47 of file DeepCopyPointerByClone.h.
{ return *theData;}
const T* DeepCopyPointerByClone< T >::operator-> | ( | ) | const [inline] |
Definition at line 50 of file DeepCopyPointerByClone.h.
{ return theData;}
T* DeepCopyPointerByClone< T >::operator-> | ( | ) | [inline] |
Definition at line 49 of file DeepCopyPointerByClone.h.
{ return theData;}
DeepCopyPointerByClone& DeepCopyPointerByClone< T >::operator= | ( | const DeepCopyPointerByClone< T > & | other | ) | [inline] |
bool DeepCopyPointerByClone< T >::operator== | ( | const T * | otherP | ) | const [inline] |
to allow test like " if (p == &someT) {...}"
Definition at line 56 of file DeepCopyPointerByClone.h.
{ return theData == otherP;}
T* DeepCopyPointerByClone< T >::theData [private] |
Definition at line 59 of file DeepCopyPointerByClone.h.
Referenced by DeepCopyPointerByClone< FullConvolutionWithMaterial >::DeepCopyPointerByClone(), DeepCopyPointerByClone< FullConvolutionWithMaterial >::operator bool(), DeepCopyPointerByClone< FullConvolutionWithMaterial >::operator*(), DeepCopyPointerByClone< FullConvolutionWithMaterial >::operator->(), DeepCopyPointerByClone< FullConvolutionWithMaterial >::operator=(), DeepCopyPointerByClone< FullConvolutionWithMaterial >::operator==(), and DeepCopyPointerByClone< FullConvolutionWithMaterial >::~DeepCopyPointerByClone().