ATLAS Offline Software
Loading...
Searching...
No Matches
TIDAFeature.h
Go to the documentation of this file.
1/* emacs: this is -*- c++ -*- */
13
14
15#ifndef TIDA_FEATURE_H
16#define TIDA_FEATURE_H
17
18#include <iostream>
19
20
21
22namespace TIDA {
23
24
25
28
30
31public:
32
33 virtual ~FeatureBase() { }
34
35 virtual void dummy() const = 0;
36};
37
38}
39
40
41inline std::ostream& operator<<( std::ostream& s, const TIDA::FeatureBase& ) {
42 return s;
43}
44
45
46
47
48namespace TIDA {
49
50
53
54template<typename T>
55class Feature : public FeatureBase {
56
57public:
58
59 typedef T value_type;
60
61public:
62
63 Feature( T* t ) : m_t(t) { }
64
65 virtual ~Feature() { }
66
67 T* cptr() { return m_t; }
68 const T* cptr() const { return m_t; }
69
70private:
71
74 virtual void dummy() const { };
75
76private:
77
78 T* m_t;
79
80};
81
82}
83
84
85template<typename T>
86inline std::ostream& operator<<( std::ostream& s, const TIDA::Feature<T>& ) {
87 return s;
88}
89
90
91
92#endif // TRACKFEATURE_H
93
94
95
96
97
98
99
100
101
102
std::ostream & operator<<(std::ostream &s, const TIDA::FeatureBase &)
Definition TIDAFeature.h:41
very basic Feature base class just so that we can store derived classes onto the store
Definition TIDAFeature.h:29
virtual void dummy() const =0
virtual ~FeatureBase()
Definition TIDAFeature.h:33
actual template of the Feature wrapper - stores a pointer to an object and inherits from FeatureBase
Definition TIDAFeature.h:55
virtual ~Feature()
Definition TIDAFeature.h:65
virtual void dummy() const
only needed to satify the pure virtual method of the FeatureBase
Definition TIDAFeature.h:74
const T * cptr() const
Definition TIDAFeature.h:68
Test for xAOD.