Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:47

0001 #ifndef DataFormats_TestObjects_DeleteEarly_h
0002 #define DataFormats_TestObjects_DeleteEarly_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     TestObjects
0006 // Class  :     DeleteEarly
0007 //
0008 /**\class DeleteEarly DeleteEarly.h DataFormats/TestObjects/interface/DeleteEarly.h
0009 
0010  Description: Data type used to test early deletion feature
0011 
0012  Usage:
0013 
0014 */
0015 //
0016 // Original Author:  Chris Jones
0017 //         Created:  Tue Feb  7 14:40:52 CST 2012
0018 //
0019 
0020 // system include files
0021 
0022 // user include files
0023 
0024 // forward declarations
0025 
0026 namespace edmtest {
0027   class DeleteEarly {
0028   public:
0029     DeleteEarly(){};
0030     ~DeleteEarly() { ++s_nDeletes; }
0031     // ---------- const member functions ---------------------
0032 
0033     // ---------- static member functions --------------------
0034     static unsigned int nDeletes() { return s_nDeletes; }
0035     static void resetDeleteCount() { s_nDeletes = 0; }
0036 
0037     // ---------- member functions ---------------------------
0038 
0039   private:
0040     // ---------- member data --------------------------------
0041     static unsigned int s_nDeletes;
0042   };
0043 
0044 }  // namespace edmtest
0045 
0046 #endif