#include <DeepCopyPointer.h>
Public Member Functions | |
DeepCopyPointer () | |
DeepCopyPointer (T *t) | |
DeepCopyPointer (const DeepCopyPointer &other) | |
operator bool () const | |
to allow test like " if (p) {...}" More... | |
T & | operator* () |
const T & | operator* () const |
T * | operator-> () |
const T * | operator-> () const |
DeepCopyPointer & | operator= (const DeepCopyPointer &other) |
bool | operator== (const T *otherP) const |
to allow test like " if (p == &someT) {...}" More... | |
T * | replaceInplace () |
void | replaceWith (T *otherP) |
~DeepCopyPointer () | |
Private Attributes | |
T * | theData |
A "smart" pointer that implements deep copy and ownership. In other words, when the pointer is copied it copies the object it points to using "new". It also deletes the object it points to when it is deleted. Very useful for use as private data member of a class: it handles the copy construction, assignment, and destruction.
Definition at line 16 of file DeepCopyPointer.h.
|
inline |
Definition at line 19 of file DeepCopyPointer.h.
|
inline |
Definition at line 21 of file DeepCopyPointer.h.
|
inline |
Definition at line 23 of file DeepCopyPointer.h.
|
inline |
Definition at line 25 of file DeepCopyPointer.h.
|
inline |
|
inline |
Definition at line 70 of file DeepCopyPointer.h.
|
inline |
Definition at line 71 of file DeepCopyPointer.h.
|
inline |
Definition at line 73 of file DeepCopyPointer.h.
|
inline |
Definition at line 74 of file DeepCopyPointer.h.
|
inline |
Definition at line 29 of file DeepCopyPointer.h.
|
inline |
|
inline |
Definition at line 65 of file DeepCopyPointer.h.
|
inline |
Assing a new bare pointer to this DeepCopyPointer, taking ownership of it. The old content of this DeepCopyPointer is deleted
Definition at line 53 of file DeepCopyPointer.h.
Referenced by BasicTrajectoryState::checkGlobalParameters().
|
private |
Definition at line 83 of file DeepCopyPointer.h.
Referenced by DeepCopyPointer< const KFUpdator >::DeepCopyPointer(), DeepCopyPointer< const KFUpdator >::operator bool(), DeepCopyPointer< const KFUpdator >::operator*(), DeepCopyPointer< const KFUpdator >::operator->(), DeepCopyPointer< const KFUpdator >::operator=(), DeepCopyPointer< const KFUpdator >::operator==(), DeepCopyPointer< const KFUpdator >::replaceInplace(), DeepCopyPointer< const KFUpdator >::replaceWith(), and DeepCopyPointer< const KFUpdator >::~DeepCopyPointer().