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

#include <tesscallback.h>

Inheritance diagram for _TessMemberResultCallback_0_0< del, void, T >:
TessClosure

Public Types

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

Public Member Functions

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

Detailed Description

template<bool del, class T>
class _TessMemberResultCallback_0_0< del, void, T >

Definition at line 155 of file tesscallback.h.

Member Typedef Documentation

◆ base

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

Definition at line 158 of file tesscallback.h.

◆ MemberSignature

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

Definition at line 159 of file tesscallback.h.

Constructor & Destructor Documentation

◆ _TessMemberResultCallback_0_0()

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

Definition at line 166 of file tesscallback.h.

168  : object_(object),
169  member_(member) {
170  }

Member Function Documentation

◆ Run()

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

Implements TessClosure.

Definition at line 172 of file tesscallback.h.

172  {
173  if (!del) {
174  (object_->*member_)();
175  } else {
176  (object_->*member_)();
177  // zero out the pointer to ensure segfault if used again
178  member_ = nullptr;
179  delete this;
180  }
181  }

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