16#ifndef TRIGCALOEVENTTPCNV_RINGERRINGSCONTAINER_CNV_P1_H
17#define TRIGCALOEVENTTPCNV_RINGERRINGSCONTAINER_CNV_P1_H
34 MsgStream &log)
override {
35 log << MSG::DEBUG <<
"RingerRingsContainerCnv::persToTrans" <<
endmsg;
37 log << MSG::WARNING <<
"RingerRingsContainerCnv::persToTrans cannot convert NULL persVect" <<
endmsg;
41 log << MSG::WARNING <<
"RingerRingsContainerCnv::persToTrans cannot convert to NULL transVect" <<
endmsg;
46 transVect->
reserve(persVect->size());
49 for (RingerRingsContainer_p1::const_iterator it = persVect->begin();
50 it != persVect->end(); ++it) {
54 log << MSG::WARNING <<
"RingerRingsContainerCnv::persToTrans failed for an element " <<
endmsg;
61 MsgStream &log)
override {
63 log << MSG::WARNING <<
"RingerRingsContainerCnv::transToPers cannot convert NULL persVect" <<
endmsg;
67 log << MSG::WARNING <<
"RingerRingsContainerCnv::transToPers cannot convert to NULL transVect" <<
endmsg;
72 persVect->reserve(transVect->
size());
75 it != transVect->
end(); ++it ) {
77 persVect->push_back(
a);
79 log << MSG::WARNING <<
"RingerRingsContainerCnv::transToPers failed for an element " << *it <<
" "
TPPtrVectorCnv< TRANS, PERS, CONV > T_AthenaPoolTPPtrVectorCnv
DataModel_detail::const_iterator< DataVector > const_iterator
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
void clear()
Erase all the elements in the collection.
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
RingerRingsContainerCnv_p1()
virtual void transToPers(const RingerRingsContainer *transVect, RingerRingsContainer_p1 *persVect, MsgStream &log) override
virtual void persToTrans(const RingerRingsContainer_p1 *persVect, RingerRingsContainer *transVect, MsgStream &log) override
This class carries the generated Rings.
This class is an object reference used in Athena persistent data model.
CONV * m_elementCnv
pointer to the TP converter used for vector elements