|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef MATERIAKSTEPCOLLECTION_CNV_P1_TRK_H
10 #define MATERIAKSTEPCOLLECTION_CNV_P1_TRK_H
33 transVect->
reserve( persVect->size() );
35 Trk::MaterialStepCollection_p1::const_iterator
it = persVect->begin();
36 Trk::MaterialStepCollection_p1::const_iterator iEnd = persVect->end();
37 for ( ;
it != iEnd; ++
it ) {
46 persVect->resize( transVect->
size() );
51 for( ;
it != iEnd; ++
it ) {
60 #endif // MATERIAKSTEPCOLLECTION_CNV_P1_TRK_H
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
Const iterator class for DataVector/DataList.
virtual void transToPers(const Trk::MaterialStepCollection *transVect, Trk::MaterialStepCollection_p1 *persVect, MsgStream &log)
transient to persistent
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
MaterialStepCnv_p1 m_materialStepCnv
virtual void persToTrans(const Trk::MaterialStepCollection_p1 *persVect, Trk::MaterialStepCollection *transVect, MsgStream &log)
persistent to transient
void clear()
Erase all the elements in the collection.
virtual void transToPers(const Trk::MaterialStep *transObj, Trk::MaterialStep_p1 *persObj, MsgStream &log)
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.
MaterialStepCollectionCnv_p1()
Standard constructor.
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.