ATLAS Offline Software
Loading...
Searching...
No Matches
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
26class ChildView : public TrackView {
27
28public:
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
50private:
51
56
57};
58
59
60
61#endif // TRIGIDR4MONITORING_CHILDVIEW_H
62
63
64
65
66
67
68
69
70
71
ChildView(const ChildView *)=delete
virtual ~ChildView()=default
const TrackView * parent() const override
Definition ChildView.h:43
ChildView(const TrackView &t)
Definition ChildView.h:34
bool hasParent() const override
and doesn't have a parent ...
Definition ChildView.h:41
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(const T *pobj)
Definition ChildView.h:31
ChildView(ChildView *)=delete
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(const ChildView &t)=default
TrackView(const T *pobj)
Definition TrackView.h:48
float p() const
Definition TrackView.h:94