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

#include <tesscallback.h>

Inheritance diagram for _ConstTessMemberResultCallback_0_1< del, void, T, A1 >:
TessCallback1< A1 >

Public Types

typedef TessCallback1< A1 > base
 
typedef void(T::* MemberSignature) (A1) const
 

Public Member Functions

 _ConstTessMemberResultCallback_0_1 (const T *object, MemberSignature member)
 
virtual void Run (A1 a1)
 
- Public Member Functions inherited from TessCallback1< A1 >
virtual ~TessCallback1 ()
 

Detailed Description

template<bool del, class T, class A1>
class _ConstTessMemberResultCallback_0_1< del, void, T, A1 >

Definition at line 1754 of file tesscallback.h.

Member Typedef Documentation

◆ base

template<bool del, class T , class A1 >
typedef TessCallback1<A1> _ConstTessMemberResultCallback_0_1< del, void, T, A1 >::base

Definition at line 1757 of file tesscallback.h.

◆ MemberSignature

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

Definition at line 1758 of file tesscallback.h.

Constructor & Destructor Documentation

◆ _ConstTessMemberResultCallback_0_1()

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

Definition at line 1765 of file tesscallback.h.

1767  : object_(object),
1768  member_(member) {
1769  }

Member Function Documentation

◆ Run()

template<bool del, class T , class A1 >
virtual void _ConstTessMemberResultCallback_0_1< del, void, T, A1 >::Run ( A1  a1)
inlinevirtual

Implements TessCallback1< A1 >.

Definition at line 1771 of file tesscallback.h.

1771  {
1772  if (!del) {
1773  (object_->*member_)(a1);
1774  } else {
1775  (object_->*member_)(a1);
1776  // zero out the pointer to ensure segfault if used again
1777  member_ = nullptr;
1778  delete this;
1779  }
1780  }

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