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

#include <tesscallback.h>

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

Public Types

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

Public Member Functions

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

Detailed Description

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

Definition at line 74 of file tesscallback.h.

Member Typedef Documentation

◆ base

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

Definition at line 77 of file tesscallback.h.

◆ MemberSignature

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

Definition at line 78 of file tesscallback.h.

Constructor & Destructor Documentation

◆ _ConstTessMemberResultCallback_0_0()

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

Definition at line 85 of file tesscallback.h.

87  : object_(object),
88  member_(member) {
89  }

Member Function Documentation

◆ Run()

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

Implements TessClosure.

Definition at line 91 of file tesscallback.h.

91  {
92  if (!del) {
93  (object_->*member_)();
94  } else {
95  (object_->*member_)();
96  // zero out the pointer to ensure segfault if used again
97  member_ = nullptr;
98  delete this;
99  }
100  }

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