DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
Holds a CallableMemberWrapper
and invokes its callable when being destroyed.
More...
Public Member Functions | |
template<typename... ArgTs> | |
OnDestruction (ObjectT &Object, const CallableT Callable, ArgTs &&...Args) | |
Constructs a OnDestruction instance which calls Callable upon destruction of this instance. More... | |
~OnDestruction () | |
Private Attributes | |
CallableMemberWrapper< ObjectT, CallableT > | CallableWrapper |
Holds a CallableMemberWrapper
and invokes its callable when being destroyed.
ObjectT | Type of the object the member function belongs to |
CallableT | The member function's function pointer type |
|
inline |
Constructs a OnDestruction
instance which calls Callable
upon destruction of this instance.
...ArgTs | Types of the arguments expected by the wrapped member function |
Object | Instance the member function is invoked on |
Callable | Pointer to a member function |
...Args | Arguments to be passed to the member function upon invocation |
|
inline |
|
private |