|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ATHLINKS_TOOLS_SGELVREF_H
6 #define ATHLINKS_TOOLS_SGELVREF_H
8 #include "AthLinks/DataLink.h"
9 #include "AthLinks/ElementLink.h"
14 #include <boost/iterator_adaptors.hpp>
18 template <
typename DOBJ>
28 template <
typename DOBJ>
48 ELVRef(
typename DataLinkVector::size_type hostIndex,
75 typename DataLinkVector::size_type& shortref);
95 #endif // not ATHLINKS_TOOLS_SGELVREF_H
ElementLinkVector< DOBJ > ElemLinkVec
bool operator==(const ELVRef &rhs) const
ElementLink< DOBJ > ElemLink
ELVRef & operator=(const ELVRef &rhs)
STL required.
ELVRef(typename DataLinkVector::size_type hostIndex, index_type elementIndex, const ElemLinkVec &owner)
Constructor from indices.
Base::ID_type ID_type
Type of string keys.
IndexingPolicy::ElementConstPointer ElementConstPointer
const stored_index_type & index() const
ELVRef(const ELVRef &rhs)
STL required.
ElementLinkVector implementation for standalone ROOT.
ElemLink::stored_index_type stored_index_type
bool toTransient(const ElemLinkVec &owner)
bool toPersistent(const ElemLinkVec &owner)
called by handlers to change state:
ElemLink::ElementConstPointer ElementConstPointer
a short ref to an ElementLink into an ElementLinkVector. Used to be an internal class of ElementLinkV...
bool toPersistent(const ElemLinkVec &owner, typename DataLinkVector::size_type &shortref)
stored_index_type m_index
! index of the host dobj
ELVRef(const ElemLink &link=ElemLink())
standard constructor
ElementConstPointer cptr() const
element pointer in ElementLink
ElemLink::ID_type ID_type
Traits::IndexingPolicy IndexingPolicy
The indexing policy.
INDEXING_POLICY::stored_index_type stored_index_type
The type of the index as it is stored internally.
ID_type dataID() const
dataID of the host
index_type elementIndex() const
index into container (non-const, calculates and sets on demand):
ElementConstPointer cptr() const
Return a pointer to the referenced element.
DataLinkVector::size_type m_shortRef
! the element pointer
std::vector< DataLink< DOBJ > > DataLinkVector
IndexingPolicy::index_type index_type
The index type presented to and returned from the link.
bool operator<(const ELVRef &rhs) const
ElemLink::IndexingPolicy IndexingPolicy
ElemLink::index_type index_type
const ElemLink & elementLink() const
get the corresponding ElementLink. O(1)