CMS 3D CMS Logo

Public Types | Public Member Functions

edm::TestHandle< T > Class Template Reference

#include <TestHandle.h>

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

List of all members.

Public Types

typedef T element_type

Public Member Functions

T const & operator* () const
T const * operator-> () const
T const * product () const
 TestHandle (T const *prod, ProductID const &id)
 TestHandle ()
 ~TestHandle ()

Detailed Description

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

Definition at line 30 of file TestHandle.h.


Member Typedef Documentation

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

Definition at line 32 of file TestHandle.h.


Constructor & Destructor Documentation

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

Definition at line 49 of file TestHandle.h.

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

Definition at line 53 of file TestHandle.h.

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

Definition at line 57 of file TestHandle.h.

{}

Member Function Documentation

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

Definition at line 73 of file TestHandle.h.

                                 {
    return *product();
  }
template<class T >
T const * edm::TestHandle< T >::operator-> ( ) const

Definition at line 67 of file TestHandle.h.

                                  {
    return product();
  }
template<class T >
T const * edm::TestHandle< T >::product ( ) const

Definition at line 61 of file TestHandle.h.

References compareJSON::const.

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

                               {
    return static_cast<T const*>(productStorage());
  }