|
ATLAS Offline Software
|
#include <SGTileDigitsGetterTool.h>
Definition at line 21 of file SGTileDigitsGetterTool.h.
◆ Base
◆ SGTileDigitsGetterTool()
D3PD::SGTileDigitsGetterTool::SGTileDigitsGetterTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~SGTileDigitsGetterTool()
D3PD::SGTileDigitsGetterTool::~SGTileDigitsGetterTool |
( |
| ) |
|
|
virtual |
◆ clid()
CLID D3PD::SGGetterImpl::clid |
( |
| ) |
const |
|
inherited |
Return the class ID being read by this tool.
Definition at line 54 of file SGGetterImpl.cxx.
◆ configureD3PD()
template<class T >
StatusCode D3PD::IObjGetterTool::configureD3PD |
( |
| ) |
|
|
inherited |
Test type compatibility.
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.
This is implemented in terms of configureTypeinfo
.
◆ configureElementTypeinfo()
StatusCode D3PD::CollectionGetterToolImpl::configureElementTypeinfo |
( |
const std::type_info & |
ti | ) |
|
|
inherited |
Test type compatibility.
- Parameters
-
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.
◆ configureTypeinfo()
virtual StatusCode D3PD::IObjGetterTool::configureTypeinfo |
( |
const std::type_info & |
ti | ) |
|
|
pure virtualinherited |
Test type compatibility.
- Parameters
-
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.
◆ DeclareInterfaceID()
Gaudi interface definition.
◆ elementTypeinfo() [1/2]
const std::type_info & D3PD::SGTileDigitsGetterTool::elementTypeinfo |
( |
| ) |
const |
◆ elementTypeinfo() [2/2]
Return the element type of the collection.
I.e., nextUntyped
returns a pointer to this type.
◆ get()
Type-safe wrapper for get
.
- Parameters
-
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< TileDigitsContainer >.
◆ getTypeinfo()
virtual const void* D3PD::IObjGetterTool::getTypeinfo |
( |
const std::type_info & |
ti, |
|
|
bool |
allowMissing = false |
|
) |
| |
|
pure virtualinherited |
Return the target object cast to a different pointer type.
- Parameters
-
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.
◆ getUntyped()
Return the target object.
- Parameters
-
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.
◆ initialize()
StatusCode D3PD::SGTileDigitsGetterTool::initialize |
( |
| ) |
|
|
virtual |
◆ initializeImpl()
StatusCode D3PD::SGGetterImpl::initializeImpl |
( |
| ) |
|
|
protectedinherited |
Initialize this mixin class.
Call this from initialize
.
Definition at line 105 of file SGGetterImpl.cxx.
113 return StatusCode::SUCCESS;
◆ nextTypeinfo()
const void * D3PD::CollectionGetterToolImpl::nextTypeinfo |
( |
const std::type_info & |
ti | ) |
|
|
inherited |
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.
72 this->m_converter.dstTypeinfo() != ti)
81 const void*
p = this->nextUntyped();
84 if (pconv)
return pconv;
85 this->releaseElementUntyped (
p);
◆ nextUntyped()
const void * D3PD::SGTileDigitsGetterTool::nextUntyped |
( |
| ) |
|
|
virtual |
◆ releaseElementTypeinfo()
void D3PD::CollectionGetterToolImpl::releaseElementTypeinfo |
( |
const void * |
p, |
|
|
const std::type_info & |
ti |
|
) |
| |
|
inherited |
Release an element retrieved from the getter.
- Parameters
-
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.
112 this->m_backConverter.srcTypeinfo() != ti)
116 <<
"Can't configure pointer conversion from "
117 << System::typeinfoName (ti) <<
" to "
118 << System::typeinfoName (this->typeinfo());
128 this->releaseElementUntyped (
p);
◆ releaseObject() [1/2]
template<class T >
void D3PD::IObjGetterTool::releaseObject |
( |
const T * |
p | ) |
|
|
inherited |
Type-safe wrapper for releaseObjectUntyped
.
- Parameters
-
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()
.
◆ releaseObject() [2/2]
Release an object retrieved from the getter.
- Parameters
-
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.
◆ releaseObjectTypeinfo()
void D3PD::IObjGetterTool::releaseObjectTypeinfo |
( |
const void * |
p, |
|
|
const std::type_info & |
ti |
|
) |
| |
|
inherited |
Release an object retrieved from the getter.
- Parameters
-
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.
◆ releaseObjectUntyped() [1/2]
virtual void D3PD::IObjGetterTool::releaseObjectUntyped |
( |
const void * |
p | ) |
|
|
virtualinherited |
Release an object retrieved from the getter.
- Parameters
-
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.
◆ releaseObjectUntyped() [2/2]
Release an object retrieved from the getter.
- Parameters
-
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.
◆ reset()
StatusCode D3PD::SGTileDigitsGetterTool::reset |
( |
bool |
allowMissing = false | ) |
|
|
virtual |
Reset the iteration to the start of the collection.
- Parameters
-
allowMissing | If true, then we should not generate errors if the requested object is missing. |
Return failure if the container cannot be retrieved.
Reimplemented from D3PD::CollectionGetterTool< TileDigitsContainer >.
Definition at line 50 of file SGTileDigitsGetterTool.cxx.
56 return StatusCode::FAILURE;
62 return StatusCode::SUCCESS;
68 return StatusCode::SUCCESS;
◆ sizeHint()
size_t D3PD::SGTileDigitsGetterTool::sizeHint |
( |
bool |
allowMissing = false | ) |
|
|
virtual |
Return an estimate of the number of elements in the iteration.
- Parameters
-
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.)
Reimplemented from D3PD::CollectionGetterTool< TileDigitsContainer >.
Definition at line 39 of file SGTileDigitsGetterTool.cxx.
◆ typeinfo() [1/2]
const std::type_info & D3PD::SGTileDigitsGetterTool::typeinfo |
( |
| ) |
const |
|
virtual |
◆ typeinfo() [2/2]
◆ m_backConverter
◆ m_clid
CLID D3PD::SGGetterImpl::m_clid |
|
privateinherited |
◆ m_clidsvc
◆ m_converter
◆ m_digEnd
◆ m_digItr
◆ m_end
◆ m_evtEnd
◆ m_evtItr
◆ m_it
◆ m_label
std::string D3PD::CollectionGetterToolImpl::m_label |
|
privateinherited |
◆ m_registry
◆ m_resolver
◆ m_sg
◆ m_sgkey
std::string D3PD::SGGetterImpl::m_sgkey |
|
protectedinherited |
◆ m_typename
std::string D3PD::SGGetterImpl::m_typename |
|
protectedinherited |
The documentation for this class was generated from the following files:
Const iterator class for DataVector/DataList.
DataModel_detail::const_iterator< DataVector > const_iterator
Standard const_iterator.
std::string dstName() const
Return the name of the destination type, or an empty string.
StatusCode initialize(CLID clid, const std::string &typname)
Initialize.
StatusCode init(const std::type_info &src_ti, const std::type_info &dst_ti)
Initialize the converter.
std::string srcName() const
Return the name of the source type, or an empty string.
const void * convertUntyped(const void *p) const
Convert pointer.
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current TileDigitsContainer
StatusCode nameToCLID(const std::string &name, CLID &clid, const std::string &context, ServiceHandle< IClassIDSvc > clidsvc=ServiceHandle< IClassIDSvc >("ClassIDSvc", "TypeNameConversions"))
Convert from a class name to a CLID.
const_iterator end() const
return const_iterator for end of container
#define CHECK(...)
Evaluate an expression and check for errors.
const_iterator begin() const
return const_iterator for first entry
CLID m_clid
CLID for the object being retrieved.
bool isValid() const
Test to see if this converter has been properly initialized.
#define REPORT_MESSAGE(LVL)
Report a message.
std::string m_typename
Property: Name of the type of the object being retrieved.
SGKeyResolver m_resolver
Helper: Resolve the SG key to use.
ServiceHandle< IClassIDSvc > m_clidsvc
Property: Instance of the ClassIDSvc to use.