32 MsgStream&
msg )
const
42 const std::size_t nJetSampling = pers->size();
43 if (
pool.capacity() -
pool.allocated() < nJetSampling ) {
44 pool.reserve(
pool.allocated() + nJetSampling );
48 for ( JetSamplingCollection_p1::const_iterator
54 jetSamplingCnv.persToTrans( &(*itr), jetSampling,
msg );
64 MsgStream&
msg )
const
69 std::size_t size = trans->
size();
74 JetSamplingCollection_p1::iterator persItr = pers->begin();
76 jetSamplingCnv.transToPers( *transItr, &(*persItr),
msg );
77 ++persItr; ++transItr; --size;
a typed memory pool that saves time spent allocation small object.
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 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.
virtual void transToPers(const JetSamplingCollection *trans, JetSamplingCollection_p1 *pers, MsgStream &msg) const override
Method creating the persistent representation JetSamplingCollection_p1 from its transient representat...
virtual void persToTrans(const JetSamplingCollection_p1 *pers, JetSamplingCollection *trans, MsgStream &msg) const override
Method creating the transient representation of JetSamplingCollection from its persistent representat...
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts