All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
_TessFunctionResultCallback_0_0< del, void > Class Template Reference

#include <tesscallback.h>

Inheritance diagram for _TessFunctionResultCallback_0_0< del, void >:

Public Types

typedef TessClosure base
typedef void(* FunctionSignature )()

Public Member Functions

 _TessFunctionResultCallback_0_0 (FunctionSignature function)
virtual void Run ()
- Public Member Functions inherited from TessClosure
virtual ~TessClosure ()

Detailed Description

template<bool del>
class _TessFunctionResultCallback_0_0< del, void >

Definition at line 234 of file tesscallback.h.

Member Typedef Documentation

template<bool del>
typedef TessClosure _TessFunctionResultCallback_0_0< del, void >::base

Definition at line 237 of file tesscallback.h.

template<bool del>
typedef void(* _TessFunctionResultCallback_0_0< del, void >::FunctionSignature)()

Definition at line 238 of file tesscallback.h.

Constructor & Destructor Documentation

template<bool del>
_TessFunctionResultCallback_0_0< del, void >::_TessFunctionResultCallback_0_0 ( FunctionSignature  function)

Definition at line 244 of file tesscallback.h.

246  : function_(function) {
247  }

Member Function Documentation

template<bool del>
virtual void _TessFunctionResultCallback_0_0< del, void >::Run ( )

Implements TessClosure.

Definition at line 249 of file tesscallback.h.

249  {
250  if (!del) {
251  (*function_)();
252  } else {
253  (*function_)();
254  // zero out the pointer to ensure segfault if used again
255  function_ = NULL;
256  delete this;
257  }
258  }
#define NULL
Definition: host.h:144

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