|
tesseract
3.03
|
#include <tesscallback.h>
Public Types | |
| typedef TessResultCallback< R > | base |
| typedef R(T::* | MemberSignature )(P1, P2) const |
Public Member Functions | |
| _ConstTessMemberResultCallback_2_0 (const T *object, MemberSignature member, P1 p1, P2 p2) | |
| virtual R | Run () |
Definition at line 502 of file tesscallback.h.
| typedef TessResultCallback<R> _ConstTessMemberResultCallback_2_0< del, R, T, P1, P2 >::base |
Definition at line 504 of file tesscallback.h.
| typedef R(T::* _ConstTessMemberResultCallback_2_0< del, R, T, P1, P2 >::MemberSignature)(P1, P2) const |
Definition at line 505 of file tesscallback.h.
| _ConstTessMemberResultCallback_2_0< del, R, T, P1, P2 >::_ConstTessMemberResultCallback_2_0 | ( | const T * | object, |
| MemberSignature | member, | ||
| P1 | p1, | ||
| P2 | p2 | ||
| ) | [inline] |
Definition at line 514 of file tesscallback.h.
: object_(object),
member_(member), p1_(p1), p2_(p2) { }
| virtual R _ConstTessMemberResultCallback_2_0< del, R, T, P1, P2 >::Run | ( | ) | [inline, virtual] |
Implements TessResultCallback< R >.
Definition at line 518 of file tesscallback.h.
{
if (!del) {
R result = (object_->*member_)(p1_,p2_);
return result;
} else {
R result = (object_->*member_)(p1_,p2_);
// zero out the pointer to ensure segfault if used again
member_ = NULL;
delete this;
return result;
}
}