ATLAS Offline Software
CommonStructures.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 #include "CommonStructures.h"
7 #include "tbb/concurrent_vector.h"
8 
9 
11 {
12 public:
13  tbb::concurrent_vector<WorkTimeStamp> m_timeLine;
14 };
15 
16 
18  : m_impl (std::make_unique<WorkTimeStampQueueImpl>())
19 {
20 }
21 
22 
24 {
25 }
26 
27 
29 {
30  m_impl->m_timeLine.clear();
31 }
32 
33 
35 {
36  return m_impl->m_timeLine.size();
37 }
38 
39 
41 {
42  return m_impl->m_timeLine[ndx];
43 }
44 
45 
47 {
48  m_impl->m_timeLine.push_back( ts );
49 }
50 
51 
CommonStructures.h
WorkTimeStampQueue::~WorkTimeStampQueue
~WorkTimeStampQueue()
Definition: CommonStructures.cxx:23
make_unique
std::unique_ptr< T > make_unique(Args &&... args)
Definition: SkimmingToolEXOT5.cxx:23
WorkTimeStampQueue::operator[]
WorkTimeStamp & operator[](size_t ndx)
Definition: CommonStructures.cxx:40
WorkTimeStampQueueImpl
Definition: CommonStructures.cxx:11
WorkTimeStampQueue::push_back
void push_back(const WorkTimeStamp &ts)
Definition: CommonStructures.cxx:46
WorkTimeStampQueue::clear
void clear()
Definition: CommonStructures.cxx:28
WorkTimeStampQueueImpl::m_timeLine
tbb::concurrent_vector< WorkTimeStamp > m_timeLine
Definition: CommonStructures.cxx:13
WorkTimeStampQueue::m_impl
std::unique_ptr< WorkTimeStampQueueImpl > m_impl
Definition: CommonStructures.h:37
WorkTimeStampQueue::WorkTimeStampQueue
WorkTimeStampQueue()
Definition: CommonStructures.cxx:17
WorkTimeStamp
Definition: CommonStructures.h:14
python.CaloScaleNoiseConfig.ts
ts
Definition: CaloScaleNoiseConfig.py:86
WorkTimeStampQueue::size
size_t size() const
Definition: CommonStructures.cxx:34