ATLAS Offline Software
Loading...
Searching...
No Matches
RegSelCondData.h
Go to the documentation of this file.
1/* emacs: this is -*- c++ -*- */
16
17#ifndef REGSELCONDDATA_H
18#define REGSELCONDDATA_H
19
20#include <iostream>
21#include <memory>
22
23
24template<typename T>
26
27public:
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
35protected:
36
37 std::unique_ptr<T> m_payload;
38
39};
40
41
42template<typename T>
43inline std::ostream& operator<<( std::ostream& s, const RegSelCondData<T>& r ) {
44 return s << *(r->payload());
45}
46
47
48#endif // REGSELCONDDATA_H
49
std::ostream & operator<<(std::ostream &s, const RegSelCondData< T > &r)
std::unique_ptr< IRegSelLUT > m_payload
RegSelCondData(std::unique_ptr< T > t)
const T * payload() const
virtual ~RegSelCondData()
int r
Definition globals.cxx:22
STL namespace.