ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
StoreGate
StoreGate
VarHandleKeyArrayProperty.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef STOREGATE_VARHANDLEKEYARRAYPROPERTY
6
#define STOREGATE_VARHANDLEKEYARRAYPROPERTY 1
7
14
15
#include "
StoreGate/VarHandleKeyArray.h
"
16
#include "
StoreGate/ReadHandleKeyArray.h
"
17
#include "
StoreGate/WriteHandleKeyArray.h
"
18
#include "Gaudi/Property.h"
19
#include <iostream>
20
21
namespace
Gaudi
{
22
namespace
Parsers
{
23
StatusCode
parse
(SG::VarHandleKeyArray& v,
const
std::string& s);
24
}
25
26
namespace
Utils
{
27
std::ostream&
toStream
(
const
SG::VarHandleKeyArray& v, std::ostream& o);
28
}
29
}
30
31
namespace
SG
{
32
33
class
VarHandleKeyArrayProperty
34
:
public
::PropertyWithHandlers <>
35
{
36
public
:
37
38
VarHandleKeyArrayProperty
(
const
std::string& name,
39
SG::VarHandleKeyArray
&
ref
);
40
41
VarHandleKeyArrayProperty
&
operator=
(
const
SG::VarHandleKeyArray
&
value
);
42
43
VarHandleKeyArrayProperty
*
clone
()
const override
;
44
45
bool
load
( Gaudi::Details::PropertyBase& destination )
const override
;
46
47
bool
assign
(
const
Gaudi::Details::PropertyBase& source )
override
;
48
49
std::string
toString
()
const override
;
50
51
void
toStream
(std::ostream& out)
const override
;
52
53
StatusCode
fromString
(
const
std::string& s)
override
;
54
55
const
SG::VarHandleKeyArray
&
value
()
const
;
56
57
bool
setValue
(
const
SG::VarHandleKeyArray
&
value
);
58
59
60
private
:
64
SG::VarHandleKeyArray
*
m_pValue
;
65
};
66
67
68
}
// namespace SG
69
70
namespace
Gaudi
{
71
template
<>
72
class
Property
<
SG
::VarHandleKeyArray&> :
public
SG::VarHandleKeyArrayProperty
73
{
74
public
:
75
Property
(
const
std::string& name,
SG::VarHandleKeyArray
&
value
) :
76
SG
::
VarHandleKeyArrayProperty
(name,
value
) {}
77
virtual
~Property
() {}
78
};
79
80
template
<
typename
T>
81
class
Property
<
SG
::ReadHandleKeyArray<T>&> :
public
SG::VarHandleKeyArrayProperty
82
{
83
public
:
84
Property
(
const
std::string& name,
SG::ReadHandleKeyArray<T>
&
value
) :
85
SG
::
VarHandleKeyArrayProperty
(name,
value
) {}
86
virtual
~Property
() {}
87
};
88
89
template
<
typename
T>
90
class
Property
<
SG
::WriteHandleKeyArray<T>&> :
public
SG::VarHandleKeyArrayProperty
91
{
92
public
:
93
Property
(
const
std::string& name,
SG::WriteHandleKeyArray<T>
&
value
) :
94
SG
::
VarHandleKeyArrayProperty
(name,
value
) {}
95
virtual
~Property
() {}
96
};
97
98
}
99
100
101
102
103
#endif
ref
const std::regex ref(r_ef)
ReadHandleKeyArray.h
VarHandleKeyArray.h
Base class for VarHandleKeyArray for reading from StoreGate.
WriteHandleKeyArray.h
Gaudi::Property< SG::ReadHandleKeyArray< T > & >::Property
Property(const std::string &name, SG::ReadHandleKeyArray< T > &value)
Definition
VarHandleKeyArrayProperty.h:84
Gaudi::Property< SG::ReadHandleKeyArray< T > & >::~Property
virtual ~Property()
Definition
VarHandleKeyArrayProperty.h:86
Gaudi::Property< SG::VarHandleKeyArray & >::~Property
virtual ~Property()
Definition
VarHandleKeyArrayProperty.h:77
Gaudi::Property< SG::VarHandleKeyArray & >::Property
Property(const std::string &name, SG::VarHandleKeyArray &value)
Definition
VarHandleKeyArrayProperty.h:75
Gaudi::Property< SG::WriteHandleKeyArray< T > & >::~Property
virtual ~Property()
Definition
VarHandleKeyArrayProperty.h:95
Gaudi::Property< SG::WriteHandleKeyArray< T > & >::Property
Property(const std::string &name, SG::WriteHandleKeyArray< T > &value)
Definition
VarHandleKeyArrayProperty.h:93
SG::VarHandleKeyArrayProperty
Definition
VarHandleKeyArrayProperty.h:35
SG::VarHandleKeyArrayProperty::toString
std::string toString() const override
Return a string representation of the value object.
Definition
VarHandleKeyArrayProperty.cxx:89
SG::VarHandleKeyArrayProperty::m_pValue
SG::VarHandleKeyArray * m_pValue
Pointer to the real property.
Definition
VarHandleKeyArrayProperty.h:64
SG::VarHandleKeyArrayProperty::VarHandleKeyArrayProperty
VarHandleKeyArrayProperty(const std::string &name, SG::VarHandleKeyArray &ref)
Constructor with parameters.
Definition
VarHandleKeyArrayProperty.cxx:20
SG::VarHandleKeyArrayProperty::setValue
bool setValue(const SG::VarHandleKeyArray &value)
Set the value object for this Property.
Definition
VarHandleKeyArrayProperty.cxx:146
SG::VarHandleKeyArrayProperty::toStream
void toStream(std::ostream &out) const override
Write a string representation of the value object to a stream.
Definition
VarHandleKeyArrayProperty.cxx:103
SG::VarHandleKeyArrayProperty::clone
VarHandleKeyArrayProperty * clone() const override
Return a new copy of this Property object.
Definition
VarHandleKeyArrayProperty.cxx:49
SG::VarHandleKeyArrayProperty::load
bool load(Gaudi::Details::PropertyBase &destination) const override
Set the value of another Property.
Definition
VarHandleKeyArrayProperty.cxx:64
SG::VarHandleKeyArrayProperty::fromString
StatusCode fromString(const std::string &s) override
Set this value object from a string.
Definition
VarHandleKeyArrayProperty.cxx:117
SG::VarHandleKeyArrayProperty::value
const SG::VarHandleKeyArray & value() const
Return the value object for this Property.
Definition
VarHandleKeyArrayProperty.cxx:132
SG::VarHandleKeyArrayProperty::assign
bool assign(const Gaudi::Details::PropertyBase &source) override
Set the value of this Property from another.
Definition
VarHandleKeyArrayProperty.cxx:79
SG::VarHandleKeyArrayProperty::operator=
VarHandleKeyArrayProperty & operator=(const SG::VarHandleKeyArray &value)
Assignment operator.
Definition
VarHandleKeyArrayProperty.cxx:35
SG::VarHandleKeyArray
Definition
StoreGate/StoreGate/VarHandleKeyArray.h:28
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Gaudi::Parsers
Definition
CaloGPUClusterAndCellDataMonitorOptions.h:275
Gaudi::Parsers::parse
StatusCode parse(std::tuple< Tup... > &tup, const Gaudi::Parsers::InputData &input)
Definition
CaloGPUClusterAndCellDataMonitorOptions.h:284
Gaudi::Utils
Definition
StoreGate/src/VarHandleKeyArray.cxx:34
Gaudi::Utils::toStream
std::ostream & toStream(const SG::VarHandleKeyArray &v, std::ostream &o)
Gaudi function used to convert a property to a string.
Definition
StoreGate/src/VarHandleKeyArray.cxx:47
Gaudi
=============================================================================
Definition
CaloGPUClusterAndCellDataMonitorOptions.h:273
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition
StoreGate/StoreGate/ReadHandleKeyArray.h:32
SG::WriteHandleKeyArray
HandleKeyArray< WriteHandle< T >, WriteHandleKey< T >, Gaudi::DataHandle::Writer > WriteHandleKeyArray
Definition
WriteHandleKeyArray.h:32
Generated on
for ATLAS Offline Software by
1.17.0