#include <callback.h>
Public Member Functions | |
Callback (T *object, TMethod method) | |
void | operator() (S data) |
Protected Types | |
typedef void(T::* | TMethod) (S) |
Protected Attributes | |
T * | _object |
TMethod | _method |
Callback<T, S> implements an object-oriented callback.
<T> stands for a class whose method you want to call. <S> is the type of the object passed to operator().
So, if you have void MyClass::myMethod(AnotherClass) method, the corresponding callback is Callback<MyClass, AnotherClass>. You can create it in the following way:
|
inlinevirtual |
Type of the object passed to the operator.
Implements Common::BaseCallback< S >.