template<typename ResultType, typename TargetType, typename MethodType>
class sbRunnableMethod_< ResultType, TargetType, MethodType >
A subclass template of sbRunnable_<> that captures an object and a method to call when Run() is invoked. A subclass must invoke the method, because this class doesn't know what arguments to pass, if any.
Definition at line 881 of file sbThreadUtils.h.
template<typename ResultType , typename TargetType , typename MethodType >
virtual ResultType sbRunnableMethod_< ResultType, TargetType, MethodType >::OnRun |
( |
| ) |
|
|
protectedpure virtual |
The operation to perform when invoked. Subclasses should call mMethod on mTarget with the proper arguments and return the result.
Implements sbRunnable_< ResultType >.
Implemented in sbRunnableMethod5_< ResultType, TargetType, Param1Type, Param2Type, Param3Type, Param4Type, Param5Type, Arg1Type, Arg2Type, Arg3Type, Arg4Type, Arg5Type, MethodType >, sbRunnableMethod4_< ResultType, TargetType, Param1Type, Param2Type, Param3Type, Param4Type, Arg1Type, Arg2Type, Arg3Type, Arg4Type, MethodType >, sbRunnableMethod3_< ResultType, TargetType, Param1Type, Param2Type, Param3Type, Arg1Type, Arg2Type, Arg3Type, MethodType >, sbRunnableMethod2_< ResultType, TargetType, Param1Type, Param2Type, Arg1Type, Arg2Type, MethodType >, and sbRunnableMethod1_< ResultType, TargetType, Param1Type, Arg1Type, MethodType >.