5 #ifndef ASG_DATA_HANDLES_HANDLE_KEY_ARRAY_H
6 #define ASG_DATA_HANDLES_HANDLE_KEY_ARRAY_H
8 #ifndef XAOD_STANDALONE
31 template <
class T_Handle,
class T_HandleKey>
32 class HandleKeyArray :
public VarHandleKeyArrayCommon< T_HandleKey > {
73 template <
class OWNER>
76 std::initializer_list<std::string>
l,
79 owner->declareProperty(std::move(
name), *
this, std::move(
doc));
93 std::vector< T_Handle > hndl;
94 typename std::vector<T_HandleKey>::const_iterator itr;
95 for (itr = this->
begin(); itr != this->
end(); ++itr) {
96 hndl.push_back ( T_Handle( *itr) );
105 std::vector< T_Handle >
makeHandles (
const EventContext& ctx)
const
107 std::vector< T_Handle > hndl;
108 typename std::vector<T_HandleKey>::const_iterator itr;
109 for (itr = this->
begin(); itr != this->
end(); ++itr) {
110 hndl.push_back ( T_Handle( *itr, ctx) );
123 template<
typename T>
struct GetStringHelper;
125 template<
typename T1,
typename T2>
struct GetStringHelper<
SG::HandleKeyArray<T1,T2> >
126 :
public GetStringHelper<std::vector<T2> >
130 template<
typename T>
struct SetStringHelper;
132 template<
typename T1,
typename T2>
struct SetStringHelper<
SG::HandleKeyArray<T1,T2> >
133 :
public SetStringHelper<std::vector<T2> >