#include <ElementID.h>
Public Types | |
using | key_type = unsigned int |
Public Member Functions | |
ElementID ()=default | |
ElementID (edm::ProductID id, key_type ind) | |
ProductID | id () const |
key_type | index () const |
bool | isValid () const |
key_type | key () const |
void | reset () |
void | swap (ElementID &other) |
Private Attributes | |
ProductID | id_ |
key_type | index_ = 0 |
ElementID is a unique identifier for an element within a container. It extends the ProductID concept by adding an index to an object within a container.
It provides both index() and key() methods so that it can be used in place of Ref/Ptr in the interfaces of e.g. ValueMap or Association.
Definition at line 17 of file ElementID.h.
using edm::ElementID::key_type = unsigned int |
Definition at line 19 of file ElementID.h.
|
default |
|
inlineexplicit |
Definition at line 22 of file ElementID.h.
|
inline |
Definition at line 25 of file ElementID.h.
References id_.
Referenced by edm::operator<(), and edm::operator==().
|
inline |
Definition at line 26 of file ElementID.h.
References index_.
Referenced by BeautifulSoup.PageElement::_invert(), edm::operator<(), and edm::operator==().
|
inline |
Definition at line 24 of file ElementID.h.
References id_, and edm::ProductID::isValid().
Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
inline |
|
inline |
void edm::ElementID::swap | ( | ElementID & | other | ) |
Definition at line 6 of file ElementID.cc.
References id_, index_, edm::swap(), and std::swap().
Referenced by edm::swap().
|
private |