tesseract  4.0.0-1-g2a2b
_TessFunctionResultCallback_0_1< del, void, A1 > Class Template Reference

#include <tesscallback.h>

Inheritance diagram for _TessFunctionResultCallback_0_1< del, void, A1 >:
TessCallback1< A1 >

Public Types

typedef TessCallback1< A1 > base
 
typedef void(* FunctionSignature) (A1)
 

Public Member Functions

 _TessFunctionResultCallback_0_1 (FunctionSignature function)
 
virtual void Run (A1 a1)
 
- Public Member Functions inherited from TessCallback1< A1 >
virtual ~TessCallback1 ()
 

Detailed Description

template<bool del, class A1>
class _TessFunctionResultCallback_0_1< del, void, A1 >

Definition at line 1914 of file tesscallback.h.

Member Typedef Documentation

◆ base

template<bool del, class A1 >
typedef TessCallback1<A1> _TessFunctionResultCallback_0_1< del, void, A1 >::base

Definition at line 1917 of file tesscallback.h.

◆ FunctionSignature

template<bool del, class A1 >
typedef void(* _TessFunctionResultCallback_0_1< del, void, A1 >::FunctionSignature) (A1)

Definition at line 1918 of file tesscallback.h.

Constructor & Destructor Documentation

◆ _TessFunctionResultCallback_0_1()

template<bool del, class A1 >
_TessFunctionResultCallback_0_1< del, void, A1 >::_TessFunctionResultCallback_0_1 ( FunctionSignature  function)
inline

Definition at line 1924 of file tesscallback.h.

1926  : function_(function) {
1927  }

Member Function Documentation

◆ Run()

template<bool del, class A1 >
virtual void _TessFunctionResultCallback_0_1< del, void, A1 >::Run ( A1  a1)
inlinevirtual

Implements TessCallback1< A1 >.

Definition at line 1929 of file tesscallback.h.

1929  {
1930  if (!del) {
1931  (*function_)(a1);
1932  } else {
1933  (*function_)(a1);
1934  // zero out the pointer to ensure segfault if used again
1935  function_ = nullptr;
1936  delete this;
1937  }
1938  }

The documentation for this class was generated from the following file: