tesseract  4.0.0-1-g2a2b
_TessMemberResultCallback_1_0< del, void, T, P1 > Class Template Reference

#include <tesscallback.h>

Inheritance diagram for _TessMemberResultCallback_1_0< del, void, T, P1 >:
TessClosure

Public Types

typedef TessClosure base
 
typedef void(T::* MemberSignature) (P1)
 

Public Member Functions

 _TessMemberResultCallback_1_0 (T *object, MemberSignature member, P1 p1)
 
virtual void Run ()
 
- Public Member Functions inherited from TessClosure
virtual ~TessClosure ()
 

Detailed Description

template<bool del, class T, class P1>
class _TessMemberResultCallback_1_0< del, void, T, P1 >

Definition at line 392 of file tesscallback.h.

Member Typedef Documentation

◆ base

template<bool del, class T , class P1 >
typedef TessClosure _TessMemberResultCallback_1_0< del, void, T, P1 >::base

Definition at line 394 of file tesscallback.h.

◆ MemberSignature

template<bool del, class T , class P1 >
typedef void(T::* _TessMemberResultCallback_1_0< del, void, T, P1 >::MemberSignature) (P1)

Definition at line 395 of file tesscallback.h.

Constructor & Destructor Documentation

◆ _TessMemberResultCallback_1_0()

template<bool del, class T , class P1 >
_TessMemberResultCallback_1_0< del, void, T, P1 >::_TessMemberResultCallback_1_0 ( T *  object,
MemberSignature  member,
P1  p1 
)
inline

Definition at line 403 of file tesscallback.h.

404  : object_(object),
405  member_(member), p1_(p1) { }

Member Function Documentation

◆ Run()

template<bool del, class T , class P1 >
virtual void _TessMemberResultCallback_1_0< del, void, T, P1 >::Run ( )
inlinevirtual

Implements TessClosure.

Definition at line 407 of file tesscallback.h.

407  {
408  if (!del) {
409  (object_->*member_)(p1_);
410  } else {
411  (object_->*member_)(p1_);
412  // zero out the pointer to ensure segfault if used again
413  member_ = nullptr;
414  delete this;
415  }
416  }

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