3 #include "DataFormats/TestObjects/interface/OtherThing.h" 9 OtherThingCollection&
result,
11 bool refsAreTransient)
const {
12 const size_t numToMake = 20;
14 ThingCollection
const* null =
nullptr;
15 ThingCollection
const*
parent =
nullptr;
19 for (
size_t i = 0;
i < numToMake; ++
i) {
23 }
else if (refsAreTransient) {
27 element.refVec.push_back(element.ref);
28 element.refVec.push_back(element.ref);
31 element.refVec.erase(ri);
34 assert(element.oneNullOneNot.size() == 2);
37 element.ptrVec.push_back(element.ptr);
41 assert(element.ptrOneNullOneNot.size() == 2);
50 element.refVec.push_back(element.ref);
51 element.refVec.push_back(element.ref);
54 element.refVec.erase(ri);
57 assert(element.oneNullOneNot.size() == 2);
60 element.ptrVec.push_back(element.ptr);
64 assert(element.ptrOneNullOneNot.size() == 2);
Ptr< typename C::value_type > refToPtr(Ref< C, typename C::value_type, refhelper::FindUsingAdvance< C, typename C::value_type > > const &ref)
void run(edm::Handle< ThingCollection > const &iThingHandle, OtherThingCollection &otherThingCollection, bool useRefs=true, bool refsAreTransient=false) const
ProductID id() const
Accessor for product ID.
T const * product() const