Delegate that is able to execute a method of an instance. More...
Delegate that is able to execute a method of an instance.
TargetClass | Class type where the method is declared. |
ParameterType | Type of the delegate parameter. |
Public Member Methods | |
DelegateMethod () | |
Default constructor. More... | |
DelegateMethod (TargetClass *targetObject, Method targetMethod) | |
Default constructor. More... | |
void | Execute (ParameterType parameter) |
Executes the delegate More... | |
bool | GetDefined () const |
Query if target is defined. More... | |
void | Define (TargetClass *targetObject, Method targetMethod) |
Defines. More... | |
TargetClass & | GetTargetObject () |
Gets the target object. More... | |
Method | GetTargetMethod () |
Gets the target method. More... | |
DelegateMethod | ( | ) |
Default constructor.
DelegateMethod | ( | TargetClass * | targetObject, |
Method | targetMethod | ||
) |
Default constructor.
targetObject | [in,out] target object. |
targetMethod | Target method. |
void Define | ( | TargetClass * | targetObject, |
Method | targetMethod | ||
) |
Defines.
targetObject | [in,out] target object. Must be non-null. |
targetMethod | Target method. |
|
virtual |
|
virtual |
|
inline |
Gets the target method.
|
inline |
Gets the target object.