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

#include <tesscallback.h>

Inheritance diagram for _ConstTessMemberResultCallback_0_4< del, R, T, A1, A2, A3, A4 >:
TessResultCallback4< R, A1, A2, A3, A4 >

Public Types

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

Public Member Functions

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

Detailed Description

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

Definition at line 6543 of file tesscallback.h.

Member Typedef Documentation

◆ base

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

Definition at line 6545 of file tesscallback.h.

◆ MemberSignature

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

Definition at line 6546 of file tesscallback.h.

Constructor & Destructor Documentation

◆ _ConstTessMemberResultCallback_0_4()

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

Definition at line 6553 of file tesscallback.h.

6554  : object_(object),
6555  member_(member) { }

Member Function Documentation

◆ Run()

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

Implements TessResultCallback4< R, A1, A2, A3, A4 >.

Definition at line 6557 of file tesscallback.h.

6557  {
6558  if (!del) {
6559  R result = (object_->*member_)(a1,a2,a3,a4);
6560  return result;
6561  } else {
6562  R result = (object_->*member_)(a1,a2,a3,a4);
6563  // zero out the pointer to ensure segfault if used again
6564  member_ = nullptr;
6565  delete this;
6566  return result;
6567  }
6568  }

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