Tesseract
3.02
|
#include <tesscallback.h>
Public Types | |
typedef TessResultCallback< R > | base |
typedef R(T::* | MemberSignature )() const |
Public Member Functions | |
_ConstTessMemberResultCallback_0_0 (const T *object, MemberSignature member) | |
virtual R | Run () |
Definition at line 43 of file tesscallback.h.
typedef TessResultCallback<R> _ConstTessMemberResultCallback_0_0< del, R, T >::base |
Definition at line 45 of file tesscallback.h.
typedef R(T::* _ConstTessMemberResultCallback_0_0< del, R, T >::MemberSignature)() const |
Definition at line 46 of file tesscallback.h.
_ConstTessMemberResultCallback_0_0< del, R, T >::_ConstTessMemberResultCallback_0_0 | ( | const T * | object, |
MemberSignature | member | ||
) | [inline] |
Definition at line 53 of file tesscallback.h.
: object_(object),
member_(member) {
}
virtual R _ConstTessMemberResultCallback_0_0< del, R, T >::Run | ( | ) | [inline, virtual] |
Implements TessResultCallback< R >.
Definition at line 59 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; } }