Go to the documentation of this file. 1 #ifndef DataFormats_Common_Association_h
2 #define DataFormats_Common_Association_h
33 template <
typename RefKey>
35 return get(
r.id(),
r.key());
44 if (
k >=
ref_->size())
116 template <
typename C>
121 template <
typename C>
ProductID id() const
Accessor for product ID.
void swap(Association< C > &lhs, Association< C > &rhs)
reference_type operator[](const RefKey &r) const
bool contains(ProductID id) const
edm::RefProd< C > refprod_type
Filler(Association< C > &association)
reference_type get(ProductID id, size_t idx) const
Association< C > & operator+=(const Association< C > &o)
bool isNull() const
Checks for null.
Association & operator=(Association const &rhs)
#define CMS_CLASS_VERSION(_version_)
void add(const Association< C > &association)
void swap(RefProd< C > &)
void swap(ValueMap &other)
void add(const Association< C > &o)
void setRef(const refprod_type &ref)
std::vector< std::pair< ProductID, offset > > id_offset_vector
Ref< typename refprod_type::product_type > reference_type
reference_type get(size_t rawIdx) const
meant to be used internally or in AssociativeIterator, not by the ordinary user
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
size_t rawIndexOf(ProductID id, size_t idx) const
void throwIndexMapBound() const
void add(const ValueMap< T > &o)
bool contains(ProductID id) const
Association< C > operator+(const Association< C > &a1, const Association< C > &a2)
const id_offset_vector & ids() const
meant to be used in AssociativeIterator, not by the ordinary user
helper::Filler< Association< C > > base
std::vector< std::pair< ProductID, offset > > id_offset_vector
meant to be used in AssociativeIterator, not by the ordinary user
void swap(Association &other)