ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
IRegionSelector
IRegionSelector
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
24
template
<
typename
T>
25
class
RegSelCondData
{
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
operator<<
std::ostream & operator<<(std::ostream &s, const RegSelCondData< T > &r)
Definition
RegSelCondData.h:43
RegSelCondData
Definition
RegSelCondData.h:25
RegSelCondData< IRegSelLUT >::m_payload
std::unique_ptr< IRegSelLUT > m_payload
Definition
RegSelCondData.h:37
RegSelCondData::RegSelCondData
RegSelCondData(std::unique_ptr< T > t)
Definition
RegSelCondData.h:29
RegSelCondData::payload
const T * payload() const
Definition
RegSelCondData.h:33
RegSelCondData::~RegSelCondData
virtual ~RegSelCondData()
Definition
RegSelCondData.h:31
r
int r
Definition
globals.cxx:22
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0