Ref()

System::Ref(DynamicWeakPtr<T, trunkMode, weakLeafs…>&) function

Creates reference to DynamicWeakPtr object. Used by translator when passing function arguments by reference.

template<typename T,SmartPtrMode,unsigned int ...> DynamicWeakPtr<T, trunkMode, weakLeafs...>::Reference System::Ref(DynamicWeakPtr<T, trunkMode, weakLeafs...> &ptr)

Template parameters

ParameterDescription
TPointee type.
trunkModeMode of smart pointer itself.
weakLeafsIndexes of template arguments for which SetTemplateWeakPtr method must be called.

Arguments

ParameterTypeDescription
ptrDynamicWeakPtr<T, trunkMode, weakLeafs…>&Smart pointer to create reference to.

Return Value

Smart pointer reference.

System::Ref(T&) function

Helper function to acquire references to objects. Used to guarantee that System::DynamicWeakPtr updates referenced object after assignments.

template<typename T> T & System::Ref(T &value)

Template parameters

ParameterDescription
TType to create reference to.

Arguments

ParameterTypeDescription
valueT&Value to create reference to.

Return Value

Reference to the value passed to this function.

See Also