CMS 3D CMS Logo

ESPreFunctorDecorator.h
Go to the documentation of this file.
1 #ifndef Framework_ESPreFunctorDecorator_h
2 #define Framework_ESPreFunctorDecorator_h
3 // -*- C++ -*-
4 //
5 // Package: Framework
6 // Class : ESPreFunctorDecorator
7 //
18 //
19 // Original Author: Chris Jones
20 // Created: Wed Jun 22 11:40:41 EDT 2005
21 //
22 
23 // system include files
24 
25 // user include files
26 
27 // forward declarations
28 
29 namespace edm {
30  namespace eventsetup {
31 
32  template <class TRecord, class TFunctor>
34  public:
35  ESPreFunctorDecorator(const TFunctor& iCaller) : caller_(iCaller) {}
36  //virtual ~ESPreFunctorDecorator();
37 
38  // ---------- const member functions ---------------------
39 
40  // ---------- static member functions --------------------
41 
42  // ---------- member functions ---------------------------
43  void pre(const TRecord& iRecord) { caller_(iRecord); }
44 
45  void post(const TRecord&) {}
46 
47  private:
48  //ESPreFunctorDecorator(const ESPreFunctorDecorator&); // stop default
49 
50  const ESPreFunctorDecorator& operator=(const ESPreFunctorDecorator&) = delete; // stop default
51 
52  // ---------- member data --------------------------------
53  TFunctor caller_;
54  };
55 
56  } // namespace eventsetup
57 } // namespace edm
58 
59 #endif
ESPreFunctorDecorator(const TFunctor &iCaller)
const ESPreFunctorDecorator & operator=(const ESPreFunctorDecorator &)=delete
HLT enums.