Get()

System::Get(const SharedPtr<Object>&) function

Function to get N-th element of tuple given. Overload for base object.

template<std::size_t> auto System::Get(const SharedPtr<Object> &object)

Template parameters

ParameterDescription
Nelement index.

Arguments

ParameterTypeDescription
objectconst SharedPtr<Object>&object to inspect.

Return Value

value of N-th tuple element casted to object.

System::Get(const T&) function

Function to get N-th element of tuple given. Overload for objects with Deconstruct method.

template<std::size_t,typename T> auto System::Get(const T &object)

Template parameters

ParameterDescription
Nelement index.
Ttype of inspected object.

Arguments

ParameterTypeDescription
objectconst T&object to inspect.

Return Value

value of N-th tuple element.

System::Get(const SharedPtr<T>&) function

Function to get N-th element of tuple given. Overload for shared pointers.

template<std::size_t,typename T> auto System::Get(const SharedPtr<T> &pointer)

Template parameters

ParameterDescription
Nelement index.
Ttype of inspected object.

Arguments

ParameterTypeDescription
objectconst SharedPtr<T>&object to inspect.

Return Value

value of N-th tuple element.

System::Get(T&, const Index&) function

Implementation for collection[index] expressions.

template<typename T> auto & System::Get(T &collection, const Index &index)

Template parameters

ParameterDescription
TCollection type.

Arguments

ParameterTypeDescription
collectionT&Collection object.
indexconst Index&Element index of type System.Index.

Return Value

Collection element at the calculated offset.

System::Get(T&, const Range&) function

Returns a slice of the specified collection defined by the provided range.

template<typename T> auto System::Get(T &collection, const Range &range)

Arguments

ParameterTypeDescription
collectionT&The collection to slice.
rangeconst Range&The range specifying the slice boundaries.

Return Value

A view or slice of the collection from the computed start offset and length.

System::Get(const ValueTuple<Args…>&) function

Gets N-th element of value tuple.

template<std::size_t,typename...> auto System::Get(const ValueTuple<Args...> &tuple)

Template parameters

ParameterDescription
Nelement index.
Argstuple elements.

Arguments

ParameterTypeDescription
tupleconst ValueTuple<Args…>&tuple to get element from.

Return Value

value of N-th tuple element.

See Also