ATLAS Offline Software
Trigger
TrigAccel
TrigInDetCUDA
src
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
10
class
WorkTimeStampQueueImpl
11
{
12
public
:
13
tbb::concurrent_vector<WorkTimeStamp>
m_timeLine
;
14
};
15
16
17
WorkTimeStampQueue::WorkTimeStampQueue
()
18
: m_impl (std::
make_unique
<
WorkTimeStampQueueImpl
>())
19
{
20
}
21
22
23
WorkTimeStampQueue::~WorkTimeStampQueue
()
24
{
25
}
26
27
28
void
WorkTimeStampQueue::clear
()
29
{
30
m_impl
->m_timeLine.clear();
31
}
32
33
34
size_t
WorkTimeStampQueue::size
()
const
35
{
36
return
m_impl
->m_timeLine.size();
37
}
38
39
40
WorkTimeStamp
&
WorkTimeStampQueue::operator[]
(
size_t
ndx )
41
{
42
return
m_impl
->m_timeLine[ndx];
43
}
44
45
46
void
WorkTimeStampQueue::push_back
(
const
WorkTimeStamp
&
ts
)
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
Generated on Sun Dec 22 2024 21:08:23 for ATLAS Offline Software by
1.8.18