|
Minecraft Community Edition 0.1.0
|
Adapter that wraps a member function without extra arguments. More...
#include <Thread.hpp>
Public Member Functions | |
| ThreadMemberFunctor (void(C::*function)(), C *object) | |
| Construct with member function pointer and target object. | |
| virtual void | run () override |
| Invoke the stored member function on the stored object. | |
| Public Member Functions inherited from mce::ThreadFunc | |
| virtual | ~ThreadFunc () |
| Virtual destructor to allow safe deletion via base pointer. | |
Public Attributes | |
| void(C::* | functor )() |
| Pointer to the member function to invoke. | |
| C * | object |
| Pointer to the object instance used when invoking the member function. | |
Adapter that wraps a member function without extra arguments.
| C | Class type that owns the member function. |
|
inline |
Construct with member function pointer and target object.
| function | Member function pointer to call. |
| object | Target object on which to call the member function. |
|
inlineoverridevirtual |
Invoke the stored member function on the stored object.
Note: the exact invocation expression depends on how the pointer-to-member is stored and used by the adapter.
Implements mce::ThreadFunc.