GeoModel - GeoModelCore
Public Member Functions | Private Attributes | List of all members
ConstLink< T > Class Template Reference

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.
 

Detailed Description

template<class T>
class ConstLink< T >

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.


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