ADTF
3.18.2
|
General function template: encapsulates a function or a method with a single parameter. More...
Public Member Functions | |
UnaryDelegate (ReturnType(*Function)(ParamType)) | |
CTOR to delegate an unary function. More... | |
template<typename Method , typename Instance > | |
UnaryDelegate (Method method, Instance &instance) | |
CTOR to delegate an unary class method. More... | |
ReturnType | operator() (ParamType param) |
Invocation operator - invokes the delegated method or function. More... | |
Private Types | |
typedef detail::DelegateBase< detail::functions::DelegateInterface< ReturnType, ParamType > > | Base |
General function template: encapsulates a function or a method with a single parameter.
ReturnType | Return type of the function to delegate |
Parameter | type of the method or function |
Definition at line 162 of file delegate_decl.h.
|
inline |
CTOR to delegate an unary function.
[in] | Function | Pointer to the function to delegate |
Definition at line 202 of file delegate_impl.h.
|
inline |
CTOR to delegate an unary class method.
Method | Pointer to the method |
Instance | Class the method shall be invoked from |
[in] | method | Pointer to the method to delegate |
[in] | instance | Reference to the class instance the method is member of |
Definition at line 212 of file delegate_impl.h.
|
inline |
Invocation operator - invokes the delegated method or function.
[in] | param | Parameter forwarded to the delegated function or method |
Definition at line 222 of file delegate_impl.h.