1 #ifndef DataFormats_Common_FillView_h 2 #define DataFormats_Common_FillView_h 25 template <
class COLLECTION>
29 std::vector<void const*>& ptrs,
32 typedef COLLECTION product_type;
34 typedef typename product_type::const_iterator iter;
37 ptrs.reserve(ptrs.size() + coll.size());
38 helpers.reserve(ptrs.size() + coll.size());
40 for (iter
i = coll.begin(),
e = coll.end();
i!=
e; ++
i, ++
key) {
42 ptrs.push_back(address);
43 helpers.emplace_back(
id,key);
47 template <
class T,
class A>
51 std::vector<void const*>& ptrs,
57 template <
class T,
class A>
61 std::vector<void const*>& ptrs,
67 template <
class T,
class A>
71 std::vector<void const*>& ptrs,
77 template <
class T,
class A,
class Comp>
81 std::vector<void const*>& ptrs,
static const element_type * address(const iter &i)
void reallyFillView(COLLECTION const &coll, ProductID const &id, std::vector< void const * > &ptrs, FillViewHelperVector &helpers)
COLLECTION::value_type element_type
void fillView(AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper > const &obj, ProductID const &id, std::vector< void const * > &pointers, FillViewHelperVector &helpers)
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector