ATLAS Offline Software
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$
16 #ifndef D3PDMAKERUTILS_OBJGETTERTOOL_H
17 #define D3PDMAKERUTILS_OBJGETTERTOOL_H
18 
19 
21 
22 
23 namespace D3PD {
24 
25 
33 template <class T>
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 
105 
106 
107 #endif // not D3PDMAKERUTILS_OBJGETTERTOOL_H
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.
ObjGetterTool.icc
D3PD::ObjGetterTool
This is a type-safe wrapper for the IObjGetterTool interface.
Definition: ObjGetterTool.h:36
D3PD::ObjGetterTool::get
virtual const T * get(bool allowMissing=false)=0
Return the target object.
D3PD::ObjGetterToolImpl
Non-template parts of ObjGetterTool.
Definition: ObjGetterToolImpl.h:41
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
D3PD::ObjGetterTool::releaseObjectUntyped
virtual void releaseObjectUntyped(const void *p)
Release an object retrieved from the getter.
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ObjGetterToolImpl.h
Non-template parts of ObjGetterTool.
D3PD::ObjGetterTool::releaseObject
virtual void releaseObject(const T *p)
Release an object retrieved from the getter.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::ObjGetterTool::ObjGetterTool
ObjGetterTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.