|
ATLAS Offline Software
|
Go to the documentation of this file.
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 )
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
virtual void persToTrans(const Trk::SegmentCollection_p1 *persVect, Trk::SegmentCollection *transVect, MsgStream &log)
Const iterator class for DataVector/DataList.
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...
SegmentCollectionCnv_p1()
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 Trk::SegmentCollection *transVect, Trk::SegmentCollection_p1 *persVect, MsgStream &log)
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...