The Gaudi Framework
v30r3 (a5ef0a68)
|
T is the concrete handle type, e.g. More...
#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 | |
virtual | ~GaudiHandleArray ()=default |
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[] (const std::string &name) |
Get pointer (!) to ToolHandle by instance name. More... | |
const T * | operator[] (const std::string &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... | |
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 (std::string(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 ()=default |
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 (const std::string &componentType) |
The component type. More... | |
void | setParentName (const 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.
ToolHandle<IMyTool>
Definition at line 420 of file GaudiHandle.h.
typedef HandleVector::const_iterator GaudiHandleArray< T >::const_iterator |
Definition at line 432 of file GaudiHandle.h.
typedef HandleVector::const_reference GaudiHandleArray< T >::const_reference |
Definition at line 430 of file GaudiHandle.h.
typedef HandleVector::const_reverse_iterator GaudiHandleArray< T >::const_reverse_iterator |
Definition at line 434 of file GaudiHandle.h.
typedef std::vector<T> GaudiHandleArray< T >::HandleVector |
Definition at line 426 of file GaudiHandle.h.
typedef HandleVector::iterator GaudiHandleArray< T >::iterator |
Definition at line 431 of file GaudiHandle.h.
typedef HandleVector::reference GaudiHandleArray< T >::reference |
Definition at line 429 of file GaudiHandle.h.
typedef HandleVector::reverse_iterator GaudiHandleArray< T >::reverse_iterator |
Definition at line 433 of file GaudiHandle.h.
typedef HandleVector::size_type GaudiHandleArray< T >::size_type |
Definition at line 428 of file GaudiHandle.h.
typedef HandleVector::value_type GaudiHandleArray< T >::value_type |
Definition at line 427 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 444 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 455 of file GaudiHandle.h.
|
virtualdefault |
|
inline |
Definition at line 489 of file GaudiHandle.h.
|
inline |
Definition at line 493 of file GaudiHandle.h.
|
inlineoverridevirtual |
Clear the list of handles.
Implemented in GaudiHandleArray
Implements GaudiHandleArrayBase.
Definition at line 503 of file GaudiHandle.h.
|
inlineoverridevirtual |
Return whether the list of tools is empty.
Implements GaudiHandleArrayBase.
Definition at line 505 of file GaudiHandle.h.
|
inline |
Definition at line 491 of file GaudiHandle.h.
|
inline |
Definition at line 495 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 470 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 478 of file GaudiHandle.h.
|
inline |
Set the array of GaudiHandles from typeAndNames given in vector of strings.
Definition at line 464 of file GaudiHandle.h.
|
inline |
Definition at line 507 of file GaudiHandle.h.
|
inline |
Definition at line 509 of file GaudiHandle.h.
|
inline |
Get pointer (!) to ToolHandle by instance name.
Returns zero pointer if not found
Definition at line 512 of file GaudiHandle.h.
|
inline |
Get const pointer (!) to ToolHandle by instance name.
Returns zero pointer if not found
Definition at line 519 of file GaudiHandle.h.
|
inlinevirtual |
Reimplemented in ToolHandleArray< T >, ToolHandleArray< IThreadInitTool >, and ServiceHandleArray< T >.
Definition at line 528 of file GaudiHandle.h.
|
inline |
Definition at line 497 of file GaudiHandle.h.
|
inline |
Release all tools.
Definition at line 552 of file GaudiHandle.h.
|
inline |
Definition at line 499 of file GaudiHandle.h.
|
inline |
Retrieve all tools.
Definition at line 535 of file GaudiHandle.h.
|
inlineoverridevirtual |
has Array been retreived?
Implements GaudiHandleArrayBase.
Definition at line 563 of file GaudiHandle.h.
|
inline |
Definition at line 501 of file GaudiHandle.h.
|
private |
Definition at line 569 of file GaudiHandle.h.
|
private |
Definition at line 570 of file GaudiHandle.h.