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);
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,
void fillView(AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper > const &obj, ProductID const &id, std::vector< void const *> &pointers, FillViewHelperVector &helpers)
static const element_type * address(const iter &i)
COLLECTION::value_type element_type
key
prepare the HTCondor submission files and eventually submit them
void reallyFillView(COLLECTION const &coll, ProductID const &id, std::vector< void const *> &ptrs, FillViewHelperVector &helpers)
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector