|
ATLAS Offline Software
|
Go to the documentation of this file.
19 #ifndef TTRIGPARTICLETPCNV_RIGL2BPHYSCONTAINER_CNV_P1_H
20 #define TTRIGPARTICLETPCNV_RIGL2BPHYSCONTAINER_CNV_P1_H
40 transVect->
reserve( persVect->size() );
42 for( TrigL2BphysContainer_p1::const_iterator
43 it = persVect->begin(),
44 iEnd = persVect->end();
49 log << MSG::WARNING <<
"TrigL2BphysContainerCnv::persToTrans failed for an element " <<
endmsg;
52 log << MSG::WARNING <<
"TrigL2BphysContainerCnv::persToTrans cannot convert NULL persVect" <<
endmsg;
59 persVect->reserve( transVect->
size() );
63 iEnd = transVect->
end();
67 persVect->push_back(
a );
69 log << MSG::WARNING <<
"TrigL2BphysContainerCnv::transToPers failed for an element " << *
it <<
" "
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
Const iterator class for DataVector/DataList.
virtual void persToTrans(const TrigL2BphysContainer_p1 *persVect, TrigL2BphysContainer *transVect, MsgStream &log)
TrigL2BphysContainerCnv_p1()
virtual void transToPers(const TrigL2BphysContainer *transVect, TrigL2BphysContainer_p1 *persVect, MsgStream &log)
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...
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.
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...