ATLAS Offline Software
ElementLinkCnv_p2< LINK > Class Reference

Converter template for converters between transient ElementLink and its persistent representation. More...

#include <ElementLinkCnv_p2.h>

Collaboration diagram for ElementLinkCnv_p2< LINK >:

Detailed Description

Converter template for converters between transient ElementLink and its persistent representation.

This is one of two optimized versions of persistent element link. The other version is ElementLinkCompactCnv_p2. Both versions work with an external class ElementLinkContNames_p2 which maintains a lookup table of the container names. These two versions should be used when there is a collection of persistent objects where each holds an element link. The top-level collection should then hold the ElementLinkContNames_p2 object with the container names.

This version holds both the index to the container name stored in ElementLinkContNames_p2 and the index to the element link. The other version (ElementLinkCompactCnv_p2) only holds the element link index - in this second case the ElementLinkContNames_p2 keeps track of which objects in the collection hold which container index.

This version should be used when there are many different container names, and ElementLinkCompactCnv_p2 should be used when the element links all point to the same container.

Template argument LINK is the type of the transient ElementLink. The type of the persistent link representation is automatically deducted - it can be integer index type, or string index type. More types can be added in ElementLink_p2.h


The documentation for this class was generated from the following file: