CMS 3D CMS Logo

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

#include <TestHandle.h>

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

Public Types

typedef T element_type
 

Public Member Functions

T const & operator* () const
 
T const * operator-> () const
 
T const * product () const
 
 TestHandle ()
 
 TestHandle (T const *prod, ProductID const &id)
 
 ~TestHandle ()
 
- 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::TestHandle< T >

Definition at line 29 of file TestHandle.h.

Member Typedef Documentation

◆ element_type

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

Definition at line 31 of file TestHandle.h.

Constructor & Destructor Documentation

◆ TestHandle() [1/2]

template<class T >
TestHandle::TestHandle ( )

Definition at line 48 of file TestHandle.h.

48 : OrphanHandleBase() {}

◆ TestHandle() [2/2]

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

Definition at line 51 of file TestHandle.h.

51 : OrphanHandleBase(prod, theId) {}

◆ ~TestHandle()

template<class T >
TestHandle::~TestHandle ( )

Definition at line 54 of file TestHandle.h.

54 {}

Member Function Documentation

◆ operator*()

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

Definition at line 67 of file TestHandle.h.

67  {
68  return *product();
69  }

◆ operator->()

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

Definition at line 62 of file TestHandle.h.

62  {
63  return product();
64  }

◆ product()

template<class T >
T const * TestHandle::product ( ) const

Definition at line 57 of file TestHandle.h.

57  {
58  return static_cast<T const*>(productStorage());
59  }
edm::OrphanHandleBase::productStorage
void const * productStorage() const
Definition: OrphanHandleBase.cc:4
edm::TestHandle::product
T const * product() const
Definition: TestHandle.h:57
dumpMFGeometry_cfg.prod
prod
Definition: dumpMFGeometry_cfg.py:24
edm::OrphanHandleBase::OrphanHandleBase
OrphanHandleBase()
Definition: OrphanHandleBase.h:30