CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
edm::OrphanHandle< T > Class Template Reference

#include <EDProductfwd.h>

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

Public Types

typedef T element_type
 

Public Member Functions

T const & operator* () const
 
T const * operator-> () const
 
 OrphanHandle ()
 
 OrphanHandle (T const *prod, ProductID const &id)
 
T const * product () const
 
 ~OrphanHandle ()
 
- Public Member Functions inherited from edm::OrphanHandleBase
void clear ()
 
ProductID id () const
 
bool isValid () const
 
OrphanHandleBaseoperator= (OrphanHandleBase const &rhs)
 
 OrphanHandleBase ()
 
 OrphanHandleBase (void const *iProd, ProductID const &iId)
 
void swap (OrphanHandleBase &other)
 
 ~OrphanHandleBase ()
 

Additional Inherited Members

- Protected Member Functions inherited from edm::OrphanHandleBase
void const * productStorage () const
 

Detailed Description

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

Definition at line 39 of file EDProductfwd.h.

Member Typedef Documentation

◆ element_type

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

Definition at line 28 of file OrphanHandle.h.

Constructor & Destructor Documentation

◆ OrphanHandle() [1/2]

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

Definition at line 45 of file OrphanHandle.h.

45 : OrphanHandleBase() {}

◆ OrphanHandle() [2/2]

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

Definition at line 48 of file OrphanHandle.h.

48 : OrphanHandleBase(prod, theId) {}

◆ ~OrphanHandle()

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

Definition at line 51 of file OrphanHandle.h.

51 {}

Member Function Documentation

◆ operator*()

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

Definition at line 64 of file OrphanHandle.h.

64  {
65  return *product();
66  }

◆ operator->()

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

Definition at line 59 of file OrphanHandle.h.

59  {
60  return product();
61  }

◆ product()

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

Definition at line 54 of file OrphanHandle.h.

54  {
55  return static_cast<T const*>(productStorage());
56  }
edm::OrphanHandleBase::productStorage
void const * productStorage() const
Definition: OrphanHandleBase.cc:4
dumpMFGeometry_cfg.prod
prod
Definition: dumpMFGeometry_cfg.py:24
edm::OrphanHandle::product
T const * product() const
Definition: OrphanHandle.h:54
edm::OrphanHandleBase::OrphanHandleBase
OrphanHandleBase()
Definition: OrphanHandleBase.h:30