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
 
 OrphanHandleBase ()
 
 OrphanHandleBase (void const *iProd, ProductID const &iId)
 
void swap (OrphanHandleBase &other)
 

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.

◆ TestHandle() [2/2]

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

Definition at line 51 of file TestHandle.h.

◆ ~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  }
T const * product() const
Definition: TestHandle.h:57

◆ operator->()

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

Definition at line 62 of file TestHandle.h.

62  {
63  return product();
64  }
T const * product() const
Definition: TestHandle.h:57

◆ product()

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

Definition at line 57 of file TestHandle.h.

References runTheMatrix::const.

57  {
58  return static_cast<T const*>(productStorage());
59  }
long double T
void const * productStorage() const