|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #ifndef TRIGCALOEVENTTPCNV_RINGERRINGSCONTAINER_CNV_P1_H
17 #define TRIGCALOEVENTTPCNV_RINGERRINGSCONTAINER_CNV_P1_H
34 MsgStream &
log)
override {
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 <<
" "
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
virtual void persToTrans(const RingerRingsContainer_p1 *persVect, RingerRingsContainer *transVect, MsgStream &log) override
Const iterator class for DataVector/DataList.
RingerRingsContainerCnv_p1()
void clear()
Erase all the elements in the collection.
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
Persistify an object and store the persistent represenation in the storage vector of the top-level pe...
This class carries the generated Rings.
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.
virtual void transToPers(const RingerRingsContainer *transVect, RingerRingsContainer_p1 *persVect, MsgStream &log) override
CONV * m_elementCnv
pointer to the TP converter used for vector elements
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
Create transient representation of a persistent object, stored in the the top-level persistent object...