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 // $Id: FWHandle.h,v 1.3 2009/01/23 21:35:41 amraktad Exp $
20 //
21 
22 // system include files
23 #if !defined(__CINT__) && !defined(__MAKECINT__)
24 //CINT can't handle parsing these files
27 #endif
28 
29 // user include files
30 
31 // forward declarations
32 
33 class FWHandle
34 {
35 
36 public:
37  FWHandle() : data(0) {
38  }
39  //virtual ~FWHandle();
40 
41  // ---------- const member functions ---------------------
42  const T* get() const {
43  return data_;
44  }
45 
46  const T* operator->() const {
47  return data_;
48  }
49 
50  const T& operator*() const {
51  return *data_;
52  }
53  // ---------- static member functions --------------------
54 
55  // ---------- member functions ---------------------------
56  void getFrom(const FWEventItem& iItem) {
57  data_ = reinterpet_cast<const T*>(
59  );
60  }
61 
62 private:
63  //FWHandle(const FWHandle&); // stop default
64 
65  //const FWHandle& operator=(const FWHandle&); // stop default
66 
67  // ---------- member data --------------------------------
68  const T* data_;
69 
70 };
71 
72 
73 #endif
const T & operator*() const
Definition: FWHandle.h:50
const void * data(const std::type_info &) const
Definition: FWEventItem.cc:393
FWHandle()
Definition: FWHandle.h:37
const T * operator->() const
Definition: FWHandle.h:46
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
const T * data_
Definition: FWHandle.h:68
void getFrom(const FWEventItem &iItem)
Definition: FWHandle.h:56
long double T