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

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

Definition at line 31 of file TestHandle.h.

Constructor & Destructor Documentation

template<class T >
TestHandle::TestHandle ( )

Definition at line 48 of file TestHandle.h.

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

Definition at line 52 of file TestHandle.h.

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

Definition at line 56 of file TestHandle.h.

56 {}

Member Function Documentation

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

Definition at line 72 of file TestHandle.h.

References edm::TestHandle< T >::product().

72  {
73  return *product();
74  }
T const * product() const
Definition: TestHandle.h:60
template<class T >
T const * TestHandle::operator-> ( ) const

Definition at line 66 of file TestHandle.h.

References edm::TestHandle< T >::product().

66  {
67  return product();
68  }
T const * product() const
Definition: TestHandle.h:60
template<class T >
T const * TestHandle::product ( ) const

Definition at line 60 of file TestHandle.h.

References edm::OrphanHandleBase::productStorage().

Referenced by edm::TestHandle< T >::operator*(), edm::TestHandle< T >::operator->(), edm::Ref< C, T, F >::Ref(), and edm::RefProd< Phase2TrackerCluster1Ds >::RefProd().

60  {
61  return static_cast<T const*>(productStorage());
62  }
long double T
void const * productStorage() const