ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigMonitoring
TrigIDR4Monitoring
src
ChildView.h
Go to the documentation of this file.
1
/* emacs: this is -*- c++ -*- */
15
16
17
#ifndef TRIGIDR4MONITORING_CHILDVIEW_H
18
#define TRIGIDR4MONITORING_CHILDVIEW_H
19
20
#include "
TrackView.h
"
21
22
25
26
class
ChildView
:
public
TrackView
{
27
28
public
:
29
30
template
<
typename
T>
31
ChildView
(
const
T* pobj ) :
TrackView
( pobj ),
m_parent
(0) { }
32
33
ChildView
(
const
ChildView
& t ) =
default
;
34
ChildView
(
const
TrackView
& t ) :
TrackView
(t),
m_parent
(0) { }
35
36
ChildView
(
const
ChildView
* ) =
delete
;
// don't want implicitly creating a ChildView with an internal ChildView*
37
ChildView
(
ChildView
* ) =
delete
;
38
39
virtual
~ChildView
() =
default
;
40
41
bool
hasParent
()
const override
{
return
m_parent
; }
42
43
const
TrackView
*
parent
()
const override
{
return
m_parent
; }
44
47
48
void
setParent
(
const
TrackView
*
p
) {
m_parent
=
p
; }
49
50
private
:
51
55
const
TrackView
*
m_parent
;
56
57
};
58
59
60
61
#endif
// TRIGIDR4MONITORING_CHILDVIEW_H
62
63
64
65
66
67
68
69
70
71
TrackView.h
ChildView::ChildView
ChildView(const ChildView *)=delete
ChildView::~ChildView
virtual ~ChildView()=default
ChildView::parent
const TrackView * parent() const override
Definition
ChildView.h:43
ChildView::ChildView
ChildView(const TrackView &t)
Definition
ChildView.h:34
ChildView::hasParent
bool hasParent() const override
and doesn't have a parent ...
Definition
ChildView.h:41
ChildView::m_parent
const TrackView * m_parent
pointer to the parent - technically, should be a ParentView, but keeping everything as a TrackView* s...
Definition
ChildView.h:55
ChildView::ChildView
ChildView(const T *pobj)
Definition
ChildView.h:31
ChildView::ChildView
ChildView(ChildView *)=delete
ChildView::setParent
void setParent(const TrackView *p)
be careful with this - can ONLY be used once the parent container is fixed and won't / can't ever be ...
Definition
ChildView.h:48
ChildView::ChildView
ChildView(const ChildView &t)=default
TrackView::TrackView
TrackView(const T *pobj)
Definition
TrackView.h:48
TrackView::p
float p() const
Definition
TrackView.h:94
Generated on
for ATLAS Offline Software by
1.17.0