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

#include <tesscallback.h>

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

Public Types

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

Public Member Functions

 _ConstTessMemberResultCallback_1_0 (const 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 _ConstTessMemberResultCallback_1_0< del, void, T, P1 >

Definition at line 318 of file tesscallback.h.

Member Typedef Documentation

◆ base

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

Definition at line 320 of file tesscallback.h.

◆ MemberSignature

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

Definition at line 321 of file tesscallback.h.

Constructor & Destructor Documentation

◆ _ConstTessMemberResultCallback_1_0()

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

Definition at line 329 of file tesscallback.h.

330  : object_(object),
331  member_(member), p1_(p1) { }

Member Function Documentation

◆ Run()

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

Implements TessClosure.

Definition at line 333 of file tesscallback.h.

333  {
334  if (!del) {
335  (object_->*member_)(p1_);
336  } else {
337  (object_->*member_)(p1_);
338  // zero out the pointer to ensure segfault if used again
339  member_ = nullptr;
340  delete this;
341  }
342  }

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