CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ESTransientHandle.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_ESTransientHandle_h
2 #define FWCore_Framework_ESTransientHandle_h
3 // -*- C++ -*-
4 //
5 // Package: Framework
6 // Class : ESTransientHandle
7 //
25 //
26 // Author: Chris Jones
27 // Created: Thu Nov 12 14:47:35 CST 2009
28 //
29 
30 // system include files
31 
32 // user include files
34 
35 // forward declarations
36 namespace edm {
37 
38 template<typename T>
40  public:
41  typedef T value_type;
42 
44  ESTransientHandle(T const* iData) : ESHandleBase(iData, 0) {}
45  ESTransientHandle(T const* iData, edm::eventsetup::ComponentDescription const* desc) : ESHandleBase(iData, desc) {}
46 
47  // ---------- const member functions ---------------------
48  T const* product() const { return static_cast<T const *>(productStorage()); }
49  T const* operator->() const { return product(); }
50  T const& operator*() const { return *product(); }
51  // ---------- static member functions --------------------
52  static const bool transientAccessOnly = true;
53 
54  // ---------- member functions ---------------------------
55 
56  private:
57 };
58 
59 }
60 #endif
ESTransientHandle(T const *iData)
T const * product() const
static const bool transientAccessOnly
T const & operator*() const
void const * productStorage() const
Definition: ESHandle.h:44
long double T
T const * operator->() const
ESTransientHandle(T const *iData, edm::eventsetup::ComponentDescription const *desc)