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

#include <tesscallback.h>

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

Public Types

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

Public Member Functions

 _TessMemberResultCallback_0_1 (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 _TessMemberResultCallback_0_1< del, void, T, A1 >

Definition at line 1835 of file tesscallback.h.

Member Typedef Documentation

◆ base

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

Definition at line 1838 of file tesscallback.h.

◆ MemberSignature

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

Definition at line 1839 of file tesscallback.h.

Constructor & Destructor Documentation

◆ _TessMemberResultCallback_0_1()

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

Definition at line 1846 of file tesscallback.h.

1848  : object_(object),
1849  member_(member) {
1850  }

Member Function Documentation

◆ Run()

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

Implements TessCallback1< A1 >.

Definition at line 1852 of file tesscallback.h.

1852  {
1853  if (!del) {
1854  (object_->*member_)(a1);
1855  } else {
1856  (object_->*member_)(a1);
1857  // zero out the pointer to ensure segfault if used again
1858  member_ = nullptr;
1859  delete this;
1860  }
1861  }

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