 |
ATLAS Offline Software
|
Go to the documentation of this file.
16 #ifndef ATHLINKS_MAPINDEXINGPOLICY_H
17 #define ATHLINKS_MAPINDEXINGPOLICY_H
26 #include "GaudiKernel/MsgStream.h"
30 #include <type_traits>
50 template <CxxUtils::detail::PairAssociativeContainer MAP>
124 template <
typename KEY,
typename ELEM>
133 #endif // not ATHLINKS_MAPINDEXINGPOLICY_H
MAP::key_type index_type
The type of an index, as provided to or returned from a link.
char data[hepevt_bytes_allocation_ATLAS]
static void reset(stored_index_type &index)
Make an index invalid.
Indexing policy for a map-like container.
singleton-like access to IMessageSvc via open function and helper
type_tools::Copy< mapped_type >::const_reference ElementConstReference
type_tools::Copy< mapped_type >::type ElementType
The type we get when we dereference a link, and derived types.
static ElementType lookup(const stored_index_type &index, const MAP &data)
Retrieve from a container the element corresponding to an index.
static index_type storedToExternal(stored_index_type index)
Convert from stored to external index types.
type_tools::Copy< mapped_type >::const_pointer ElementConstPointer
SG::IndexHolder< index_type > stored_index_type
The type of an index, as stored internally within a link.
static bool isValid(const stored_index_type &index)
Test to see if an index is valid.
MAP::const_iterator const_iterator
MAP::mapped_type mapped_type
SG::MapIndexingPolicy< std::map< KEY, ELEM > > type
static void reverseLookup(const MAP &data, ElementConstReference element, index_type &index)
Find the index of the (first) instance of ELEMENT in DATA.
Store an ElementLink index for non-vector containers.
Exceptions that can be thrown from AthLinks.
A couple standard-library related concepts.
Store an ElementLink index for non-vector containers.