CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Transient.h
Go to the documentation of this file.
1 #ifndef DataFormats_Provenance_Transient_h
2 #define DataFormats_Provenance_Transient_h
3 // -*- C++ -*-
4 //
5 // Package: Provenance
6 // Class : Transient
7 //
17 //
18 // Original Author: Bill Tanenbaum
19 // Created: Sat Aug 18 17:30:08 EDT 2007
20 //
21 
22 // system include files
23 
24 // user include files
25 
26 // forward declarations
27 namespace edm {
28 
29 template <typename T>
30 class Transient {
31 public:
32  typedef T value_type;
33  Transient() : value_(T()) {}
34  explicit Transient(T const& value) : value_(value) {}
35  operator T() const { return value_; }
36  Transient & operator=(T const& rh) { value_ = rh; return *this; }
37  T const& get() const { return value_;}
38  T & get() { return value_;}
39 private:
41 };
42 }
43 #endif
Transient & operator=(T const &rh)
Definition: Transient.h:36
Transient(T const &value)
Definition: Transient.h:34
long double T