The Gaudi Framework  master (42b00024)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GaudiHandle.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIKERNEL_GAUDIHANDLE_H
12 #define GAUDIKERNEL_GAUDIHANDLE_H
13 
14 // Includes
15 #include <Gaudi/Property.h>
17 #include <GaudiKernel/IInterface.h>
18 #include <GaudiKernel/System.h>
19 
20 #include <algorithm>
21 #include <iostream>
22 #include <string>
23 #include <type_traits>
24 #include <vector>
25 
26 namespace details {
28  template <class T>
29  std::remove_const_t<T>* nonConst( T* p ) {
30  return const_cast<std::remove_const_t<T>*>( p );
31  }
32 } // namespace details
33 
35 protected:
44  GaudiHandleInfo( std::string myComponentType, std::string myParentName )
45  : m_componentType( std::move( myComponentType ) ), m_parentName( std::move( myParentName ) ) {}
46 
47 public:
49  // Don't use =default here. Otherwise, in c++20 mode, clang will
50  // instantiate the handle virtual functions early, breaking the case
51  // where handles are used with a forward-declared class.
52  virtual ~GaudiHandleInfo() {}
53  //
54  // Public member functions
55  //
56  const std::string& componentType() const { return m_componentType; }
57 
59  const std::string& propertyName() const { return m_propertyName; }
60 
62  void setPropertyName( std::string propName ) { m_propertyName = std::move( propName ); }
63 
65  const std::string& parentName() const { return m_parentName; }
66 
70  virtual std::string pythonPropertyClassName() const = 0;
71 
76  virtual std::string pythonRepr() const = 0;
77 
78  // Easy printing out of Handles and HandleArrays
79  // It prints <propertyName> = <HandleType>( <HandleType(s)AndName(s)> )
80  friend std::ostream& operator<<( std::ostream& os, const GaudiHandleInfo& handle );
81 
82 protected:
84  void setComponentType( std::string componentType ) { m_componentType = std::move( componentType ); }
85 
87  void setParentName( std::string parent ) { m_parentName = std::move( parent ); }
88 
89 private:
90  //
91  // Data members
92  //
93  std::string m_componentType; // e.g.: "PublicTool","PrivateTool","Service"
94  std::string m_propertyName; // name as used in declareProperty(name,gaudiHandle)
95  std::string m_parentName; // name of the parent having this handle as a member
96 };
97 
106  //
107  // Ctors etc
108  //
109 protected:
121  GaudiHandleBase( std::string myTypeAndName, std::string myComponentType, std::string myParentName )
122  : GaudiHandleInfo( std::move( myComponentType ), std::move( myParentName ) ) {
123  setTypeAndName( std::move( myTypeAndName ) );
124  }
125 
126 public:
127  //
128  // Public member functions
129  //
131  const std::string& typeAndName() const { return m_typeAndName; }
132 
134  std::string type() const;
135 
137  std::string name() const;
138 
140  bool empty() const { return m_typeAndName.empty(); }
141 
143  void setTypeAndName( std::string myTypeAndName );
144 
146  void setName( std::string_view myName );
147 
151  std::string pythonPropertyClassName() const override;
152 
154  std::string messageName() const;
155 
159  std::string pythonRepr() const override;
160 
162 
163 private:
164  //
165  // Data member
166  //
167  std::string m_typeAndName; // the full type and name: "type/name"
168 };
169 
178 template <class T>
180  //
181  // Constructors etc.
182  //
183 protected:
184  GaudiHandle( std::string myTypeAndName, std::string myComponentType, std::string myParentName )
185  : GaudiHandleBase( std::move( myTypeAndName ), std::move( myComponentType ), std::move( myParentName ) ) {}
186 
187 public:
189  template <typename CT = T, typename NCT = std::remove_const_t<T>>
191  requires( std::is_const_v<CT> && !std::is_same_v<CT, NCT> )
192  : GaudiHandleBase( other ), m_pObject( other.get() ) {
193  if ( m_pObject ) ::details::nonConst( m_pObject.load() )->addRef();
194  }
195 
197  GaudiHandle( const GaudiHandle& other ) : GaudiHandleBase( other ), m_pObject( other.m_pObject.load() ) {
198  if ( m_pObject ) ::details::nonConst( m_pObject.load() )->addRef();
199  }
200 
202  template <typename CT = T, typename NCT = std::remove_const_t<T>>
203  requires( std::is_const_v<CT> && !std::is_same_v<CT, NCT> )
204  GaudiHandle& operator=( const GaudiHandle<NCT>& other ) {
205  GaudiHandleBase::operator=( other );
206  // release any current tool
207  release().ignore();
208  m_pObject = other.get();
209  // update ref-counting
210  if ( m_pObject ) ::details::nonConst( m_pObject.load() )->addRef();
211  return *this;
212  }
213 
215  GaudiHandle& operator=( const GaudiHandle& other ) {
216  GaudiHandleBase::operator=( other );
217  // release any current tool
218  release().ignore();
219  m_pObject = other.m_pObject.load();
220  // update ref-counting
221  if ( m_pObject ) ::details::nonConst( m_pObject.load() )->addRef();
222  return *this;
223  }
224 
226  StatusCode retrieve() const {
227  // not really const, because it updates m_pObject
228  // Do the lookup into a temporary pointer.
229  T* p = nullptr;
230  if ( retrieve( p ).isFailure() ) { return StatusCode::FAILURE; }
231 
232  // If m_pObject is null, then copy p to m_pObject.
233  // Otherwise, release p.
234  T* old = nullptr;
235  if ( m_pObject.compare_exchange_strong( old, p ) ) { return StatusCode::SUCCESS; }
236  return release( p );
237  }
238 
240  StatusCode release() const {
241  // not really const, because it updates m_pObject
243  if ( m_pObject ) {
244  sc = release( m_pObject );
245  m_pObject = nullptr;
246  }
247  return sc;
248  }
249 
251  bool isValid() const {
252  // not really const, because it may update m_pObject
253  return m_pObject || retrieve().isSuccess();
254  }
255 
258  operator bool() const {
259  // not really const, because it may update m_pObject
260  return isValid();
261  }
262 
264  T* get() { return m_pObject; }
265 
267  std::add_const_t<T>* get() const { return m_pObject; }
268 
270  bool isSet() const { return get(); }
271 
272  T& operator*() {
273  assertObject();
274  return *m_pObject;
275  }
276 
277  T* operator->() {
278  assertObject();
279  return m_pObject;
280  }
281 
282  std::add_const_t<T>& operator*() const {
283  // not really const, because it may update m_pObject
284  assertObject();
285  return *m_pObject;
286  }
287 
288  std::add_const_t<T>* operator->() const {
289  // not really const, because it may update m_pObject
290  assertObject();
291  return m_pObject;
292  }
293 
295  std::string getDefaultType() { return System::typeinfoName( typeid( T ) ); }
296 
297  std::string getDefaultName() {
298  const auto defName = GaudiHandleBase::type();
299  return ( defName.empty() ? getDefaultType() : defName );
300  }
301 
302 protected:
304  virtual StatusCode retrieve( T*& ) const = 0; // not really const, because it updates m_pObject
305 
308  virtual StatusCode release( T* comp ) const { // not really const, because it updates m_pObject
309  // const cast to support T being a const type
310  ::details::nonConst( comp )->release();
311  return StatusCode::SUCCESS;
312  }
313 
314 private:
317  void assertObject() const { // not really const, because it may update m_pObject
318  if ( !isValid() ) {
319  throw GaudiException( "Failed to retrieve " + componentType() + ": " + typeAndName(),
320  componentType() + " retrieve", StatusCode::FAILURE );
321  }
322  }
323 
324 private:
325  //
326  // Data members
327  //
328  mutable std::atomic<T*> m_pObject = nullptr;
329 };
330 
338 protected:
339  GaudiHandleArrayBase( std::string myComponentType, std::string myParentName )
340  : GaudiHandleInfo( std::move( myComponentType ), std::move( myParentName ) ) {}
341 
342 public:
344  typedef std::vector<GaudiHandleBase*> BaseHandleArray;
345  typedef std::vector<const GaudiHandleBase*> ConstBaseHandleArray;
346 
349  bool setTypesAndNames( const std::vector<std::string>& myTypesAndNamesList );
350 
353  const std::vector<std::string> typesAndNames() const;
354 
356  const std::vector<std::string> types() const;
357 
359  const std::vector<std::string> names() const;
360 
363  const std::vector<std::string> getBaseInfos( auto ( GaudiHandleBase::*pMemFunc )() const ) const;
364 
368  std::string pythonPropertyClassName() const override;
369 
373  std::string pythonRepr() const override;
374 
378  virtual bool push_back( const std::string& myHandleTypeAndName ) = 0;
379 
381  virtual void clear() = 0;
382 
384  virtual bool empty() const = 0;
385 
388  virtual ConstBaseHandleArray getBaseArray() const = 0;
389 
393 
395  virtual bool retrieved() const = 0;
396 };
397 
399 template <class T>
401 public:
402  //
403  // public nested types
404  //
405  typedef std::vector<T> HandleVector;
406  typedef typename HandleVector::value_type value_type;
407  typedef typename HandleVector::size_type size_type;
409  typedef typename HandleVector::const_reference const_reference;
410  typedef typename HandleVector::iterator iterator;
411  typedef typename HandleVector::const_iterator const_iterator;
412  typedef typename HandleVector::reverse_iterator reverse_iterator;
413  typedef typename HandleVector::const_reverse_iterator const_reverse_iterator;
414 
415 protected:
416  //
417  // Constructors
418  //
423  GaudiHandleArray( const std::vector<std::string>& myTypesAndNamesList, std::string myComponentType,
424  std::string myParentName )
425  : GaudiHandleArrayBase( std::move( myComponentType ), std::move( myParentName ) ) {
426  setTypesAndNames( myTypesAndNamesList );
427  }
428 
433  GaudiHandleArray( const std::string& myComponentType, const std::string& myParentName )
434  : GaudiHandleArrayBase( myComponentType, myParentName ) {}
435 
436 public:
438  GaudiHandleArray& operator=( const std::vector<std::string>& myTypesAndNamesList ) {
439  setTypesAndNames( myTypesAndNamesList );
440  return *this;
441  }
442 
445  for ( auto& h : m_handleArray ) baseArray.push_back( &h );
446  return baseArray;
447  }
448 
451  for ( auto& h : m_handleArray ) baseArray.push_back( &h );
452  return baseArray;
453  }
454 
455  //
456  // Simulate (part of) an std::vector
457  //
458  iterator begin() { return m_handleArray.begin(); }
459 
460  iterator end() { return m_handleArray.end(); }
461 
462  const_iterator begin() const { return m_handleArray.begin(); }
463 
464  const_iterator end() const { return m_handleArray.end(); }
465 
466  const_iterator rbegin() const { return m_handleArray.rbegin(); }
467 
468  const_iterator rend() const { return m_handleArray.rend(); }
469 
470  size_type size() const { return m_handleArray.size(); }
471 
472  void clear() override { m_handleArray.clear(); }
473 
474  bool empty() const override { return m_handleArray.empty(); }
475 
476  T& operator[]( int index ) { return m_handleArray[index]; }
477 
478  const T& operator[]( int index ) const { return m_handleArray[index]; }
479 
481  T* operator[]( std::string_view name ) {
482  auto it = std::find_if( begin(), end(), [&]( const_reference r ) { return r.name() == name; } );
483  return it != end() ? &*it : nullptr;
484  }
485 
487  const T* operator[]( std::string_view name ) const {
488  auto it = std::find_if( begin(), end(), [&]( const_reference r ) { return r.name() == name; } );
489  return it != end() ? &*it : nullptr;
490  }
491 
494  using GaudiHandleArrayBase::push_back; // avoid compiler warning
495  virtual bool push_back( const T& myHandle ) {
496  m_handleArray.push_back( myHandle );
497  return true;
498  }
499 
503  for ( auto& i : *this ) {
504  // stop at first failure
505  if ( i.retrieve().isFailure() ) {
506  sc = StatusCode::FAILURE;
507  break;
508  }
509  }
510  if ( sc ) { m_retrieved = true; }
511  return sc;
512  }
513 
517  for ( auto& i : *this ) {
518  // continue trying to release other tools even if we fail...
519  if ( i.release().isFailure() ) sc = StatusCode::FAILURE;
520  }
521  return sc;
522  }
523 
525  virtual bool retrieved() const override { return m_retrieved; }
526 
527 private:
528  //
529  // Private data members
530  //
532  bool m_retrieved{ false };
533 };
534 
535 #endif // ! GAUDIKERNEL_GAUDIHANDLE_H
GaudiHandleArray::operator[]
T * operator[](std::string_view name)
Get pointer (!) to ToolHandle by instance name.
Definition: GaudiHandle.h:481
GaudiHandleInfo::parentName
const std::string & parentName() const
The name of the parent.
Definition: GaudiHandle.h:65
GaudiHandleArray::begin
const_iterator begin() const
Definition: GaudiHandle.h:462
GaudiHandleArray::size
size_type size() const
Definition: GaudiHandle.h:470
Gaudi::Accumulators::operator*
auto operator*(const std::chrono::duration< Rep1, Period > &lhs, const std::chrono::duration< Rep2, Period > &rhs)
Multiplication of two std::chrono::duration objects with same Period.
Definition: Counters.h:40
GaudiHandleArray::operator[]
const T & operator[](int index) const
Definition: GaudiHandle.h:478
StatusCode::isSuccess
bool isSuccess() const
Definition: StatusCode.h:315
GaudiPartProp.decorators.std
std
Definition: decorators.py:32
GaudiPython.Bindings.GaudiHandleArrayProperty
GaudiHandleArrayProperty
Definition: Bindings.py:81
System.h
GaudiHandleArray::retrieve
StatusCode retrieve()
Retrieve all tools.
Definition: GaudiHandle.h:501
GaudiException.h
GaudiHandleArray::push_back
virtual bool push_back(const T &myHandle)
Definition: GaudiHandle.h:495
GaudiPython.Bindings.GaudiHandleProperty
GaudiHandleProperty
Definition: Bindings.py:80
GaudiException
Definition: GaudiException.h:32
GaudiPartProp.decorators.get
get
decorate the vector of properties
Definition: decorators.py:283
GaudiHandleArray::empty
bool empty() const override
Return whether the list of tools is empty.
Definition: GaudiHandle.h:474
conf.release
string release
Definition: conf.py:27
GaudiHandleBase::empty
bool empty() const
Check if the handle has been set to empty string (i.e.
Definition: GaudiHandle.h:140
ProduceConsume.types
types
Definition: ProduceConsume.py:59
System::typeinfoName
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Definition: System.cpp:315
GaudiHandleInfo::componentType
const std::string & componentType() const
Definition: GaudiHandle.h:56
GaudiHandleArrayBase::ConstBaseHandleArray
std::vector< const GaudiHandleBase * > ConstBaseHandleArray
Definition: GaudiHandle.h:345
GaudiHandle::GaudiHandle
GaudiHandle(const GaudiHandle< NCT > &other) requires(std
Copy constructor needed for correct ref-counting.
Definition: GaudiHandle.h:190
Gaudi::Functional::details::detail2::requires
requires requires
Definition: details.h:433
GaudiHandle::GaudiHandle
GaudiHandle(std::string myTypeAndName, std::string myComponentType, std::string myParentName)
Definition: GaudiHandle.h:184
GaudiHandleInfo::setParentName
void setParentName(std::string parent)
The name of the parent.
Definition: GaudiHandle.h:87
GaudiHandleArray::operator[]
T & operator[](int index)
Definition: GaudiHandle.h:476
GaudiHandleArray::release
StatusCode release()
Release all tools.
Definition: GaudiHandle.h:515
GaudiHandleArray::end
iterator end()
Definition: GaudiHandle.h:460
GaudiHandleBase
Definition: GaudiHandle.h:105
GaudiHandle
Definition: GaudiHandle.h:179
GaudiHandleArray::GaudiHandleArray
GaudiHandleArray(const std::vector< std::string > &myTypesAndNamesList, std::string myComponentType, std::string myParentName)
Generic constructor.
Definition: GaudiHandle.h:423
GaudiHandleInfo::m_parentName
std::string m_parentName
Definition: GaudiHandle.h:95
GaudiHandleArray::getBaseArray
GaudiHandleArrayBase::BaseHandleArray getBaseArray() override
Get a read-write vector of GaudiHandleBase* pointing to the real handles.
Definition: GaudiHandle.h:443
GaudiHandleArray::reference
HandleVector::reference reference
Definition: GaudiHandle.h:408
GaudiHandleArray::rend
const_iterator rend() const
Definition: GaudiHandle.h:468
GaudiHandleArray::end
const_iterator end() const
Definition: GaudiHandle.h:464
GaudiHandleArray::HandleVector
std::vector< T > HandleVector
Definition: GaudiHandle.h:405
GaudiHandle::release
virtual StatusCode release(T *comp) const
Release the component.
Definition: GaudiHandle.h:308
Gaudi::Utils::begin
AttribStringParser::Iterator begin(const AttribStringParser &parser)
Definition: AttribStringParser.h:136
GaudiHandleArray::const_iterator
HandleVector::const_iterator const_iterator
Definition: GaudiHandle.h:411
details::nonConst
std::remove_const_t< T > * nonConst(T *p)
Cast a pointer to a non const type.
Definition: GaudiHandle.h:29
StatusCode
Definition: StatusCode.h:65
IInterface.h
details
Definition: AnyDataWrapper.h:19
GaudiHandle::GaudiHandle
GaudiHandle(const GaudiHandle &other)
Copy constructor needed for correct ref-counting.
Definition: GaudiHandle.h:197
Gaudi::Parsers::operator<<
std::ostream & operator<<(std::ostream &o, const Catalog &c)
printout operator
Definition: Catalog.h:67
GaudiHandleBase::m_typeAndName
std::string m_typeAndName
Definition: GaudiHandle.h:167
GaudiHandleInfo::propertyName
const std::string & propertyName() const
name as used in declareProperty(name,gaudiHandle)
Definition: GaudiHandle.h:59
AlgSequencer.h
h
Definition: AlgSequencer.py:31
GaudiHandleInfo::m_propertyName
std::string m_propertyName
Definition: GaudiHandle.h:94
GaudiHandleArray::size_type
HandleVector::size_type size_type
Definition: GaudiHandle.h:407
GaudiHandleArray::GaudiHandleArray
GaudiHandleArray(const std::string &myComponentType, const std::string &myParentName)
Constructor creating an empty array.
Definition: GaudiHandle.h:433
GaudiHandle::m_pObject
std::atomic< T * > m_pObject
Definition: GaudiHandle.h:328
GaudiHandleArrayBase::clear
virtual void clear()=0
Clear the list of handles.
GaudiHandleArray::operator=
GaudiHandleArray & operator=(const std::vector< std::string > &myTypesAndNamesList)
Set the array of GaudiHandles from typeAndNames given in vector of strings.
Definition: GaudiHandle.h:438
GaudiHandleArrayBase::retrieved
virtual bool retrieved() const =0
To be able to tell if Array was ever retreived.
GaudiHandleArrayBase::getBaseArray
virtual ConstBaseHandleArray getBaseArray() const =0
Get a read-only vector of const GaudiHandleBase* pointing to the real handles.
GaudiHandleArray::clear
void clear() override
Clear the list of handles.
Definition: GaudiHandle.h:472
GaudiHandleArray::retrieved
virtual bool retrieved() const override
has Array been retreived?
Definition: GaudiHandle.h:525
GaudiHandleArrayBase
Base class of array's of various gaudihandles.
Definition: GaudiHandle.h:337
GaudiHandleProperty
Definition: Property.h:576
GaudiHandle::requires
requires(std::is_const_v< CT > &&!std::is_same_v< CT, NCT >) GaudiHandle &operator
Assignment operator for correct ref-counting.
GaudiHandleInfo::GaudiHandleInfo
GaudiHandleInfo(std::string myComponentType, std::string myParentName)
Some basic information and helper functions shared between various handles/arrays.
Definition: GaudiHandle.h:44
GaudiHandleArrayBase::setTypesAndNames
bool setTypesAndNames(const std::vector< std::string > &myTypesAndNamesList)
Set the array of handles from list of "type/name" strings in <myTypesAndNamesList>.
Definition: GaudiHandle.cpp:63
GaudiHandleInfo::~GaudiHandleInfo
virtual ~GaudiHandleInfo()
virtual destructor so that derived class destructor is called.
Definition: GaudiHandle.h:52
GaudiHandleArray::const_reference
HandleVector::const_reference const_reference
Definition: GaudiHandle.h:409
GaudiHandleBase::type
std::string type() const
The concrete component class name: the part before the '/'.
Definition: GaudiHandle.cpp:21
gaudirun.type
type
Definition: gaudirun.py:160
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
ConditionsStallTest.name
name
Definition: ConditionsStallTest.py:77
GaudiHandleArray::m_handleArray
HandleVector m_handleArray
Definition: GaudiHandle.h:531
GaudiHandleArrayBase::BaseHandleArray
std::vector< GaudiHandleBase * > BaseHandleArray
Definition: GaudiHandle.h:344
GaudiHandleArrayBase::push_back
virtual bool push_back(const std::string &myHandleTypeAndName)=0
Add a handle to the array with "type/name" given in <myHandleTypeAndName>.
GaudiHandleInfo::pythonPropertyClassName
virtual std::string pythonPropertyClassName() const =0
The python class name for the property in the genconf-generated configurables.
GaudiHandleArray::reverse_iterator
HandleVector::reverse_iterator reverse_iterator
Definition: GaudiHandle.h:412
GaudiHandleInfo::setComponentType
void setComponentType(std::string componentType)
The component type.
Definition: GaudiHandle.h:84
fixtures.reference
Generator[dict, None, None] reference(request, Optional[Path] reference_path)
Definition: fixtures.py:211
GaudiHandleInfo
Definition: GaudiHandle.h:34
GaudiHandleBase::typeAndName
const std::string & typeAndName() const
The full type and name: "type/name".
Definition: GaudiHandle.h:131
GaudiHandleBase::GaudiHandleBase
GaudiHandleBase(std::string myTypeAndName, std::string myComponentType, std::string myParentName)
Create a handle ('smart pointer') to a gaudi component.
Definition: GaudiHandle.h:121
GaudiHandleArrayBase::GaudiHandleArrayBase
GaudiHandleArrayBase(std::string myComponentType, std::string myParentName)
Definition: GaudiHandle.h:339
GaudiHandleArray::iterator
HandleVector::iterator iterator
Definition: GaudiHandle.h:410
GaudiHandleArray::begin
iterator begin()
Definition: GaudiHandle.h:458
GaudiHandleArrayBase::getBaseArray
virtual BaseHandleArray getBaseArray()=0
Get a read-write vector of GaudiHandleBase* pointing to the real handles.
GaudiHandleArray::operator[]
const T * operator[](std::string_view name) const
Get const pointer (!) to ToolHandle by instance name.
Definition: GaudiHandle.h:487
GaudiHandleArray::const_reverse_iterator
HandleVector::const_reverse_iterator const_reverse_iterator
Definition: GaudiHandle.h:413
GaudiHandleArray::rbegin
const_iterator rbegin() const
Definition: GaudiHandle.h:466
IOTest.end
end
Definition: IOTest.py:125
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101
GaudiHandleInfo::setPropertyName
void setPropertyName(std::string propName)
set name as used in declareProperty(name,gaudiHandle).
Definition: GaudiHandle.h:62
GaudiHandleInfo::m_componentType
std::string m_componentType
Definition: GaudiHandle.h:93
GaudiHandleInfo::pythonRepr
virtual std::string pythonRepr() const =0
Python representation of handle, i.e.
GaudiHandleArray::getBaseArray
GaudiHandleArrayBase::ConstBaseHandleArray getBaseArray() const override
Get a read-only vector of const GaudiHandleBase* pointing to the real handles.
Definition: GaudiHandle.h:449
GaudiHandleArray
T is the concrete handle type, e.g.
Definition: GaudiHandle.h:400
GaudiHandleArrayProperty
Definition: Property.h:613
GaudiHandle::assertObject
void assertObject() const
Load the pointer to the component.
Definition: GaudiHandle.h:317
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:84
GaudiHandleArray::value_type
HandleVector::value_type value_type
Definition: GaudiHandle.h:406
Property.h
Gaudi::ParticleProperties::index
size_t index(const Gaudi::ParticleProperty *property, const Gaudi::Interfaces::IParticlePropertySvc *service)
helper utility for mapping of Gaudi::ParticleProperty object into non-negative integral sequential id...
Definition: IParticlePropertySvc.cpp:39
GaudiHandleArrayBase::empty
virtual bool empty() const =0
Return whether the list of tools is empty.