Tesseract
3.02
|
#include <tesscallback.h>
Public Types | |
typedef TessResultCallback< R > | base |
typedef R(* | FunctionSignature )() |
Public Member Functions | |
_TessFunctionResultCallback_0_0 (FunctionSignature function) | |
virtual R | Run () |
Definition at line 205 of file tesscallback.h.
typedef TessResultCallback<R> _TessFunctionResultCallback_0_0< del, R >::base |
Definition at line 207 of file tesscallback.h.
typedef R(* _TessFunctionResultCallback_0_0< del, R >::FunctionSignature)() |
Definition at line 208 of file tesscallback.h.
_TessFunctionResultCallback_0_0< del, R >::_TessFunctionResultCallback_0_0 | ( | FunctionSignature | function | ) | [inline] |
Definition at line 214 of file tesscallback.h.
: function_(function) {
}
virtual R _TessFunctionResultCallback_0_0< del, R >::Run | ( | ) | [inline, virtual] |
Implements TessResultCallback< R >.
Definition at line 219 of file tesscallback.h.
{ if (!del) { R result = (*function_)(); return result; } else { R result = (*function_)(); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } }