|
tesseract 3.04.01
|
#include <tesscallback.h>
Public Types | |
| typedef TessResultCallback< R > | base |
| typedef R(* | FunctionSignature )(P1, P2) |
Public Member Functions | |
| _TessFunctionResultCallback_2_0 (FunctionSignature function, P1 p1, P2 p2) | |
| virtual R | Run () |
Definition at line 656 of file tesscallback.h.
| typedef TessResultCallback<R> _TessFunctionResultCallback_2_0< del, R, P1, P2 >::base |
Definition at line 658 of file tesscallback.h.
| typedef R(* _TessFunctionResultCallback_2_0< del, R, P1, P2 >::FunctionSignature)(P1, P2) |
Definition at line 659 of file tesscallback.h.
| _TessFunctionResultCallback_2_0< del, R, P1, P2 >::_TessFunctionResultCallback_2_0 | ( | FunctionSignature | function, |
| P1 | p1, | ||
| P2 | p2 | ||
| ) | [inline] |
Definition at line 667 of file tesscallback.h.
: function_(function), p1_(p1), p2_(p2) { }
| virtual R _TessFunctionResultCallback_2_0< del, R, P1, P2 >::Run | ( | ) | [inline, virtual] |
Implements TessResultCallback< R >.
Definition at line 670 of file tesscallback.h.
{
if (!del) {
R result = (*function_)(p1_,p2_);
return result;
} else {
R result = (*function_)(p1_,p2_);
// zero out the pointer to ensure segfault if used again
function_ = NULL;
delete this;
return result;
}
}