|
| template<typename TOwner > |
| | ResettableWrappedWithOwnerDecorator (const std::shared_ptr< TOwner > &pOwner, THandler handler) |
| | Wraps handler and keeps pOwner alive. More...
|
| |
| void | reset () |
| | Releases all resources associated with this object. More...
|
| |
| template<typename TOwner > |
| | WrappedWithOwnerDecorator (const std::shared_ptr< TOwner > &pOwner, THandler handler) |
| | Wraps handler and keeps pOwner alive. More...
|
| |
| template<typename... TArgs> |
| auto | operator() (TArgs &&...args) const |
| | Forwards args to the wrapped handler. More...
|
| |
| const std::shared_ptr< const void > & | owner () const |
| | A reference to the owning pointer. More...
|
| |
template<typename THandler>
class catapult::utils::ResettableWrappedWithOwnerDecorator< THandler >
Decorates a handler by additionally capturing a shared pointer to an owning object, which extends that object's lifetime. This decorator supports reset.