The Gaudi Framework
master (37c0b60a)
|
T is the concrete handle type, e.g. More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/GaudiHandle.h>
Public Types | |
typedef std::vector< T > | HandleVector |
typedef HandleVector::value_type | value_type |
typedef HandleVector::size_type | size_type |
typedef HandleVector::reference | reference |
typedef HandleVector::const_reference | const_reference |
typedef HandleVector::iterator | iterator |
typedef HandleVector::const_iterator | const_iterator |
typedef HandleVector::reverse_iterator | reverse_iterator |
typedef HandleVector::const_reverse_iterator | const_reverse_iterator |
Public Types inherited from GaudiHandleArrayBase | |
using | PropertyType = GaudiHandleArrayProperty |
typedef std::vector< GaudiHandleBase * > | BaseHandleArray |
typedef std::vector< const GaudiHandleBase * > | ConstBaseHandleArray |
Public Member Functions | |
GaudiHandleArray & | operator= (const std::vector< std::string > &myTypesAndNamesList) |
Set the array of GaudiHandles from typeAndNames given in vector of strings. More... | |
GaudiHandleArrayBase::BaseHandleArray | getBaseArray () override |
Get a read-write vector of GaudiHandleBase* pointing to the real handles. More... | |
GaudiHandleArrayBase::ConstBaseHandleArray | getBaseArray () const override |
Get a read-only vector of const GaudiHandleBase* pointing to the real handles. More... | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
const_iterator | rbegin () const |
const_iterator | rend () const |
size_type | size () const |
void | clear () override |
Clear the list of handles. More... | |
bool | empty () const override |
Return whether the list of tools is empty. More... | |
T & | operator[] (int index) |
const T & | operator[] (int index) const |
T * | operator[] (std::string_view name) |
Get pointer (!) to ToolHandle by instance name. More... | |
const T * | operator[] (std::string_view name) const |
Get const pointer (!) to ToolHandle by instance name. More... | |
virtual bool | push_back (const T &myHandle) |
StatusCode | retrieve () |
Retrieve all tools. More... | |
StatusCode | release () |
Release all tools. More... | |
virtual bool | retrieved () const override |
has Array been retreived? More... | |
virtual bool | push_back (const std::string &myHandleTypeAndName)=0 |
Add a handle with given type and name. More... | |
Public Member Functions inherited from GaudiHandleArrayBase | |
bool | setTypesAndNames (const std::vector< std::string > &myTypesAndNamesList) |
Set the array of handles from list of "type/name" strings in <myTypesAndNamesList>. More... | |
const std::vector< std::string > | typesAndNames () const |
Return a vector with "type/name" strings of all handles in the array. More... | |
const std::vector< std::string > | types () const |
Return a vector with "type" strings of all handles in the array. More... | |
const std::vector< std::string > | names () const |
Return a vector with "type/name" strings of all handles in the array. More... | |
const std::vector< std::string > | getBaseInfos (auto(GaudiHandleBase::*pMemFunc)() const) const |
Helper function to get a vector of strings filled with the return value of each tool of a member function if GaudiHandleBase. More... | |
std::string | pythonPropertyClassName () const override |
Name of the componentType with "HandleArray" appended. More... | |
std::string | pythonRepr () const override |
Python representation of array of handles, i.e. More... | |
virtual bool | push_back (const std::string &myHandleTypeAndName)=0 |
Add a handle to the array with "type/name" given in <myHandleTypeAndName>. More... | |
Public Member Functions inherited from GaudiHandleInfo | |
virtual | ~GaudiHandleInfo () |
virtual destructor so that derived class destructor is called. More... | |
const std::string & | componentType () const |
const std::string & | propertyName () const |
name as used in declareProperty(name,gaudiHandle) More... | |
void | setPropertyName (std::string propName) |
set name as used in declareProperty(name,gaudiHandle). More... | |
const std::string & | parentName () const |
The name of the parent. More... | |
Protected Member Functions | |
GaudiHandleArray (const std::vector< std::string > &myTypesAndNamesList, std::string myComponentType, std::string myParentName) | |
Generic constructor. More... | |
GaudiHandleArray (const std::string &myComponentType, const std::string &myParentName) | |
Constructor creating an empty array. More... | |
Protected Member Functions inherited from GaudiHandleArrayBase | |
GaudiHandleArrayBase (std::string myComponentType, std::string myParentName) | |
Protected Member Functions inherited from GaudiHandleInfo | |
GaudiHandleInfo (std::string myComponentType, std::string myParentName) | |
Some basic information and helper functions shared between various handles/arrays. More... | |
void | setComponentType (std::string componentType) |
The component type. More... | |
void | setParentName (std::string parent) |
The name of the parent. More... | |
Private Attributes | |
HandleVector | m_handleArray |
bool | m_retrieved { false } |
T is the concrete handle type, e.g.
Definition at line 411 of file GaudiHandle.h.
typedef HandleVector::const_iterator GaudiHandleArray< T >::const_iterator |
Definition at line 422 of file GaudiHandle.h.
typedef HandleVector::const_reference GaudiHandleArray< T >::const_reference |
Definition at line 420 of file GaudiHandle.h.
typedef HandleVector::const_reverse_iterator GaudiHandleArray< T >::const_reverse_iterator |
Definition at line 424 of file GaudiHandle.h.
typedef std::vector<T> GaudiHandleArray< T >::HandleVector |
Definition at line 416 of file GaudiHandle.h.
typedef HandleVector::iterator GaudiHandleArray< T >::iterator |
Definition at line 421 of file GaudiHandle.h.
typedef HandleVector::reference GaudiHandleArray< T >::reference |
Definition at line 419 of file GaudiHandle.h.
typedef HandleVector::reverse_iterator GaudiHandleArray< T >::reverse_iterator |
Definition at line 423 of file GaudiHandle.h.
typedef HandleVector::size_type GaudiHandleArray< T >::size_type |
Definition at line 418 of file GaudiHandle.h.
typedef HandleVector::value_type GaudiHandleArray< T >::value_type |
Definition at line 417 of file GaudiHandle.h.
|
inlineprotected |
Generic constructor.
Probably not very useful...
typesAndNamesList | : a vector of strings with the concrete "type/name" strings for the list of tools |
Definition at line 434 of file GaudiHandle.h.
|
inlineprotected |
Constructor creating an empty array.
typesAndNamesList | : a vector of strings with the concrete "type/name" strings for the list of tools |
Definition at line 444 of file GaudiHandle.h.
|
inline |
Definition at line 469 of file GaudiHandle.h.
|
inline |
Definition at line 473 of file GaudiHandle.h.
|
inlineoverridevirtual |
Clear the list of handles.
Implemented in GaudiHandleArray
Implements GaudiHandleArrayBase.
Definition at line 483 of file GaudiHandle.h.
|
inlineoverridevirtual |
Return whether the list of tools is empty.
Implements GaudiHandleArrayBase.
Definition at line 485 of file GaudiHandle.h.
|
inline |
Definition at line 471 of file GaudiHandle.h.
|
inline |
Definition at line 475 of file GaudiHandle.h.
|
inlineoverridevirtual |
Get a read-only vector of const GaudiHandleBase* pointing to the real handles.
Implemented in GaudiHandleArray.
Implements GaudiHandleArrayBase.
Definition at line 460 of file GaudiHandle.h.
|
inlineoverridevirtual |
Get a read-write vector of GaudiHandleBase* pointing to the real handles.
Implemented in GaudiHandleArray.
Implements GaudiHandleArrayBase.
Definition at line 454 of file GaudiHandle.h.
|
inline |
Set the array of GaudiHandles from typeAndNames given in vector of strings.
Definition at line 449 of file GaudiHandle.h.
|
inline |
Definition at line 487 of file GaudiHandle.h.
|
inline |
Definition at line 489 of file GaudiHandle.h.
|
inline |
Get pointer (!) to ToolHandle by instance name.
Returns zero pointer if not found
Definition at line 492 of file GaudiHandle.h.
|
inline |
Get const pointer (!) to ToolHandle by instance name.
Returns zero pointer if not found
Definition at line 498 of file GaudiHandle.h.
virtual bool GaudiHandleArrayBase::push_back |
Add a handle with given type and name.
Can be overridden in derived class. Return whether addition was successful or not.
|
inlinevirtual |
Reimplemented in ToolHandleArray< T >, ToolHandleArray< IThreadInitTool >, ToolHandleArray< IMyTool >, and ServiceHandleArray< T >.
Definition at line 506 of file GaudiHandle.h.
|
inline |
Definition at line 477 of file GaudiHandle.h.
|
inline |
|
inline |
Definition at line 479 of file GaudiHandle.h.
|
inline |
|
inlineoverridevirtual |
has Array been retreived?
Implements GaudiHandleArrayBase.
Definition at line 536 of file GaudiHandle.h.
|
inline |
Definition at line 481 of file GaudiHandle.h.
|
private |
Definition at line 542 of file GaudiHandle.h.
|
private |
Definition at line 543 of file GaudiHandle.h.