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

#include <tesscallback.h>

Inheritance diagram for _TessFunctionResultCallback_0_2< del, void, A1, A2 >:
TessCallback2< A1, A2 >

Public Types

typedef TessCallback2< A1, A2 > base
 
typedef void(* FunctionSignature) (A1, A2)
 

Public Member Functions

 _TessFunctionResultCallback_0_2 (FunctionSignature function)
 
virtual void Run (A1 a1, A2 a2)
 
- Public Member Functions inherited from TessCallback2< A1, A2 >
virtual ~TessCallback2 ()
 

Detailed Description

template<bool del, class A1, class A2>
class _TessFunctionResultCallback_0_2< del, void, A1, A2 >

Definition at line 3519 of file tesscallback.h.

Member Typedef Documentation

◆ base

template<bool del, class A1 , class A2 >
typedef TessCallback2<A1,A2> _TessFunctionResultCallback_0_2< del, void, A1, A2 >::base

Definition at line 3522 of file tesscallback.h.

◆ FunctionSignature

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

Definition at line 3523 of file tesscallback.h.

Constructor & Destructor Documentation

◆ _TessFunctionResultCallback_0_2()

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

Definition at line 3529 of file tesscallback.h.

3531  : function_(function) {
3532  }

Member Function Documentation

◆ Run()

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

Implements TessCallback2< A1, A2 >.

Definition at line 3534 of file tesscallback.h.

3534  {
3535  if (!del) {
3536  (*function_)(a1,a2);
3537  } else {
3538  (*function_)(a1,a2);
3539  // zero out the pointer to ensure segfault if used again
3540  function_ = nullptr;
3541  delete this;
3542  }
3543  }

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