![]() |
ATLAS Offline Software
|
Getter tool to retrieve an INav4MomLinkContainer from SG.
More...
#include <INav4MomLinkContainerGetterTool.h>
Public Member Functions | |
| INav4MomLinkContainerGetterTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| Standard Gaudi tool constructor. More... | |
| virtual StatusCode | initialize () |
| Standard Gaudi initialize method. More... | |
| virtual const std::type_info & | typeinfo () const |
| Return the type of object retrieved by this tool. More... | |
| virtual const std::type_info & | typeinfo () const |
| Return the type of object retrieved by this tool. More... | |
| virtual const void * | getUntyped (bool allowMissing=false) |
| Return the target object. More... | |
| virtual const INav4MomLinkContainer * | get (bool allowMissing=false) |
Type-safe wrapper for get. More... | |
| CLID | clid () const |
| Return the class ID being read by this tool. More... | |
| DeclareInterfaceID (IObjGetterTool, 1, 0) | |
| Gaudi interface definition. More... | |
| virtual void | releaseObjectUntyped (const void *p) |
| Release an object retrieved from the getter. More... | |
| virtual void | releaseObjectUntyped (const void *p) |
| Release an object retrieved from the getter. More... | |
| template<class T > | |
| void | releaseObject (const T *p) |
Type-safe wrapper for releaseObjectUntyped. More... | |
| virtual void | releaseObject (const INav4MomLinkContainer *p) |
| Release an object retrieved from the getter. More... | |
| template<class T > | |
| StatusCode | configureD3PD () |
| Test type compatibility. More... | |
| virtual const void * | getTypeinfo (const std::type_info &ti, bool allowMissing=false)=0 |
| Return the target object cast to a different pointer type. More... | |
| void | releaseObjectTypeinfo (const void *p, const std::type_info &ti) |
| Release an object retrieved from the getter. More... | |
| virtual StatusCode | configureTypeinfo (const std::type_info &ti)=0 |
| Test type compatibility. More... | |
| virtual const std::type_info & | elementTypeinfo () const |
| Return the element type of the collection. More... | |
| virtual StatusCode | reset (bool allowMissing=false) |
| Reset the iteration to the start of the collection. More... | |
| virtual const void * | nextUntyped () |
| Return a pointer to the next element in the collection. More... | |
| virtual size_t | sizeHint (bool allowMissing=false) |
| Return an estimate of the number of elements in the iteration. More... | |
| CollectionGetterToolImpl (const std::string &type, const std::string &name, const IInterface *parent) | |
| Standard Gaudi tool constructor. More... | |
| const void * | nextTypeinfo (const std::type_info &ti) |
| Return the next object cast to a different pointer type. More... | |
| StatusCode | configureElementTypeinfo (const std::type_info &ti) |
| Test type compatibility. More... | |
| void | releaseElementTypeinfo (const void *p, const std::type_info &ti) |
| Release an element retrieved from the getter. More... | |
Protected Member Functions | |
| StatusCode | initializeImpl () |
| Initialize this mixin class. More... | |
Protected Attributes | |
| std::string | m_typename |
| Property: Name of the type of the object being retrieved. More... | |
| std::string | m_sgkey |
| Property: StoreGate key of the object being retrieved. More... | |
| ServiceHandle< IClassIDSvc > | m_clidsvc |
| Property: Instance of the ClassIDSvc to use. More... | |
| SGKeyResolver | m_resolver |
| Helper: Resolve the SG key to use. More... | |
Private Attributes | |
| CLID | m_clid |
| CLID for the object being retrieved. More... | |
| ServiceHandle< StoreGateSvc > & | m_sg |
| The event storage service. More... | |
| CONT::const_iterator | m_it |
| The current iterator. More... | |
| CONT::const_iterator | m_end |
| The iterator at the end of the container. More... | |
| std::string | m_label |
| Property: label to assign to this getter (or null). More... | |
| ToolHandle< ICollectionGetterRegistryTool > | m_registry |
| The collection getter registry tool. More... | |
| TypeConverter | m_converter |
| Helper to convert pointers. More... | |
| TypeConverter | m_backConverter |
Helper to convert pointers back, for releaseElement. More... | |
Getter tool to retrieve an INav4MomLinkContainer from SG.
INav4MomLinkContainer is not a DataVector, so we can't use the generic tool.
Properties: SGKey - StoreGate key of the object being retrieved. Can also be a comma or space-separated list. In that case, the first key that actually exists in the data store will be used. ClassIDSvc - ClassIDSvc instance to use.
Definition at line 40 of file INav4MomLinkContainerGetterTool.h.
| D3PD::INav4MomLinkContainerGetterTool::INav4MomLinkContainerGetterTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent | ||
| ) |
Standard Gaudi tool constructor.
| type | The name of the tool type. |
| name | The tool name. |
| parent | The tool's Gaudi parent. |
Definition at line 27 of file INav4MomLinkContainerGetterTool.cxx.
|
inherited |
Return the class ID being read by this tool.
Definition at line 54 of file SGGetterImpl.cxx.
|
inherited |
Standard Gaudi tool constructor.
| type | The name of the tool type. |
| name | The tool name. |
| parent | The tool's Gaudi parent. |
Definition at line 45 of file CollectionGetterToolImpl.cxx.
|
inherited |
|
inherited |
Test type compatibility.
| ti | The desired type. |
Test to see if the object being returned by the tool can be converted to a pointer to T. This can be used to perform type checks during job initialization.
Definition at line 146 of file CollectionGetterToolImpl.cxx.
|
pure virtualinherited |
|
inherited |
Gaudi interface definition.
|
virtualinherited |
Return the element type of the collection.
I.e., nextUntyped returns a pointer to this type.
|
virtualinherited |
Type-safe wrapper for get.
| allowMissing | If true, then we should not generate errors if the requested object is missing. |
Return the object as a pointer to T. Return 0 if the get fails or if the pointer can't be converted.
Implements D3PD::CollectionGetterTool< INav4MomLinkContainer >.
|
pure virtualinherited |
Return the target object cast to a different pointer type.
| ti | The desired type. |
| allowMissing | If true, then we should not generate errors if the requested object is missing. |
Return the object as a pointer to the ti type. Return 0 if the get fails or if the pointer can't be converted.
|
virtualinherited |
Return the target object.
| allowMissing | If true, then we should not generate errors if the requested object is missing. |
Should be of the type given by typeinfo. Return 0 on failure.
Reimplemented from D3PD::SGGetterImpl.
|
virtual |
Standard Gaudi initialize method.
Reimplemented from D3PD::SGCollectionGetterTool< INav4MomLinkContainer >.
Definition at line 40 of file INav4MomLinkContainerGetterTool.cxx.
|
protectedinherited |
Initialize this mixin class.
Call this from initialize.
Definition at line 105 of file SGGetterImpl.cxx.
Return the next object cast to a different pointer type.
Return the next element from the collection as a pointer to the ti type. Return 0 if the pointer can't be converted or at the end of the iteration.
Definition at line 68 of file CollectionGetterToolImpl.cxx.
|
virtualinherited |
Return a pointer to the next element in the collection.
Return 0 when the collection has been exhausted.
|
inherited |
Release an element retrieved from the getter.
| p | The element to release. |
| ti | The type of p. |
Call this when you are done with the element returned by nextUntyped(). The default implementation is a no-op, but if the getter dynamically allocated the object which it returned, this gives it a chance to free it.
Definition at line 104 of file CollectionGetterToolImpl.cxx.
|
virtualinherited |
Release an object retrieved from the getter.
| p | The object to release. |
Call this when you are done with the object returned by get(). The default implementation is a no-op, but if the getter dynamically allocated the object which it returned, this gives it a chance to free it.
|
inherited |
Type-safe wrapper for releaseObjectUntyped.
| p | The object to release. |
Call this when you are done with the object returned by get(). The default implementation is a no-op, but if the getter dynamically allocated the object which it returned, this gives it a chance to free it.
This is implemented in terms of releaseObjectTypeinfo().
|
inherited |
Release an object retrieved from the getter.
| p | The object to release. |
| ti | The type of p. |
Call this when you are done with the object returned by getUntyped(). The default implementation is a no-op, but if the getter dynamically allocated the object which it returned, this gives it a chance to free it.
|
virtualinherited |
Release an object retrieved from the getter.
| p | The object to release. |
Call this when you are done with the object returned by getUntyped(). The default implementation is a no-op, but if the getter dynamically allocated the object which it returned, this gives it a chance to free it.
|
virtualinherited |
Release an object retrieved from the getter.
| p | The object to release. |
Call this when you are done with the object returned by getUntyped(). The default implementation is a no-op, but if the getter dynamically allocated the object which it returned, this gives it a chance to free it.
|
virtualinherited |
Reset the iteration to the start of the collection.
| allowMissing | If true, then we should not generate errors if the requested object is missing. |
Return failure if the container cannot be retrieved.
|
virtualinherited |
Return an estimate of the number of elements in the iteration.
| allowMissing | If true, then we should not generate errors if the requested object is missing. |
This can be used to pre-allocate memory. (It's possible that this isn't known in advance of iterating over the entire collection, for example if a selection is being applied, so this is only a hint.)
|
virtualinherited |
Return the type of object retrieved by this tool.
Reimplemented from D3PD::CollectionGetterTool< INav4MomLinkContainer >.
|
virtualinherited |
Return the type of object retrieved by this tool.
Implements D3PD::IObjGetterTool.
Reimplemented in D3PD::SGCollectionGetterTool< CONT >, D3PD::SGTileDigitsGetterTool, D3PD::SGTileHitGetterTool, D3PD::SGTileModuleBitsGetterTool, and D3PD::SGTileRawChannelGetterTool.
Definition at line 39 of file SGGetterImpl.cxx.
|
privateinherited |
Helper to convert pointers back, for releaseElement.
Definition at line 106 of file CollectionGetterToolImpl.h.
|
privateinherited |
CLID for the object being retrieved.
Definition at line 126 of file SGGetterImpl.h.
|
protectedinherited |
Property: Instance of the ClassIDSvc to use.
Definition at line 119 of file SGGetterImpl.h.
|
privateinherited |
Helper to convert pointers.
Definition at line 103 of file CollectionGetterToolImpl.h.
|
privateinherited |
The iterator at the end of the container.
Definition at line 143 of file CollectionGetterTool.h.
|
privateinherited |
The current iterator.
Definition at line 140 of file CollectionGetterTool.h.
|
privateinherited |
Property: label to assign to this getter (or null).
Definition at line 97 of file CollectionGetterToolImpl.h.
|
privateinherited |
The collection getter registry tool.
Definition at line 100 of file CollectionGetterToolImpl.h.
|
protectedinherited |
Helper: Resolve the SG key to use.
Definition at line 122 of file SGGetterImpl.h.
|
privateinherited |
The event storage service.
Definition at line 129 of file SGGetterImpl.h.
|
protectedinherited |
Property: StoreGate key of the object being retrieved.
Definition at line 116 of file SGGetterImpl.h.
|
protectedinherited |
Property: Name of the type of the object being retrieved.
Definition at line 113 of file SGGetterImpl.h.
1.8.18