tesseract  4.0.0-1-g2a2b
_TessMemberResultCallback_5_0< del, R, T, P1, P2, P3, P4, P5 > Class Template Reference

#include <tesscallback.h>

Inheritance diagram for _TessMemberResultCallback_5_0< del, R, T, P1, P2, P3, P4, P5 >:
TessResultCallback< R >

Public Types

typedef TessResultCallback< R > base
 
typedef R(T::* MemberSignature) (P1, P2, P3, P4, P5)
 

Public Member Functions

 _TessMemberResultCallback_5_0 (T *object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5)
 
virtual R Run ()
 
- Public Member Functions inherited from TessResultCallback< R >
virtual ~TessResultCallback ()
 

Detailed Description

template<bool del, class R, class T, class P1, class P2, class P3, class P4, class P5>
class _TessMemberResultCallback_5_0< del, R, T, P1, P2, P3, P4, P5 >

Definition at line 1266 of file tesscallback.h.

Member Typedef Documentation

◆ base

template<bool del, class R, class T, class P1, class P2, class P3, class P4, class P5>
typedef TessResultCallback<R> _TessMemberResultCallback_5_0< del, R, T, P1, P2, P3, P4, P5 >::base

Definition at line 1268 of file tesscallback.h.

◆ MemberSignature

template<bool del, class R, class T, class P1, class P2, class P3, class P4, class P5>
typedef R(T::* _TessMemberResultCallback_5_0< del, R, T, P1, P2, P3, P4, P5 >::MemberSignature) (P1, P2, P3, P4, P5)

Definition at line 1269 of file tesscallback.h.

Constructor & Destructor Documentation

◆ _TessMemberResultCallback_5_0()

template<bool del, class R, class T, class P1, class P2, class P3, class P4, class P5>
_TessMemberResultCallback_5_0< del, R, T, P1, P2, P3, P4, P5 >::_TessMemberResultCallback_5_0 ( T *  object,
MemberSignature  member,
P1  p1,
P2  p2,
P3  p3,
P4  p4,
P5  p5 
)
inline

Definition at line 1281 of file tesscallback.h.

1282  : object_(object),
1283  member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { }

Member Function Documentation

◆ Run()

template<bool del, class R, class T, class P1, class P2, class P3, class P4, class P5>
virtual R _TessMemberResultCallback_5_0< del, R, T, P1, P2, P3, P4, P5 >::Run ( )
inlinevirtual

Implements TessResultCallback< R >.

Definition at line 1285 of file tesscallback.h.

1285  {
1286  if (!del) {
1287  R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_);
1288  return result;
1289  } else {
1290  R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_);
1291  // zero out the pointer to ensure segfault if used again
1292  member_ = nullptr;
1293  delete this;
1294  return result;
1295  }
1296  }

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