CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RefHolder.h
Go to the documentation of this file.
1 #ifndef DataFormats_Common_RefHolder_h
2 #define DataFormats_Common_RefHolder_h
4 
9 #include <memory>
10 
11 namespace edm {
12  namespace reftobase {
13  template <class REF>
14  std::auto_ptr<RefVectorHolderBase> RefHolder<REF>::makeVectorHolder() const {
15  typedef typename RefHolderToRefVectorTrait<REF>::type helper;
16  return helper::makeVectorHolder();
17  }
18  }
19 }
20 
22 
23 namespace edm {
24  namespace reftobase {
25  template <class REF>
26  size_t
28  {
29  typedef typename RefKeyTrait<REF>::type helper;
30  return helper::key( ref_ );
31  }
32 
33  }
34 }
35 
36 #endif
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
virtual std::auto_ptr< RefVectorHolderBase > makeVectorHolder() const override
Definition: RefHolder.h:14
virtual size_t key() const override
Definition: RefHolder.h:27