CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PreallocationConfiguration.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_PreallocationConfiguration_h
2 #define FWCore_Framework_PreallocationConfiguration_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : PreallocationConfiguration
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Sun, 11 Aug 2013 19:27:57 GMT
19 //
20 
21 // system include files
22 
23 // user include files
24 
25 // forward declarations
26 namespace edm {
28  public:
30  PreallocationConfiguration(unsigned int iNThreads, unsigned int iNStreams, unsigned int iNLumis, unsigned int iNRuns)
31  : m_nthreads(iNThreads), m_nStreams(iNStreams), m_nLumis(iNLumis), m_nRuns(iNRuns) {}
32 
33  // ---------- const member functions ---------------------
34  unsigned int numberOfThreads() const { return m_nthreads; }
35  unsigned int numberOfStreams() const { return m_nStreams; }
36  unsigned int numberOfLuminosityBlocks() const { return m_nLumis; }
37  unsigned int numberOfRuns() const { return m_nRuns; }
38 
39  private:
40  //PreallocationConfiguration(const PreallocationConfiguration&) = delete; // stop default
41 
42  //const PreallocationConfiguration& operator=(const PreallocationConfiguration&) = delete; // stop default
43 
44  // ---------- member data --------------------------------
45  unsigned int m_nthreads;
46  unsigned int m_nStreams;
47  unsigned int m_nLumis;
48  unsigned int m_nRuns;
49  };
50 } // namespace edm
51 
52 #endif
PreallocationConfiguration(unsigned int iNThreads, unsigned int iNStreams, unsigned int iNLumis, unsigned int iNRuns)