ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ActsElementVector Class Reference

Helper to hold elements for deletion. More...

#include <ActsElementVector.h>

Collaboration diagram for ActsElementVector:

Public Member Functions

void push_back (std::shared_ptr< const ActsDetectorElement > p) const
 

Private Attributes

std::vector< std::shared_ptr< const ActsDetectorElement > > m_vec ATLAS_THREAD_SAFE
 
std::mutex m_mutex
 

Detailed Description

Helper to hold elements for deletion.

This just holds a vector of shared_ptr's to AtlasDetectorElement, in order to maintain a reference count on them until it's time for them to be deleted.

Definition at line 29 of file ActsElementVector.h.

Member Function Documentation

◆ push_back()

void ActsElementVector::push_back ( std::shared_ptr< const ActsDetectorElement p) const
inline

Definition at line 35 of file ActsElementVector.h.

36  {
37  std::scoped_lock lock (m_mutex);
38  m_vec.push_back (p);
39  }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::vector<std::shared_ptr<const ActsDetectorElement> > m_vec ActsElementVector::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 43 of file ActsElementVector.h.

◆ m_mutex

std::mutex ActsElementVector::m_mutex
mutableprivate

Definition at line 44 of file ActsElementVector.h.


The documentation for this class was generated from the following file:
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
ActsElementVector::m_mutex
std::mutex m_mutex
Definition: ActsElementVector.h:44