Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:01

0001 #ifndef DataFormats_Common_RefCoreStreamer_h
0002 #define DataFormats_Common_RefCoreStreamer_h
0003 
0004 #include "TClassStreamer.h"
0005 #include "TClassRef.h"
0006 
0007 class TBuffer;
0008 
0009 namespace edm {
0010   class EDProductGetter;
0011   class RefCoreStreamer : public TClassStreamer {
0012   public:
0013     explicit RefCoreStreamer() : cl_("edm::RefCore") {}
0014 
0015     void operator()(TBuffer& R__b, void* objp) override;
0016 
0017     TClassStreamer* Generate() const override;
0018 
0019   private:
0020     TClassRef cl_;
0021   };
0022 
0023   class RefCoreWithIndexStreamer : public TClassStreamer {
0024   public:
0025     explicit RefCoreWithIndexStreamer() : cl_("edm::RefCoreWithIndex") {}
0026 
0027     void operator()(TBuffer& R__b, void* objp) override;
0028 
0029     TClassStreamer* Generate() const override;
0030 
0031   private:
0032     TClassRef cl_;
0033   };
0034 
0035   void setRefCoreStreamerInTClass();
0036   void setRefCoreStreamer(bool resetAll = false);
0037   EDProductGetter const* setRefCoreStreamer(EDProductGetter const* ep);
0038 }  // namespace edm
0039 #endif