|
tesseract
3.03
|
#include <tesscallback.h>
Public Types | |
| typedef TessResultCallback1< R, A1 > | base |
| typedef R(* | FunctionSignature )(P1, P2, A1) |
Public Member Functions | |
| _TessFunctionResultCallback_2_1 (FunctionSignature function, P1 p1, P2 p2) | |
| virtual R | Run (A1 a1) |
Definition at line 2320 of file tesscallback.h.
| typedef TessResultCallback1<R,A1> _TessFunctionResultCallback_2_1< del, R, P1, P2, A1 >::base |
Definition at line 2322 of file tesscallback.h.
| typedef R(* _TessFunctionResultCallback_2_1< del, R, P1, P2, A1 >::FunctionSignature)(P1, P2, A1) |
Definition at line 2323 of file tesscallback.h.
| _TessFunctionResultCallback_2_1< del, R, P1, P2, A1 >::_TessFunctionResultCallback_2_1 | ( | FunctionSignature | function, |
| P1 | p1, | ||
| P2 | p2 | ||
| ) | [inline] |
Definition at line 2331 of file tesscallback.h.
: function_(function), p1_(p1), p2_(p2) { }
| virtual R _TessFunctionResultCallback_2_1< del, R, P1, P2, A1 >::Run | ( | A1 | a1 | ) | [inline, virtual] |
Implements TessResultCallback1< R, A1 >.
Definition at line 2334 of file tesscallback.h.
{
if (!del) {
R result = (*function_)(p1_,p2_,a1);
return result;
} else {
R result = (*function_)(p1_,p2_,a1);
// zero out the pointer to ensure segfault if used again
function_ = NULL;
delete this;
return result;
}
}