ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkDetDescr
TrkVolumes
src
VolumeExcluder.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// VolumeExcluder.cxx, (c) ATLAS Detector software
8
9
// Trk
10
#include "
TrkVolumes/VolumeExcluder.h
"
11
// Gaudi
12
#include "GaudiKernel/MsgStream.h"
13
14
15
// constructor with volume
16
Trk::VolumeExcluder::VolumeExcluder
(std::unique_ptr<Trk::Volume> vol)
17
:
m_vol
(
std
::move(vol))
18
{}
19
20
// copy constructor
21
Trk::VolumeExcluder::VolumeExcluder
(
const
VolumeExcluder
& ex)
22
:
Trk
::
AreaExcluder
(ex)
23
,
m_vol
{ex.
m_vol
->
clone
()}
24
{}
25
27
Trk::VolumeExcluder
&
28
Trk::VolumeExcluder::operator=
(
const
VolumeExcluder
& vol)
29
{
30
if
(&vol !=
this
) {
31
AreaExcluder::operator=
(vol);
32
m_vol
.reset(vol.
m_vol
->clone());
33
}
34
return
*
this
;
35
}
36
37
Trk::VolumeExcluder
*
38
Trk::VolumeExcluder::clone
()
const
39
{
40
return
new
Trk::VolumeExcluder
(*
this
);
41
}
42
VolumeExcluder.h
Trk::AreaExcluder::operator=
AreaExcluder & operator=(const AreaExcluder &)=default
Trk::AreaExcluder::AreaExcluder
AreaExcluder()=default
Trk::VolumeExcluder
removes explicit dependence of Subtracted*Surface on TrkVolumes
Definition
VolumeExcluder.h:30
Trk::VolumeExcluder::clone
VolumeExcluder * clone() const
Polymorphic constructor.
Definition
VolumeExcluder.cxx:38
Trk::VolumeExcluder::m_vol
std::unique_ptr< Volume > m_vol
Definition
VolumeExcluder.h:61
Trk::VolumeExcluder::VolumeExcluder
VolumeExcluder()
Defaults.
Trk::VolumeExcluder::operator=
VolumeExcluder & operator=(VolumeExcluder &&)=default
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0