class ISharedFromThis

template<typename Type>

Interface that allows a shared pointer to be retrieved from the this pointer.

Public

Methods

GetSharedFromThis

TShared<Type> GetSharedFromThis()

GetSharedFromThis

TShared<const Type> GetSharedFromThis() const

GetWeakFromThis

TWeak<Type> GetWeakFromThis()

GetWeakFromThis

TWeak<const Type> GetWeakFromThis() const

Protected

Constructors

ISharedFromThis<Type>

ISharedFromThis<Type>() = default

ISharedFromThis<Type>

ISharedFromThis<Type>(const ISharedFromThis<Type> &) = default

Methods

~ISharedFromThis<Type>

~ISharedFromThis<Type>() = default

Operators

operator=

ISharedFromThis<Type> &operator=(const ISharedFromThis<Type> &) noexcept

Private

Fields

mWeakThis

TWeak<Type> mWeakThis