|
CatapultServer
v0.5.0.1 (Elephant)
|

Public Member Functions | |
| 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... | |
Protected Attributes | |
| std::shared_ptr< const void > | m_pOwner |
| THandler | m_handler |
Decorates a handler by additionally capturing a shared pointer to an owning object, which extends that object's lifetime.
|
inline |
Wraps handler and keeps pOwner alive.
|
inline |
Forwards args to the wrapped handler.
|
inline |
A reference to the owning pointer.
|
protected |
|
protected |