<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>tesseract: _TessFunctionResultCallback_0_1&lt; del, R, A1 &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">tesseract
   &#160;<span id="projectnumber">3.05.02</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a03177.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="a03174.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">_TessFunctionResultCallback_0_1&lt; del, R, A1 &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="a00596_source.html">tesscallback.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for _TessFunctionResultCallback_0_1&lt; del, R, A1 &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="a03177.png" usemap="#_5FTessFunctionResultCallback_5F0_5F1_3C_20del_2C_20R_2C_20A1_20_3E_map" alt=""/>
  <map id="_5FTessFunctionResultCallback_5F0_5F1_3C_20del_2C_20R_2C_20A1_20_3E_map" name="_5FTessFunctionResultCallback_5F0_5F1_3C_20del_2C_20R_2C_20A1_20_3E_map">
<area href="a03133.html" alt="TessResultCallback1&lt; R, A1 &gt;" shape="rect" coords="0,0,288,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a171e7f2ec1e8abda274ac3ae2c4f4833"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="a03133.html">TessResultCallback1</a>&lt; R, A1 &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03177.html#a171e7f2ec1e8abda274ac3ae2c4f4833">base</a></td></tr>
<tr class="separator:a171e7f2ec1e8abda274ac3ae2c4f4833"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada72e74914a9bfb828249a4bab9de070"><td class="memItemLeft" align="right" valign="top">typedef R(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03177.html#ada72e74914a9bfb828249a4bab9de070">FunctionSignature</a>) (A1)</td></tr>
<tr class="separator:ada72e74914a9bfb828249a4bab9de070"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab23c675974433ca0703e94bdb7630c88"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03177.html#ab23c675974433ca0703e94bdb7630c88">_TessFunctionResultCallback_0_1</a> (<a class="el" href="a03177.html#ada72e74914a9bfb828249a4bab9de070">FunctionSignature</a> function)</td></tr>
<tr class="separator:ab23c675974433ca0703e94bdb7630c88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01b04bdd9dc1add6a513973893cbe735"><td class="memItemLeft" align="right" valign="top">virtual R&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03177.html#a01b04bdd9dc1add6a513973893cbe735">Run</a> (A1 a1)</td></tr>
<tr class="separator:a01b04bdd9dc1add6a513973893cbe735"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_a03133"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_a03133')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="a03133.html">TessResultCallback1&lt; R, A1 &gt;</a></td></tr>
<tr class="memitem:a835c7946edf6b545dbba1a7d95e82607 inherit pub_methods_a03133"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03133.html#a835c7946edf6b545dbba1a7d95e82607">~TessResultCallback1</a> ()</td></tr>
<tr class="separator:a835c7946edf6b545dbba1a7d95e82607 inherit pub_methods_a03133"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;bool del, class R, class A1&gt;<br />
class _TessFunctionResultCallback_0_1&lt; del, R, A1 &gt;</h3>


<p class="definition">Definition at line <a class="el" href="a00596_source.html#l01885">1885</a> of file <a class="el" href="a00596_source.html">tesscallback.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a171e7f2ec1e8abda274ac3ae2c4f4833"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a171e7f2ec1e8abda274ac3ae2c4f4833">&#9670;&nbsp;</a></span>base</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;bool del, class R, class A1&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="a03133.html">TessResultCallback1</a>&lt;R,A1&gt; <a class="el" href="a03177.html">_TessFunctionResultCallback_0_1</a>&lt; del, R, A1 &gt;::<a class="el" href="a03177.html#a171e7f2ec1e8abda274ac3ae2c4f4833">base</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="a00596_source.html#l01887">1887</a> of file <a class="el" href="a00596_source.html">tesscallback.h</a>.</p>

</div>
</div>
<a id="ada72e74914a9bfb828249a4bab9de070"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada72e74914a9bfb828249a4bab9de070">&#9670;&nbsp;</a></span>FunctionSignature</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;bool del, class R, class A1&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef R(* <a class="el" href="a03177.html">_TessFunctionResultCallback_0_1</a>&lt; del, R, A1 &gt;::FunctionSignature) (A1)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="a00596_source.html#l01888">1888</a> of file <a class="el" href="a00596_source.html">tesscallback.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ab23c675974433ca0703e94bdb7630c88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab23c675974433ca0703e94bdb7630c88">&#9670;&nbsp;</a></span>_TessFunctionResultCallback_0_1()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;bool del, class R, class A1&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a03177.html">_TessFunctionResultCallback_0_1</a>&lt; del, R, A1 &gt;::<a class="el" href="a03177.html">_TessFunctionResultCallback_0_1</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a03177.html#ada72e74914a9bfb828249a4bab9de070">FunctionSignature</a>&#160;</td>
          <td class="paramname"><em>function</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="a00596_source.html#l01894">1894</a> of file <a class="el" href="a00596_source.html">tesscallback.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>&#160;    : function_(<span class="keyword">function</span>) {</div><div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>&#160;  }</div></div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a01b04bdd9dc1add6a513973893cbe735"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01b04bdd9dc1add6a513973893cbe735">&#9670;&nbsp;</a></span>Run()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;bool del, class R, class A1&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual R <a class="el" href="a03177.html">_TessFunctionResultCallback_0_1</a>&lt; del, R, A1 &gt;::Run </td>
          <td>(</td>
          <td class="paramtype">A1&#160;</td>
          <td class="paramname"><em>a1</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="a03133.html#a15949cddc2970f837e3eef7e7dc84fce">TessResultCallback1&lt; R, A1 &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="a00596_source.html#l01899">1899</a> of file <a class="el" href="a00596_source.html">tesscallback.h</a>.</p>
<div class="fragment"><div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>&#160;                       {</div><div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>&#160;    <span class="keywordflow">if</span> (!del) {</div><div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>&#160;      R result = (*function_)(a1);</div><div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>&#160;      <span class="keywordflow">return</span> result;</div><div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>&#160;    } <span class="keywordflow">else</span> {</div><div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>&#160;      R result = (*function_)(a1);</div><div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>&#160;      <span class="comment">//  zero out the pointer to ensure segfault if used again</span></div><div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>&#160;      function_ = NULL;</div><div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>&#160;      <span class="keyword">delete</span> <span class="keyword">this</span>;</div><div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>&#160;      <span class="keywordflow">return</span> result;</div><div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>&#160;    }</div><div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>&#160;  }</div></div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>ccutil/<a class="el" href="a00596_source.html">tesscallback.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="a03177.html">_TessFunctionResultCallback_0_1</a></li>
    <li class="footer">Generated on Mon Oct 29 2018 11:27:57 for tesseract by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>