Implementation of the AIDA IAnnotation interface class.
More...
#include </builds/gaudi/Gaudi/GaudiCommonSvc/include/GaudiCommonSvc/Annotation.h>
Implementation of the AIDA IAnnotation interface class.
Definition at line 26 of file Annotation.h.
◆ addItem()
Add a key/value pair with a given sticky.
Definition at line 77 of file Annotation.h.
◆ key()
Individual access to the Annotation-items.
Definition at line 129 of file Annotation.h.
◆ removeItem()
bool AIDA::Annotation::removeItem |
( |
const std::string & |
key | ) |
|
|
inlineoverride |
Remove the item indicated by a given key.
Definition at line 84 of file Annotation.h.
88 unsigned int indexToBeRemoved = iKey->second;
99 if ( iItem == indexToBeRemoved )
continue;
101 annotationItemsNew.
emplace_back( item.m_key, item.m_value, item.m_sticky );
◆ reset()
void AIDA::Annotation::reset |
( |
| ) |
|
|
inlineoverride |
Remove all the non-sticky items.
Definition at line 139 of file Annotation.h.
144 if ( !item.m_sticky ) itemsToRemove.
push_back( item.m_key );
146 for (
const auto& i : itemsToRemove )
removeItem( i );
◆ setSticky()
void AIDA::Annotation::setSticky |
( |
const std::string & |
key, |
|
|
bool |
sticky |
|
) |
| |
|
inlineoverride |
◆ setValue()
◆ size()
int AIDA::Annotation::size |
( |
| ) |
const |
|
inlineoverride |
◆ value() [1/2]
Retrieve the value for a given key.
Definition at line 108 of file Annotation.h.
◆ value() [2/2]
◆ emptyString
◆ m_annotationItems
The vector of the annotation items.
Definition at line 68 of file Annotation.h.
◆ m_identifiers
The map of strings to identifiers.
Definition at line 71 of file Annotation.h.
The documentation for this class was generated from the following file:
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...