5#ifndef SEGMENT_COLLECTION_CNV_P1_H
6#define SEGMENT_COLLECTION_CNV_P1_H
35 persVect->reserve( transVect->
size() );
38 it != transVect->
end(); ++it ) {
47 transVect->
reserve( persVect->size() );
49 for( Trk::SegmentCollection_p1::const_iterator it = persVect->begin();
50 it != persVect->end(); ++it )
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
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.
Common base class for all TP converters, specialized for a given transient type.
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
virtual void persToTrans(const Trk::SegmentCollection_p1 *persVect, Trk::SegmentCollection *transVect, MsgStream &log)
virtual void transToPers(const Trk::SegmentCollection *transVect, Trk::SegmentCollection_p1 *persVect, MsgStream &log)
SegmentCollectionCnv_p1()
Base class for all TrackSegment implementations, extends the common MeasurementBase.
DataVector< Trk::Segment > SegmentCollection