|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef DATAMODELATHENAPOOL_ELEMENTLINKCNV_P2_H
6 #define DATAMODELATHENAPOOL_ELEMENTLINKCNV_P2_H
53 template <
class LINK_TYPE>
62 typedef std::map<std::string, unsigned int>
IndexMap;
101 MsgStream&
log)
const;
106 MsgStream&
log)
const;
111 MsgStream&
log)
const;
130 unsigned int nameIndex,
131 std::string
const *&
name,
132 MsgStream&
log)
const;
143 #endif // not __REFLEX__
unsigned int getNameIndex(State &state, const std::string &name) const
Add name to lookup table and return index.
State(const ElementLinkContNames_p2 &lookupTable)
void transToPers(State &state, const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
void getContName(State &state, unsigned int nameIndex, std::string const *&name, MsgStream &log) const
Get the container name from lookup table.
const std::string * m_lastNameFound
Last container name found - for transToPers use string ptr to avoid string copy.
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log)
This file contains the class definition for the ElementLink_p2 class.
ElementLinkCnv_p2(bool isPersistible)
If client sets state of EL to persistible (i.e.
const std::string * defaultLastName() const
unsigned int m_lastNameIndex
Last name inded.
void transToPers(const Link_t &trans, PersLink_t &pers, MsgStream &log)
IndexMap m_nameIndexMap
Map to find index of container name in lookup table.
void reset(const ElementLinkContNames_p2 &lookupTable)
std::map< std::string, unsigned int > IndexMap
ElementLinkContNames_p2 * m_lookupTable
Lookup table with list of container names and starting element link index for each container name cha...
virtual void transToPers(const Link_t *trans, PersLink_t *pers, MsgStream &log)
CalibratedSpacePoint::State State
bool m_isPersistible
Can avoid call to toPersistent if work already done by caller.
void reset(ElementLinkContNames_p2 &lookupTable)
virtual void persToTrans(const PersLink_t *pers, Link_t *trans, MsgStream &log)
void persToTrans(State &state, const PersLink_t &pers, Link_t &trans, MsgStream &log) const
State(ElementLinkContNames_p2 &lookupTable)
std::string m_lastNameAdded
Last container name added - for persToTrans must be string by value
void resetForCnv(ElementLinkContNames_p2 &lookupTable)
void transToPers(State &state, const Link_t &trans, PersLink_t &pers, MsgStream &log) const
void resetForCnv(const ElementLinkContNames_p2 &lookupTable)
GeneratePersELinkType_p2< Link_t >::type PersLink_t
Cache thinning decisions for converters.
const ElementLinkContNames_p2 * m_clookupTable