ATLAS Offline Software
RegSelCondData.h
Go to the documentation of this file.
1 /* emacs: this is -*- c++ -*- */
17 #ifndef REGSELCONDDATA_H
18 #define REGSELCONDDATA_H
19 
20 #include <iostream>
21 #include <memory>
22 
23 
24 template<typename T>
26 
27 public:
28 
29  RegSelCondData( std::unique_ptr<T> t ) : m_payload(std::move(t)) { }
30 
31  virtual ~RegSelCondData() { }
32 
33  const T* payload() const { return m_payload.get(); }
34 
35 protected:
36 
37  std::unique_ptr<T> m_payload;
38 
39 };
40 
41 
42 template<typename T>
43 inline std::ostream& operator<<( std::ostream& s, const RegSelCondData<T>& r ) {
44  return s << *(r->payload());
45 }
46 
47 
48 #endif // REGSELCONDDATA_H
49 
beamspotman.r
def r
Definition: beamspotman.py:676
RegSelCondData::~RegSelCondData
virtual ~RegSelCondData()
Definition: RegSelCondData.h:31
RegSelCondData
Definition: RegSelCondData.h:25
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
operator<<
std::ostream & operator<<(std::ostream &s, const RegSelCondData< T > &r)
Definition: RegSelCondData.h:43
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
RegSelCondData::RegSelCondData
RegSelCondData(std::unique_ptr< T > t)
Definition: RegSelCondData.h:29
RegSelCondData::m_payload
std::unique_ptr< T > m_payload
could return the actual payload reference, but have everything using pointers
Definition: RegSelCondData.h:37
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
RegSelCondData::payload
const T * payload() const
Definition: RegSelCondData.h:33