Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:50

0001 #ifndef DataFormats_Common_ConstPtrCache_h
0002 #define DataFormats_Common_ConstPtrCache_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Common
0006 // Class  :     PtrCache
0007 //
0008 /**\class ConstPtrCache ConstPtrCache.h DataFormats/Common/interface/ConstPtrCache.h
0009 
0010  Description: ROOT safe cache of a pointer
0011 
0012  Usage:
0013 We define schema evolution rules for this class in order to guarantee that ptr_
0014 is always reset to 0 when ever a new instance of this class is read from a file
0015 
0016 */
0017 //
0018 // Original Author:  Chris Jones
0019 //         Created:  Sat Aug 18 17:30:04 EDT 2007
0020 //
0021 
0022 // system include files
0023 
0024 // user include files
0025 
0026 // forward declarations
0027 namespace edm {
0028   class ConstPtrCache {
0029   public:
0030     ConstPtrCache() : ptr_(0) {}
0031     ConstPtrCache(const void* iPtr) : ptr_(iPtr) {}
0032 
0033     const void* ptr_;
0034   };
0035 
0036 }  // namespace edm
0037 #endif