File SourceLink.hpp¶
-
namespace Acts
Note
This file is foreseen for the
Geometry
module to replaceExtent
-
class SourceLink
- #include <Acts/EventData/SourceLink.hpp>
Public Functions
-
SourceLink(const SourceLink &other) = default
-
SourceLink(SourceLink &&other) = default
-
template<typename T, typename = std::enable_if_t<!std::is_same_v<std::decay_t<T>, SourceLink>>>
inline explicit SourceLink(GeometryIdentifier id, T &&upstream) Constructor from source link and explicit geometry id.
- Template Parameters
T – The source link type
- Parameters
id – The geometry identifier
upstream – The upstream source link to store
-
template<typename T, typename = std::enable_if_t<Concepts::exists<detail_sl::geometry_id_t, T> && !std::is_same_v<std::decay_t<T>, SourceLink>>>
inline explicit SourceLink(T &&upstream) Constructor from source link only, geometry identifier is determined automatically.
- Template Parameters
T – The source link type
- Parameters
upstream – The upstream source link to store
-
inline constexpr GeometryIdentifier geometryId() const
Getter for the geometry identifier.
- Returns
The GeometryIdentifier
-
template<typename T>
inline T &get() Concrete source link class getter.
- Template Parameters
T – The source link type to retrieve
- Returns
Reference to the stored source link
-
template<typename T>
inline const T &get() const Concrete source link class getter, const version.
- Template Parameters
T – The source link type to retrieve
- Returns
Const reference to the stored source link
-
SourceLink &operator=(const SourceLink &other) = default
-
SourceLink &operator=(SourceLink &&other) = default
-
SourceLink(const SourceLink &other) = default
-
template<typename T>
struct SourceLinkAdapterIterator¶ - #include <Acts/EventData/SourceLink.hpp>
Public Types
-
using difference_type = typename BaseIterator::difference_type¶
-
using iterator_category = typename BaseIterator::iterator_category¶
-
using pointer = typename BaseIterator::pointer¶
-
using reference = typename BaseIterator::reference¶
-
using value_type = typename BaseIterator::value_type¶
Public Functions
-
inline bool operator!=(const SourceLinkAdapterIterator &other) const¶
-
inline Acts::SourceLink operator*() const¶
-
inline SourceLinkAdapterIterator &operator++()¶
-
inline auto operator-(const SourceLinkAdapterIterator &other) const¶
-
inline bool operator==(const SourceLinkAdapterIterator &other) const¶
Public Members
-
BaseIterator m_iterator¶
-
using difference_type = typename BaseIterator::difference_type¶
-
class SourceLink