CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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  {
29 
30  public:
32  PreallocationConfiguration(1,1,1,1) {}
33  PreallocationConfiguration(unsigned int iNThreads,
34  unsigned int iNStreams,
35  unsigned int iNLumis,
36  unsigned int iNRuns ):
37  m_nthreads(iNThreads),
38  m_nStreams(iNStreams),
39  m_nLumis(iNLumis),
40  m_nRuns(iNRuns) {}
41 
42  // ---------- const member functions ---------------------
43  unsigned int numberOfThreads() const {return m_nthreads;}
44  unsigned int numberOfStreams() const {return m_nStreams;}
45  unsigned int numberOfLuminosityBlocks() const {return m_nLumis;}
46  unsigned int numberOfRuns() const {return m_nRuns;}
47 
48  private:
49  //PreallocationConfiguration(const PreallocationConfiguration&) = delete; // stop default
50 
51  //const PreallocationConfiguration& operator=(const PreallocationConfiguration&) = delete; // stop default
52 
53  // ---------- member data --------------------------------
54  unsigned int m_nthreads;
55  unsigned int m_nStreams;
56  unsigned int m_nLumis;
57  unsigned int m_nRuns;
58  };
59 }
60 
61 
62 #endif
PreallocationConfiguration(unsigned int iNThreads, unsigned int iNStreams, unsigned int iNLumis, unsigned int iNRuns)