CMS 3D CMS Logo

Public Types | Public Member Functions

edm::OrphanHandle< T > Class Template Reference

#include <OrphanHandle.h>

Inheritance diagram for edm::OrphanHandle< T >:
edm::OrphanHandleBase

List of all members.

Public Types

typedef T element_type

Public Member Functions

T const & operator* () const
T const * operator-> () const
 OrphanHandle (T const *prod, ProductID const &id)
 OrphanHandle ()
T const * product () const
 ~OrphanHandle ()

Detailed Description

template<typename T>
class edm::OrphanHandle< T >

Definition at line 26 of file OrphanHandle.h.


Member Typedef Documentation

template<typename T>
typedef T edm::OrphanHandle< T >::element_type

Definition at line 28 of file OrphanHandle.h.


Constructor & Destructor Documentation

template<class T >
edm::OrphanHandle< T >::OrphanHandle ( )

Definition at line 45 of file OrphanHandle.h.

template<class T>
edm::OrphanHandle< T >::OrphanHandle ( T const *  prod,
ProductID const &  id 
)

Definition at line 49 of file OrphanHandle.h.

                                                                     : OrphanHandleBase(prod, theId) {
  }
template<class T >
edm::OrphanHandle< T >::~OrphanHandle ( )

Definition at line 53 of file OrphanHandle.h.

{}

Member Function Documentation

template<class T >
T const & edm::OrphanHandle< T >::operator* ( ) const

Definition at line 69 of file OrphanHandle.h.

                                   {
    return *product();
  }
template<class T >
T const * edm::OrphanHandle< T >::operator-> ( ) const

Definition at line 63 of file OrphanHandle.h.

                                    {
    return product();
  }
template<class T >
T const * edm::OrphanHandle< T >::product ( ) const

Definition at line 57 of file OrphanHandle.h.

References compareJSON::const.

Referenced by edm::Ref< C, T, F >::Ref(), and edm::RefProd< TrackingRecHitCollection >::RefProd().

                                 {
    return static_cast<T const*>(productStorage());
  }