Diana Software
QVectorCView.hh
Go to the documentation of this file.
1 #ifndef _Q_VECTORC_VIEW_HH_
2 #define _Q_VECTORC_VIEW_HH_
3 
15 #include "QVectorC.hh"
16 
18 class QVectorCView : public QObject {
19  public:
26  QVectorCView(QVectorC& in, size_t start, size_t size);
27 
29  virtual ~QVectorCView();
30 
32  QVectorC& GetVectorC() const { return *fVectorC; }
33 
35  void Clear() {};
36  private:
38 
40  const QVectorCView& operator=(const QVectorCView& other) {return *this;}
41 
44 };
45 
52 class QVectorCConstView : public QObject {
53  public:
60  QVectorCConstView(const QVectorC& in, size_t start, size_t size);
61 
63  virtual ~QVectorCConstView();
64 
66  const QVectorC& GetVectorC() const { return *fVectorC; }
67 
69  void Clear() {};
70  private:
73  const QVectorCConstView& operator=(const QVectorCConstView& other) {return *this;}
74 
77 };
78 
80 
81 #endif
#define Q_END_NAMESPACE
Definition: QDiana.hh:22
#define Q_BEGIN_NAMESPACE
Definition: QDiana.hh:20
base class for objects handled by QEvent and QGlobalDataManager.
Definition: QObject.hh:76
QVectorCView for const QVectorC.
Definition: QVectorCView.hh:52
const QVectorCConstView & operator=(const QVectorCConstView &other)
operator=
Definition: QVectorCView.hh:73
const QVectorC & GetVectorC() const
Get subview QVector.
Definition: QVectorCView.hh:66
QObjectDef(QVectorCConstView, 1)
void Clear()
Clear is not implemented.
Definition: QVectorCView.hh:69
virtual ~QVectorCConstView()
destructor
Definition: QVectorCView.cc:31
QVectorC * fVectorC
Definition: QVectorCView.hh:75
subview of an existing QVectorC, useful to operate on a QVectorC slice
Definition: QVectorCView.hh:18
QVectorC & GetVectorC() const
Get subview QVector.
Definition: QVectorCView.hh:32
QObjectDef(QVectorCView, 1)
void Clear()
Clear is not implemented.
Definition: QVectorCView.hh:35
const QVectorCView & operator=(const QVectorCView &other)
operator=
Definition: QVectorCView.hh:40
QVectorC * fVectorC
Definition: QVectorCView.hh:42
virtual ~QVectorCView()
destructor: do not destroy the input QVectorC
Definition: QVectorCView.cc:17
Interface for complex vectors in Diana analysis.
Definition: QVectorC.hh:25