CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 >
edm::TestHandle< T >::TestHandle ( )

Definition at line 48 of file TestHandle.h.

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

Definition at line 52 of file TestHandle.h.

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

Definition at line 56 of file TestHandle.h.

56 {}

Member Function Documentation

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

Definition at line 72 of file TestHandle.h.

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

Definition at line 66 of file TestHandle.h.

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

Definition at line 60 of file TestHandle.h.

References compareJSON::const.

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

60  {
61  return static_cast<T const*>(productStorage());
62  }
string const
Definition: compareJSON.py:14
long double T
void const * productStorage() const