Tesseract
3.02
|
#include <tesscallback.h>
Public Types | |
typedef TessResultCallback< R > | base |
typedef R(T::* | MemberSignature )() |
Public Member Functions | |
_TessMemberResultCallback_0_0 (T *object, MemberSignature member) | |
virtual R | Run () |
Definition at line 124 of file tesscallback.h.
typedef TessResultCallback<R> _TessMemberResultCallback_0_0< del, R, T >::base |
Definition at line 126 of file tesscallback.h.
typedef R(T::* _TessMemberResultCallback_0_0< del, R, T >::MemberSignature)() |
Definition at line 127 of file tesscallback.h.
_TessMemberResultCallback_0_0< del, R, T >::_TessMemberResultCallback_0_0 | ( | T * | object, |
MemberSignature | member | ||
) | [inline] |
Definition at line 134 of file tesscallback.h.
: object_(object),
member_(member) {
}
virtual R _TessMemberResultCallback_0_0< del, R, T >::Run | ( | ) | [inline, virtual] |
Implements TessResultCallback< R >.
Definition at line 140 of file tesscallback.h.
{ if (!del) { R result = (object_->*member_)(); return result; } else { R result = (object_->*member_)(); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } }