|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #ifndef ATHLINKS_FORWARDINDEXINGPOLICY_H
17 #define ATHLINKS_FORWARDINDEXINGPOLICY_H
24 #include <boost/concept_check.hpp>
40 template <
class CONT,
class VALUE_TYPE=
typename CONT::value_type>
117 #endif // not ATHLINKS_FORWARDINDEXINGPOLICY_H
char data[hepevt_bytes_allocation_ATLAS]
static ElementType lookup(index_type index, const CONT &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.
uint32_t stored_index_type
The type of an index, as stored internally within a link.
static void reset(stored_index_type &index)
Make an index invalid.
static bool isValid(stored_index_type index)
Test to see if an index is valid.
size_t index_type
The type of an index, as provided to or returned from a link.
An interface for getting the name of a class as a string.
static const index_type INVALID
Value to mark an invalid index.
type_tools::Copy< value_type >::type ElementType
The type we get when we dereference a link, and derived types.
type_tools::Copy< value_type >::const_reference ElementConstReference
Exceptions that can be thrown from AthLinks.
Define a specializable method for finding the index of an object within a container.
Indexing policy for a vector-like container.
type_tools::Copy< value_type >::const_pointer ElementConstPointer
static void reverseLookup(const CONT &data, ElementConstReference element, index_type &index)
Find the index of the (first) instance of ELEMENT in DATA.