CMS 3D CMS Logo

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
edm::PreallocationConfiguration::m_nRuns
unsigned int m_nRuns
Definition: PreallocationConfiguration.h:48
edm::PreallocationConfiguration::numberOfRuns
unsigned int numberOfRuns() const
Definition: PreallocationConfiguration.h:37
edm::PreallocationConfiguration::numberOfThreads
unsigned int numberOfThreads() const
Definition: PreallocationConfiguration.h:34
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::PreallocationConfiguration::PreallocationConfiguration
PreallocationConfiguration()
Definition: PreallocationConfiguration.h:29
edm::PreallocationConfiguration::numberOfLuminosityBlocks
unsigned int numberOfLuminosityBlocks() const
Definition: PreallocationConfiguration.h:36
edm::PreallocationConfiguration::PreallocationConfiguration
PreallocationConfiguration(unsigned int iNThreads, unsigned int iNStreams, unsigned int iNLumis, unsigned int iNRuns)
Definition: PreallocationConfiguration.h:30
edm::PreallocationConfiguration::m_nStreams
unsigned int m_nStreams
Definition: PreallocationConfiguration.h:46
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
edm::PreallocationConfiguration::m_nthreads
unsigned int m_nthreads
Definition: PreallocationConfiguration.h:45
edm::PreallocationConfiguration::numberOfStreams
unsigned int numberOfStreams() const
Definition: PreallocationConfiguration.h:35
edm::PreallocationConfiguration::m_nLumis
unsigned int m_nLumis
Definition: PreallocationConfiguration.h:47