|
GeoModel - GeoModelCore
|
Smart links to reference-counted pointers. Used in this package for calorimeter cells Template Smart Pointer Class. This reference counted link allocates on demand. It audits the total pointer count and collects the garbage when nobody's looking. More...
#include <ConstLink.h>
Public Member Functions | |
| ConstLink () | |
| Constructor. | |
| ConstLink (const ConstLink< T > &right) | |
| Copy Constructor. | |
| ConstLink (const T *target) | |
| Constructor. | |
| virtual | ~ConstLink () |
| Destructor. | |
| ConstLink< T > & | operator= (const ConstLink< T > &right) |
| Assignment. | |
| int | operator== (const ConstLink< T > &right) const |
| Equality. | |
| int | operator!= (const ConstLink< T > &right) const |
| Inequality. | |
| int | operator< (const ConstLink< T > &right) const |
| Relational operator. | |
| int | operator> (const ConstLink< T > &right) const |
| Relational operator. | |
| int | operator<= (const ConstLink< T > &right) const |
| Relational operator. | |
| int | operator>= (const ConstLink< T > &right) const |
| Relational operator. | |
| virtual const T & | operator* () const |
| Dereference: (*t).method();. | |
| virtual const T * | operator-> () const |
| Dereference: t->method() | |
| operator bool () const | |
| Check pointer validity: if (t) {...}. | |
Private Attributes | |
| T * | m_ptr |
| Raw pointer to reference counted object. | |
Smart links to reference-counted pointers. Used in this package for calorimeter cells Template Smart Pointer Class. This reference counted link allocates on demand. It audits the total pointer count and collects the garbage when nobody's looking.
Definition at line 19 of file ConstLink.h.
1.8.11