ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
D3PDMakerUtils
D3PDMakerUtils
ObjGetterTool.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_OBJGETTERTOOL_H
17
#define D3PDMAKERUTILS_OBJGETTERTOOL_H
18
19
20
#include "
D3PDMakerUtils/ObjGetterToolImpl.h
"
21
22
23
namespace
D3PD
{
24
25
33
template
<
class
T>
34
class
ObjGetterTool
35
:
public
ObjGetterToolImpl
36
{
37
public
:
44
ObjGetterTool
(
const
std::string&
type
,
45
const
std::string& name,
46
const
IInterface* parent);
47
48
57
virtual
const
void
*
getUntyped
(
bool
allowMissing =
false
);
58
59
63
virtual
const
std::type_info&
typeinfo
()
const
;
64
65
73
virtual
const
T*
get
(
bool
allowMissing =
false
) = 0;
74
75
85
virtual
void
releaseObject
(
const
T* p);
86
87
97
virtual
void
releaseObjectUntyped
(
const
void
* p);
98
};
99
100
101
}
// namespace D3PD
102
103
104
#include "
D3PDMakerUtils/ObjGetterTool.icc
"
105
106
107
#endif
// not D3PDMAKERUTILS_OBJGETTERTOOL_H
ObjGetterToolImpl.h
Non-template parts of ObjGetterTool.
ObjGetterTool.icc
D3PD::ObjGetterToolImpl::ObjGetterToolImpl
ObjGetterToolImpl(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
ObjGetterToolImpl.cxx:28
D3PD::ObjGetterTool::ObjGetterTool
ObjGetterTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
D3PD::ObjGetterTool::releaseObject
virtual void releaseObject(const T *p)
Release an object retrieved from the getter.
D3PD::ObjGetterTool::typeinfo
virtual const std::type_info & typeinfo() const
Return the type of object retrieved by this tool.
D3PD::ObjGetterTool::getUntyped
virtual const void * getUntyped(bool allowMissing=false)
Return the target object.
D3PD::ObjGetterTool::releaseObjectUntyped
virtual void releaseObjectUntyped(const void *p)
Release an object retrieved from the getter.
D3PD::ObjGetterTool::get
virtual const T * get(bool allowMissing=false)=0
Return the target object.
D3PD
Block filler tool for noisy FEB information.
Definition
CaloCellDetailsFillerTool.cxx:29
type
Generated on
for ATLAS Offline Software by
1.17.0