Class Acts::SourceLink¶
-
class SourceLink¶
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¶