1 #ifndef DataFormats_Common_FillView_h
2 #define DataFormats_Common_FillView_h
24 template <
class COLLECTION>
27 std::vector<void const*>& ptrs,
29 typedef COLLECTION product_type;
31 typedef typename product_type::const_iterator iter;
34 ptrs.reserve(ptrs.size() + coll.size());
35 helpers.reserve(ptrs.size() + coll.size());
37 for (iter
i = coll.begin(),
e = coll.end();
i !=
e; ++
i, ++
key) {
39 ptrs.push_back(address);
40 helpers.emplace_back(
id, key);
44 template <
class T,
class A>
47 std::vector<void const*>& ptrs,
52 template <
class T,
class A>
55 std::vector<void const*>& ptrs,
60 template <
class T,
class A>
63 std::vector<void const*>& ptrs,
68 template <
class T,
class A,
class Comp>
71 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)
tuple key
prepare the HTCondor submission files and eventually submit them
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector