Tesseract
3.02
|
#include <tesscallback.h>
Public Types | |
typedef TessClosure | base |
typedef void(* | FunctionSignature )() |
Public Member Functions | |
_TessFunctionResultCallback_0_0 (FunctionSignature function) | |
virtual void | Run () |
Definition at line 234 of file tesscallback.h.
typedef TessClosure _TessFunctionResultCallback_0_0< del, void >::base |
Definition at line 237 of file tesscallback.h.
typedef void(* _TessFunctionResultCallback_0_0< del, void >::FunctionSignature)() |
Definition at line 238 of file tesscallback.h.
_TessFunctionResultCallback_0_0< del, void >::_TessFunctionResultCallback_0_0 | ( | FunctionSignature | function | ) | [inline] |
Definition at line 244 of file tesscallback.h.
: function_(function) {
}
virtual void _TessFunctionResultCallback_0_0< del, void >::Run | ( | ) | [inline, virtual] |
Implements TessClosure.
Definition at line 249 of file tesscallback.h.
{ if (!del) { (*function_)(); } else { (*function_)(); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } }