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 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.

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

Definition at line 52 of file TestHandle.h.

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

Definition at line 56 of file TestHandle.h.

{}

Member Function Documentation

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

Definition at line 72 of file TestHandle.h.

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

Definition at line 66 of file TestHandle.h.

                                  {
    return product();
  }
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< TrackingRecHitCollection >::RefProd().

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