test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWHandle.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWHandle_h
2 #define Fireworks_Core_FWHandle_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWHandle
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Thu Jan 3 19:23:45 EST 2008
19 //
20 
21 // system include files
22 #if !defined(__CINT__) && !defined(__MAKECINT__)
23 //CINT can't handle parsing these files
26 #endif
27 
28 // user include files
29 
30 // forward declarations
31 
32 class FWHandle
33 {
34 
35 public:
36  FWHandle() : data(0) {
37  }
38  //virtual ~FWHandle();
39 
40  // ---------- const member functions ---------------------
41  const T* get() const {
42  return data_;
43  }
44 
45  const T* operator->() const {
46  return data_;
47  }
48 
49  const T& operator*() const {
50  return *data_;
51  }
52  // ---------- static member functions --------------------
53 
54  // ---------- member functions ---------------------------
55  void getFrom(const FWEventItem& iItem) {
56  data_ = reinterpet_cast<const T*>(
58  );
59  }
60 
61 private:
62  //FWHandle(const FWHandle&); // stop default
63 
64  //const FWHandle& operator=(const FWHandle&); // stop default
65 
66  // ---------- member data --------------------------------
67  const T* data_;
68 
69 };
70 
71 
72 #endif
const T & operator*() const
Definition: FWHandle.h:49
const void * data(const std::type_info &) const
Definition: FWEventItem.cc:392
FWHandle()
Definition: FWHandle.h:36
const T * operator->() const
Definition: FWHandle.h:45
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
const T * data_
Definition: FWHandle.h:67
void getFrom(const FWEventItem &iItem)
Definition: FWHandle.h:55
long double T