|
static void | insert (ref_type &ref, map_type &m, const key_type &k, const data_type &v) |
| insert in the map More...
|
|
static void | insert (ref_type &ref, map_type &m, const key_type &k, const val_type &v) |
|
static map_type::size_type | size (const map_assoc &v) |
| size of data_type More...
|
|
static void | sort (map_type &m) |
| sort More...
|
|
static transient_key_vector | transientKeyVector (const ref_type &ref, const map_type &map) |
| fill transient key vector More...
|
|
static transient_map_type | transientMap (const ref_type &ref, const map_type &map) |
| fill transient map More...
|
|
static transient_val_vector | transientValVector (const ref_type &ref, const map_type &map) |
| fill transient val vector More...
|
|
static val_type | val (const ref_type &ref, const map_assoc &iv) |
| return values collection More...
|
|
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
class edm::OneToManyWithQualityGeneric< CKey, CVal, Q, index, KeyRefProd, ValRefProd, KeyRef, ValRef >
Definition at line 21 of file OneToManyWithQualityGeneric.h.
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
static void edm::OneToManyWithQualityGeneric< CKey, CVal, Q, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::insert |
( |
ref_type & |
ref, |
|
|
map_type & |
m, |
|
|
const key_type & |
k, |
|
|
const data_type & |
v |
|
) |
| |
|
inlinestatic |
insert in the map
Definition at line 50 of file OneToManyWithQualityGeneric.h.
51 const ValRef &vref =
v.first;
52 if (
k.isNull() || vref.isNull())
54 if (ref.key.isNull()) {
55 if (
k.isTransient() || vref.isTransient()) {
57 "can't insert transient references in uninitialized AssociationMap");
61 if (getter ==
nullptr) {
63 "Can't insert into AssociationMap unless it was properly initialized.\n"
64 "The most common fix for this is to add arguments to the call to the\n"
65 "AssociationMap constructor that are valid Handle's to the containers.\n"
66 "If you don't have valid handles or either template parameter to the\n"
67 "AssociationMap is a View, then see the comments in AssociationMap.h.\n"
68 "(note this was a new requirement added in the 7_5_X release series)\n");
70 ref.key = KeyRefProd(
k.id(), getter);
71 ref.val = ValRefProd(vref.id(), ref.val.productGetter());
76 m[ik].push_back(std::make_pair(
iv,
v.second));
Referenced by BeautifulSoup.PageElement::append(), and edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< reco::Track >, double >::insert().
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
static void edm::OneToManyWithQualityGeneric< CKey, CVal, Q, index, KeyRefProd, ValRefProd, KeyRef, ValRef >::insert |
( |
ref_type & |
ref, |
|
|
map_type & |
m, |
|
|
const key_type & |
k, |
|
|
const val_type & |
v |
|
) |
| |
|
inlinestatic |
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
sort
Definition at line 96 of file OneToManyWithQualityGeneric.h.
98 for (
typename map_type::iterator
i =
m.begin(), iEnd =
m.end();
i != iEnd; ++
i) {
99 using std::placeholders::_1;
100 using std::placeholders::_2;
107 std::bind(std::less<Q>(),
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
fill transient key vector
Definition at line 132 of file OneToManyWithQualityGeneric.h.
135 const CKey &ckey = *ref.key;
136 for (
typename map_type::const_iterator
i =
map.begin();
i !=
map.end(); ++
i)
137 m.push_back(&ckey[
i->first]);
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
fill transient map
Definition at line 113 of file OneToManyWithQualityGeneric.h.
116 const CKey &ckey = *ref.key;
117 const CVal &cval = *ref.val;
118 for (
typename map_type::const_iterator
i =
map.begin();
i !=
map.end(); ++
i) {
121 std::vector<std::pair<const typename CVal::value_type *, Q> >
v;
122 for (
typename map_assoc::const_iterator
j =
a.begin();
j !=
a.end(); ++
j) {
124 v.push_back(std::make_pair(
val,
j->second));
126 m.insert(std::make_pair(
k,
v));
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>
fill transient val vector
Definition at line 142 of file OneToManyWithQualityGeneric.h.
145 const CVal &cval = *ref.val;
146 for (
typename map_type::const_iterator
i =
map.begin();
i !=
map.end(); ++
i) {
148 std::vector<std::pair<const typename CVal::value_type *, Q> >
v;
150 for (
typename map_assoc::const_iterator
j =
a.begin();
j !=
a.end(); ++
j)
151 m.back().push_back(std::make_pair(&cval[
j->first],
j->second));
template<typename CKey, typename CVal, typename Q, typename index = unsigned int, typename KeyRefProd = typename helper::MapRefViewTrait<CKey>::refprod_type, typename ValRefProd = typename helper::MapRefViewTrait<CVal>::refprod_type, typename KeyRef = typename helper::MapRefViewTrait<CKey>::ref_type, typename ValRef = typename helper::MapRefViewTrait<CVal>::ref_type>