tesseract  4.0.0-1-g2a2b
_ConstTessMemberResultCallback_0_4< del, void, T, A1, A2, A3, A4 > Class Template Reference

#include <tesscallback.h>

Inheritance diagram for _ConstTessMemberResultCallback_0_4< del, void, T, A1, A2, A3, A4 >:
TessCallback4< A1, A2, A3, A4 >

Public Types

typedef TessCallback4< A1, A2, A3, A4 > base
 
typedef void(T::* MemberSignature) (A1, A2, A3, A4) const
 

Public Member Functions

 _ConstTessMemberResultCallback_0_4 (const T *object, MemberSignature member)
 
virtual void Run (A1 a1, A2 a2, A3 a3, A4 a4)
 
- Public Member Functions inherited from TessCallback4< A1, A2, A3, A4 >
virtual ~TessCallback4 ()
 

Detailed Description

template<bool del, class T, class A1, class A2, class A3, class A4>
class _ConstTessMemberResultCallback_0_4< del, void, T, A1, A2, A3, A4 >

Definition at line 6572 of file tesscallback.h.

Member Typedef Documentation

◆ base

template<bool del, class T , class A1 , class A2 , class A3 , class A4 >
typedef TessCallback4<A1,A2,A3,A4> _ConstTessMemberResultCallback_0_4< del, void, T, A1, A2, A3, A4 >::base

Definition at line 6574 of file tesscallback.h.

◆ MemberSignature

template<bool del, class T , class A1 , class A2 , class A3 , class A4 >
typedef void(T::* _ConstTessMemberResultCallback_0_4< del, void, T, A1, A2, A3, A4 >::MemberSignature) (A1, A2, A3, A4) const

Definition at line 6575 of file tesscallback.h.

Constructor & Destructor Documentation

◆ _ConstTessMemberResultCallback_0_4()

template<bool del, class T , class A1 , class A2 , class A3 , class A4 >
_ConstTessMemberResultCallback_0_4< del, void, T, A1, A2, A3, A4 >::_ConstTessMemberResultCallback_0_4 ( const T *  object,
MemberSignature  member 
)
inline

Definition at line 6582 of file tesscallback.h.

6583  : object_(object),
6584  member_(member) { }

Member Function Documentation

◆ Run()

template<bool del, class T , class A1 , class A2 , class A3 , class A4 >
virtual void _ConstTessMemberResultCallback_0_4< del, void, T, A1, A2, A3, A4 >::Run ( A1  a1,
A2  a2,
A3  a3,
A4  a4 
)
inlinevirtual

Implements TessCallback4< A1, A2, A3, A4 >.

Definition at line 6586 of file tesscallback.h.

6586  {
6587  if (!del) {
6588  (object_->*member_)(a1,a2,a3,a4);
6589  } else {
6590  (object_->*member_)(a1,a2,a3,a4);
6591  // zero out the pointer to ensure segfault if used again
6592  member_ = nullptr;
6593  delete this;
6594  }
6595  }

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