ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
D3PDMakerUtils
D3PDMakerUtils
CollectionGetterToolImpl.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3
/*
4
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// $Id$
14
15
16
#ifndef D3PDMAKERUTILS_COLLECTIONGETTERTOOLIMPL_H
17
#define D3PDMAKERUTILS_COLLECTIONGETTERTOOLIMPL_H
18
19
20
#include "
D3PDMakerInterfaces/ICollectionGetterTool.h
"
21
#include "
D3PDMakerInterfaces/ICollectionGetterRegistryTool.h
"
22
#include "
D3PDMakerUtils/ObjGetterToolImpl.h
"
23
#include "
D3PDMakerUtils/TypeConverter.h
"
24
#include "
AthenaBaseComps/AthAlgTool.h
"
25
#include "GaudiKernel/ToolHandle.h"
26
27
28
namespace
D3PD
{
29
30
31
40
class
CollectionGetterToolImpl
41
:
public
extends<ObjGetterToolImpl, ICollectionGetterTool>
42
{
43
public
:
50
CollectionGetterToolImpl
(
const
std::string&
type
,
51
const
std::string& name,
52
const
IInterface* parent);
53
54
56
StatusCode
initialize
();
57
58
67
const
void
*
nextTypeinfo
(
const
std::type_info& ti);
68
69
78
StatusCode
configureElementTypeinfo
(
const
std::type_info& ti);
79
80
91
void
releaseElementTypeinfo
(
const
void
* p,
92
const
std::type_info& ti);
93
94
95
private
:
97
std::string
m_label
;
98
100
ToolHandle<ICollectionGetterRegistryTool>
m_registry
;
101
103
TypeConverter
m_converter
;
104
106
TypeConverter
m_backConverter
;
107
};
108
109
110
}
// namespace D3PD
111
112
113
#endif
// not D3PDMAKERUTILS_COLLECTIONGETTERTOOLIMPL_H
AthAlgTool.h
ICollectionGetterRegistryTool.h
Abstract interface to keep a registry of collection getter tools.
ICollectionGetterTool.h
Abstract interface to get a collection of objects and iterate over it.
ObjGetterToolImpl.h
Non-template parts of ObjGetterTool.
TypeConverter.h
Helper to convert pointers.
D3PD::CollectionGetterToolImpl::nextTypeinfo
const void * nextTypeinfo(const std::type_info &ti)
Return the next object cast to a different pointer type.
Definition
CollectionGetterToolImpl.cxx:68
D3PD::CollectionGetterToolImpl::m_converter
TypeConverter m_converter
Helper to convert pointers.
Definition
CollectionGetterToolImpl.h:103
D3PD::CollectionGetterToolImpl::initialize
StatusCode initialize()
Standard Gaudi initialize method.
Definition
CollectionGetterToolImpl.cxx:45
D3PD::CollectionGetterToolImpl::m_label
std::string m_label
Property: label to assign to this getter (or null).
Definition
CollectionGetterToolImpl.h:97
D3PD::CollectionGetterToolImpl::releaseElementTypeinfo
void releaseElementTypeinfo(const void *p, const std::type_info &ti)
Release an element retrieved from the getter.
Definition
CollectionGetterToolImpl.cxx:104
D3PD::CollectionGetterToolImpl::configureElementTypeinfo
StatusCode configureElementTypeinfo(const std::type_info &ti)
Test type compatibility.
Definition
CollectionGetterToolImpl.cxx:147
D3PD::CollectionGetterToolImpl::m_registry
ToolHandle< ICollectionGetterRegistryTool > m_registry
The collection getter registry tool.
Definition
CollectionGetterToolImpl.h:100
D3PD::CollectionGetterToolImpl::m_backConverter
TypeConverter m_backConverter
Helper to convert pointers back, for releaseElement.
Definition
CollectionGetterToolImpl.h:106
D3PD::CollectionGetterToolImpl::CollectionGetterToolImpl
CollectionGetterToolImpl(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
CollectionGetterToolImpl.cxx:28
D3PD::TypeConverter
This is helper for converting between pointers of different types, given dynamically by std::type_inf...
Definition
TypeConverter.h:45
D3PD
Block filler tool for noisy FEB information.
Definition
CaloCellDetailsFillerTool.cxx:29
type
Generated on
for ATLAS Offline Software by
1.17.0