CMS 3D CMS Logo

AllocMonitorBase.h
Go to the documentation of this file.
1 #ifndef AllocMonitor_interface_AllocMonitorBase_h
2 #define AllocMonitor_interface_AllocMonitorBase_h
3 // -*- C++ -*-
4 //
5 // Package: AllocMonitor/interface
6 // Class : AllocMonitorBase
7 //
21 //
22 // Original Author: Christopher Jones
23 // Created: Mon, 21 Aug 2023 14:03:34 GMT
24 //
25 
26 // system include files
27 #include <stddef.h> //size_t
28 
29 // user include files
30 
31 // forward declarations
32 
33 namespace cms::perftools {
34 
36  public:
38  virtual ~AllocMonitorBase();
39 
40  AllocMonitorBase(const AllocMonitorBase&) = delete; // stop default
41  AllocMonitorBase(AllocMonitorBase&&) = delete; // stop default
42  AllocMonitorBase& operator=(const AllocMonitorBase&) = delete; // stop default
43  AllocMonitorBase& operator=(AllocMonitorBase&&) = delete; // stop default
44 
45  // ---------- member functions ---------------------------
46  virtual void allocCalled(size_t iRequestedSize, size_t iActualSize) = 0;
47  virtual void deallocCalled(size_t iActualSize) = 0;
48  };
49 } // namespace cms::perftools
50 #endif
virtual void deallocCalled(size_t iActualSize)=0
virtual void allocCalled(size_t iRequestedSize, size_t iActualSize)=0
AllocMonitorBase & operator=(const AllocMonitorBase &)=delete