<!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: tesseract::DawgPositionVector Class 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('a04533.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-methods">Public Member Functions</a> &#124;
<a href="a04530.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">tesseract::DawgPositionVector Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="a01139_source.html">dawg.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for tesseract::DawgPositionVector:</div>
<div class="dyncontent">
 <div class="center">
  <img src="a04533.png" usemap="#tesseract::DawgPositionVector_map" alt=""/>
  <map id="tesseract::DawgPositionVector_map" name="tesseract::DawgPositionVector_map">
<area href="a02297.html" alt="GenericVector&lt; DawgPosition &gt;" shape="rect" coords="0,0,195,24"/>
</map>
 </div></div>
<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:a9a3da3d468cd8cc03f2a56ac9fe65ea0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a04533.html#a9a3da3d468cd8cc03f2a56ac9fe65ea0">clear</a> ()</td></tr>
<tr class="separator:a9a3da3d468cd8cc03f2a56ac9fe65ea0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ee8fd1c42204db7513e0c040868ce7c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a04533.html#a2ee8fd1c42204db7513e0c040868ce7c">add_unique</a> (const <a class="el" href="a04529.html">DawgPosition</a> &amp;new_pos, bool debug, const char *debug_msg)</td></tr>
<tr class="separator:a2ee8fd1c42204db7513e0c040868ce7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_a02297"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_a02297')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="a02297.html">GenericVector&lt; DawgPosition &gt;</a></td></tr>
<tr class="memitem:a60d42eebf02708482a8b506edd417990 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a60d42eebf02708482a8b506edd417990">GenericVector</a> ()</td></tr>
<tr class="separator:a60d42eebf02708482a8b506edd417990 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28a69767bcadb6058a2a9df4afecd5fc inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a28a69767bcadb6058a2a9df4afecd5fc">GenericVector</a> (int <a class="el" href="a02297.html#a20cfad5c58c50cb85a9529d8ddbd96af">size</a>, DawgPosition init_val)</td></tr>
<tr class="separator:a28a69767bcadb6058a2a9df4afecd5fc inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b61cd1cd756770518f5ac30f817a9bf inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a2b61cd1cd756770518f5ac30f817a9bf">GenericVector</a> (const <a class="el" href="a02297.html">GenericVector</a> &amp;other)</td></tr>
<tr class="separator:a2b61cd1cd756770518f5ac30f817a9bf inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af73fadcdb08f0a12a5615f2bcf6fa6a8 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a02297.html">GenericVector</a>&lt; DawgPosition &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#af73fadcdb08f0a12a5615f2bcf6fa6a8">operator+=</a> (const <a class="el" href="a02297.html">GenericVector</a> &amp;other)</td></tr>
<tr class="separator:af73fadcdb08f0a12a5615f2bcf6fa6a8 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc7df2256174b32632e4d5b6c8d05d29 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#acc7df2256174b32632e4d5b6c8d05d29">operator+=</a> (DawgPosition t)</td></tr>
<tr class="separator:acc7df2256174b32632e4d5b6c8d05d29 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6fd5b3891b276c10add96f9411bec05 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a02297.html">GenericVector</a>&lt; DawgPosition &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#af6fd5b3891b276c10add96f9411bec05">operator=</a> (const <a class="el" href="a02297.html">GenericVector</a> &amp;other)</td></tr>
<tr class="separator:af6fd5b3891b276c10add96f9411bec05 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49840c8743a063b87839baef7e19b968 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a49840c8743a063b87839baef7e19b968">~GenericVector</a> ()</td></tr>
<tr class="separator:a49840c8743a063b87839baef7e19b968 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa225ea3fc9374961482bc804028317eb inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#aa225ea3fc9374961482bc804028317eb">reserve</a> (int <a class="el" href="a02297.html#a20cfad5c58c50cb85a9529d8ddbd96af">size</a>)</td></tr>
<tr class="separator:aa225ea3fc9374961482bc804028317eb inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0214c8c21da9eb57dfebc78611d0cd6 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#af0214c8c21da9eb57dfebc78611d0cd6">double_the_size</a> ()</td></tr>
<tr class="separator:af0214c8c21da9eb57dfebc78611d0cd6 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6751521fd3eb461d81fc83ef93a0def3 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a6751521fd3eb461d81fc83ef93a0def3">init_to_size</a> (int <a class="el" href="a02297.html#a20cfad5c58c50cb85a9529d8ddbd96af">size</a>, DawgPosition t)</td></tr>
<tr class="separator:a6751521fd3eb461d81fc83ef93a0def3 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09005e8f2b51d033d60eb5690aa5d112 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a09005e8f2b51d033d60eb5690aa5d112">resize_no_init</a> (int <a class="el" href="a02297.html#a20cfad5c58c50cb85a9529d8ddbd96af">size</a>)</td></tr>
<tr class="separator:a09005e8f2b51d033d60eb5690aa5d112 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20cfad5c58c50cb85a9529d8ddbd96af inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a20cfad5c58c50cb85a9529d8ddbd96af">size</a> () const</td></tr>
<tr class="separator:a20cfad5c58c50cb85a9529d8ddbd96af inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c273622446ec7b5a6669fa9c9fdd8e5 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a1c273622446ec7b5a6669fa9c9fdd8e5">size_reserved</a> () const</td></tr>
<tr class="separator:a1c273622446ec7b5a6669fa9c9fdd8e5 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6af4e0a2a30dda267d19bf783ae22eb7 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a6af4e0a2a30dda267d19bf783ae22eb7">length</a> () const</td></tr>
<tr class="separator:a6af4e0a2a30dda267d19bf783ae22eb7 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a172c4aa23ba397e24319ae095281cbcc inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a172c4aa23ba397e24319ae095281cbcc">empty</a> () const</td></tr>
<tr class="separator:a172c4aa23ba397e24319ae095281cbcc inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd0a875f98a1d78613ed3521d96e5300 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">DawgPosition &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#abd0a875f98a1d78613ed3521d96e5300">get</a> (int index) const</td></tr>
<tr class="separator:abd0a875f98a1d78613ed3521d96e5300 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48b82547ebbaa5fedecfdebe7e2f155a inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">DawgPosition &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a48b82547ebbaa5fedecfdebe7e2f155a">back</a> () const</td></tr>
<tr class="separator:a48b82547ebbaa5fedecfdebe7e2f155a inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd51f3f981284adb20bdf3b0bfd1c1f7 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">DawgPosition &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#afd51f3f981284adb20bdf3b0bfd1c1f7">operator[]</a> (int index) const</td></tr>
<tr class="separator:afd51f3f981284adb20bdf3b0bfd1c1f7 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0621dd57ce58dae3cb5f3d61e76bd233 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">DawgPosition&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a0621dd57ce58dae3cb5f3d61e76bd233">pop_back</a> ()</td></tr>
<tr class="separator:a0621dd57ce58dae3cb5f3d61e76bd233 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dee574daf4a3d4f0fc7048964f8f252 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a6dee574daf4a3d4f0fc7048964f8f252">get_index</a> (DawgPosition object) const</td></tr>
<tr class="separator:a6dee574daf4a3d4f0fc7048964f8f252 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a997e0fcaaa6b6533401dc54c0691e2e5 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a997e0fcaaa6b6533401dc54c0691e2e5">contains</a> (DawgPosition object) const</td></tr>
<tr class="separator:a997e0fcaaa6b6533401dc54c0691e2e5 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1aae0b1c22248f264dad02481123398 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">DawgPosition&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#ac1aae0b1c22248f264dad02481123398">contains_index</a> (int index) const</td></tr>
<tr class="separator:ac1aae0b1c22248f264dad02481123398 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dc89fe2a365b04a61017f9d78c1a303 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a0dc89fe2a365b04a61017f9d78c1a303">push_back</a> (DawgPosition object)</td></tr>
<tr class="separator:a0dc89fe2a365b04a61017f9d78c1a303 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a393f9f8dcc55ad759a5c7fbdc4840a89 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a393f9f8dcc55ad759a5c7fbdc4840a89">push_back_new</a> (DawgPosition object)</td></tr>
<tr class="separator:a393f9f8dcc55ad759a5c7fbdc4840a89 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae08e7cece0097ad356b5e565cbb2cf0b inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#ae08e7cece0097ad356b5e565cbb2cf0b">push_front</a> (DawgPosition object)</td></tr>
<tr class="separator:ae08e7cece0097ad356b5e565cbb2cf0b inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a067b7833ee66238b7b5e230404525fcb inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a067b7833ee66238b7b5e230404525fcb">set</a> (DawgPosition t, int index)</td></tr>
<tr class="separator:a067b7833ee66238b7b5e230404525fcb inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57ca5259541548a97bcfd4d0925a27ff inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a57ca5259541548a97bcfd4d0925a27ff">insert</a> (DawgPosition t, int index)</td></tr>
<tr class="separator:a57ca5259541548a97bcfd4d0925a27ff inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fd37a240a42f1c3052e8d28614d3702 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a3fd37a240a42f1c3052e8d28614d3702">remove</a> (int index)</td></tr>
<tr class="separator:a3fd37a240a42f1c3052e8d28614d3702 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a980882b5ebc3e72fdedbdbe345196f21 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a980882b5ebc3e72fdedbdbe345196f21">truncate</a> (int <a class="el" href="a02297.html#a20cfad5c58c50cb85a9529d8ddbd96af">size</a>)</td></tr>
<tr class="separator:a980882b5ebc3e72fdedbdbe345196f21 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2bbca5b3258035a333b62679835a253 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#af2bbca5b3258035a333b62679835a253">set_clear_callback</a> (<a class="el" href="a03129.html">TessCallback1</a>&lt; DawgPosition &gt; *cb)</td></tr>
<tr class="separator:af2bbca5b3258035a333b62679835a253 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3ec670c7f68a95f84641a0ded8cb61f inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#aa3ec670c7f68a95f84641a0ded8cb61f">set_compare_callback</a> (<a class="el" href="a03141.html">TessResultCallback2</a>&lt; bool, DawgPosition const &amp;, DawgPosition const &amp; &gt; *cb)</td></tr>
<tr class="separator:aa3ec670c7f68a95f84641a0ded8cb61f inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9cdbff49b186574b83e43afba606fdd9 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a9cdbff49b186574b83e43afba606fdd9">clear</a> ()</td></tr>
<tr class="separator:a9cdbff49b186574b83e43afba606fdd9 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98f62dccd75224a60437c2761bd215cd inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a98f62dccd75224a60437c2761bd215cd">delete_data_pointers</a> ()</td></tr>
<tr class="separator:a98f62dccd75224a60437c2761bd215cd inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abae057ce589be25aae9b80958f84e34c inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#abae057ce589be25aae9b80958f84e34c">move</a> (<a class="el" href="a02297.html">GenericVector</a>&lt; DawgPosition &gt; *from)</td></tr>
<tr class="separator:abae057ce589be25aae9b80958f84e34c inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8745d1d8394e852d12398d0458684dee inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a8745d1d8394e852d12398d0458684dee">write</a> (FILE *f, <a class="el" href="a03141.html">TessResultCallback2</a>&lt; bool, FILE *, DawgPosition const &amp; &gt; *cb) const</td></tr>
<tr class="separator:a8745d1d8394e852d12398d0458684dee inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0efce3eef59f7b96d7058f114c49387 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#aa0efce3eef59f7b96d7058f114c49387">read</a> (FILE *f, <a class="el" href="a03149.html">TessResultCallback3</a>&lt; bool, FILE *, DawgPosition *, bool &gt; *cb, bool <a class="el" href="a02297.html#ac10b1de04fdfd4f5e4b90ac6d03f35b9">swap</a>)</td></tr>
<tr class="separator:aa0efce3eef59f7b96d7058f114c49387 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a206a6fe71c3780d862d97ef7c5fc9546 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a206a6fe71c3780d862d97ef7c5fc9546">Serialize</a> (FILE *fp) const</td></tr>
<tr class="separator:a206a6fe71c3780d862d97ef7c5fc9546 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e994fd938468ff4fc4b4a902e970876 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a3e994fd938468ff4fc4b4a902e970876">Serialize</a> (<a class="el" href="a02917.html">tesseract::TFile</a> *fp) const</td></tr>
<tr class="separator:a3e994fd938468ff4fc4b4a902e970876 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4f5b1bc0d044fbd1fc77363b798c39c inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#aa4f5b1bc0d044fbd1fc77363b798c39c">DeSerialize</a> (bool <a class="el" href="a02297.html#ac10b1de04fdfd4f5e4b90ac6d03f35b9">swap</a>, FILE *fp)</td></tr>
<tr class="separator:aa4f5b1bc0d044fbd1fc77363b798c39c inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7d4df4a40722cfd60cc37fc311465a3 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#aa7d4df4a40722cfd60cc37fc311465a3">DeSerialize</a> (bool <a class="el" href="a02297.html#ac10b1de04fdfd4f5e4b90ac6d03f35b9">swap</a>, <a class="el" href="a02917.html">tesseract::TFile</a> *fp)</td></tr>
<tr class="separator:aa7d4df4a40722cfd60cc37fc311465a3 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0e8164e4c5c82e9e367c8a6d9b755b1 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#ad0e8164e4c5c82e9e367c8a6d9b755b1">SerializeClasses</a> (FILE *fp) const</td></tr>
<tr class="separator:ad0e8164e4c5c82e9e367c8a6d9b755b1 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d0060c687429049a0ea5cf21d067b8e inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a7d0060c687429049a0ea5cf21d067b8e">SerializeClasses</a> (<a class="el" href="a02917.html">tesseract::TFile</a> *fp) const</td></tr>
<tr class="separator:a7d0060c687429049a0ea5cf21d067b8e inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a698ebd328d22f1edc114053ca2eba48e inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a698ebd328d22f1edc114053ca2eba48e">DeSerializeClasses</a> (bool <a class="el" href="a02297.html#ac10b1de04fdfd4f5e4b90ac6d03f35b9">swap</a>, FILE *fp)</td></tr>
<tr class="separator:a698ebd328d22f1edc114053ca2eba48e inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac23c53821c0705be6892c6453c7eac54 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#ac23c53821c0705be6892c6453c7eac54">DeSerializeClasses</a> (bool <a class="el" href="a02297.html#ac10b1de04fdfd4f5e4b90ac6d03f35b9">swap</a>, <a class="el" href="a02917.html">tesseract::TFile</a> *fp)</td></tr>
<tr class="separator:ac23c53821c0705be6892c6453c7eac54 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58f6d73009cc3c56d0efb0d96ad35b5b inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a58f6d73009cc3c56d0efb0d96ad35b5b">reverse</a> ()</td></tr>
<tr class="separator:a58f6d73009cc3c56d0efb0d96ad35b5b inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a999bbd8ff336c81fe1198ea714c7936d inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a999bbd8ff336c81fe1198ea714c7936d">sort</a> ()</td></tr>
<tr class="separator:a999bbd8ff336c81fe1198ea714c7936d inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a461142d4ff7c61f22119552b7c0b2755 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a461142d4ff7c61f22119552b7c0b2755">sort</a> (int(*comparator)(const void *, const void *))</td></tr>
<tr class="separator:a461142d4ff7c61f22119552b7c0b2755 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c261f66a24da67aac1acca7aa8f650a inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a8c261f66a24da67aac1acca7aa8f650a">bool_binary_search</a> (const DawgPosition &amp;target) const</td></tr>
<tr class="separator:a8c261f66a24da67aac1acca7aa8f650a inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad561e19e75a0fb30f0118774d7fa5621 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#ad561e19e75a0fb30f0118774d7fa5621">binary_search</a> (const DawgPosition &amp;target) const</td></tr>
<tr class="separator:ad561e19e75a0fb30f0118774d7fa5621 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cb22ff55d6dd125d93cd03fd73bf8ad inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a8cb22ff55d6dd125d93cd03fd73bf8ad">compact_sorted</a> ()</td></tr>
<tr class="separator:a8cb22ff55d6dd125d93cd03fd73bf8ad inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a080f7786e007523bcaa3f69913a82882 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a080f7786e007523bcaa3f69913a82882">compact</a> (<a class="el" href="a03133.html">TessResultCallback1</a>&lt; bool, int &gt; *delete_cb)</td></tr>
<tr class="separator:a080f7786e007523bcaa3f69913a82882 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f6dfbc607499173e7809656c6c505bc inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">DawgPosition&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a6f6dfbc607499173e7809656c6c505bc">dot_product</a> (const <a class="el" href="a02297.html">GenericVector</a>&lt; DawgPosition &gt; &amp;other) const</td></tr>
<tr class="separator:a6f6dfbc607499173e7809656c6c505bc inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c4218ef833d0fe5db9b9749abd81ea5 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a5c4218ef833d0fe5db9b9749abd81ea5">choose_nth_item</a> (int target_index)</td></tr>
<tr class="separator:a5c4218ef833d0fe5db9b9749abd81ea5 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac10b1de04fdfd4f5e4b90ac6d03f35b9 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#ac10b1de04fdfd4f5e4b90ac6d03f35b9">swap</a> (int index1, int index2)</td></tr>
<tr class="separator:ac10b1de04fdfd4f5e4b90ac6d03f35b9 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a367914d03777eef59176d48155d06b72 inherit pub_methods_a02297"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a367914d03777eef59176d48155d06b72">WithinBounds</a> (const DawgPosition &amp;rangemin, const DawgPosition &amp;rangemax) const</td></tr>
<tr class="separator:a367914d03777eef59176d48155d06b72 inherit pub_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_a02297"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_a02297')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="a02297.html">GenericVector&lt; DawgPosition &gt;</a></td></tr>
<tr class="memitem:a216453c5197a2407f9fe1b2a9178a048 inherit pub_static_methods_a02297"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a216453c5197a2407f9fe1b2a9178a048">SkipDeSerialize</a> (bool <a class="el" href="a02297.html#ac10b1de04fdfd4f5e4b90ac6d03f35b9">swap</a>, <a class="el" href="a02917.html">tesseract::TFile</a> *fp)</td></tr>
<tr class="separator:a216453c5197a2407f9fe1b2a9178a048 inherit pub_static_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ae24d219745a64ae6dcab7e725e2856 inherit pub_static_methods_a02297"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a8ae24d219745a64ae6dcab7e725e2856">SkipDeSerializeClasses</a> (bool <a class="el" href="a02297.html#ac10b1de04fdfd4f5e4b90ac6d03f35b9">swap</a>, <a class="el" href="a02917.html">tesseract::TFile</a> *fp)</td></tr>
<tr class="separator:a8ae24d219745a64ae6dcab7e725e2856 inherit pub_static_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85308b8287bcb7924d64175cbc681f89 inherit pub_static_methods_a02297"><td class="memItemLeft" align="right" valign="top">static DawgPosition *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a85308b8287bcb7924d64175cbc681f89">double_the_size_memcpy</a> (int current_size, DawgPosition *data)</td></tr>
<tr class="separator:a85308b8287bcb7924d64175cbc681f89 inherit pub_static_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_a02297"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_a02297')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="a02297.html">GenericVector&lt; DawgPosition &gt;</a></td></tr>
<tr class="memitem:ae1e555b0cdded2c36dd6cf15345f659f inherit pro_methods_a02297"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#ae1e555b0cdded2c36dd6cf15345f659f">choose_nth_item</a> (int target_index, int start, int end, unsigned int *seed)</td></tr>
<tr class="separator:ae1e555b0cdded2c36dd6cf15345f659f inherit pro_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b010723588fe15f303e4f3474d8479e inherit pro_methods_a02297"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a5b010723588fe15f303e4f3474d8479e">init</a> (int <a class="el" href="a02297.html#a20cfad5c58c50cb85a9529d8ddbd96af">size</a>)</td></tr>
<tr class="separator:a5b010723588fe15f303e4f3474d8479e inherit pro_methods_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_a02297"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_a02297')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="a02297.html">GenericVector&lt; DawgPosition &gt;</a></td></tr>
<tr class="memitem:ae7cf6cba62f831b6d56c7d03e9eff3bc inherit pro_attribs_a02297"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00524.html#aba1f582fd0168f3ff9225d8c90fa9eb8">inT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#ae7cf6cba62f831b6d56c7d03e9eff3bc">size_used_</a></td></tr>
<tr class="separator:ae7cf6cba62f831b6d56c7d03e9eff3bc inherit pro_attribs_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a651ead7f279fb6ed4bfb683989d573de inherit pro_attribs_a02297"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00524.html#aba1f582fd0168f3ff9225d8c90fa9eb8">inT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a651ead7f279fb6ed4bfb683989d573de">size_reserved_</a></td></tr>
<tr class="separator:a651ead7f279fb6ed4bfb683989d573de inherit pro_attribs_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab88657a46d06c175dcfc76c0fcdaac7d inherit pro_attribs_a02297"><td class="memItemLeft" align="right" valign="top">DawgPosition *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#ab88657a46d06c175dcfc76c0fcdaac7d">data_</a></td></tr>
<tr class="separator:ab88657a46d06c175dcfc76c0fcdaac7d inherit pro_attribs_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57a833bdcc07a53e9a7b57d07cac2131 inherit pro_attribs_a02297"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a03129.html">TessCallback1</a>&lt; DawgPosition &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a57a833bdcc07a53e9a7b57d07cac2131">clear_cb_</a></td></tr>
<tr class="separator:a57a833bdcc07a53e9a7b57d07cac2131 inherit pro_attribs_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd69761952fb39cbe7d7b43a6b06a432 inherit pro_attribs_a02297"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a03141.html">TessResultCallback2</a>&lt; bool, DawgPosition const &amp;, DawgPosition const &amp;&gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#acd69761952fb39cbe7d7b43a6b06a432">compare_cb_</a></td></tr>
<tr class="separator:acd69761952fb39cbe7d7b43a6b06a432 inherit pro_attribs_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_static_attribs_a02297"><td colspan="2" onclick="javascript:toggleInherit('pro_static_attribs_a02297')"><img src="closed.png" alt="-"/>&#160;Static Protected Attributes inherited from <a class="el" href="a02297.html">GenericVector&lt; DawgPosition &gt;</a></td></tr>
<tr class="memitem:a17604861454b13965d7e2cb8c0c5b59a inherit pro_static_attribs_a02297"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02297.html#a17604861454b13965d7e2cb8c0c5b59a">kDefaultVectorSize</a></td></tr>
<tr class="separator:a17604861454b13965d7e2cb8c0c5b59a inherit pro_static_attribs_a02297"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="a01139_source.html#l00376">376</a> of file <a class="el" href="a01139_source.html">dawg.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a2ee8fd1c42204db7513e0c040868ce7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ee8fd1c42204db7513e0c040868ce7c">&#9670;&nbsp;</a></span>add_unique()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool tesseract::DawgPositionVector::add_unique </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a04529.html">DawgPosition</a> &amp;&#160;</td>
          <td class="paramname"><em>new_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>debug</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>debug_msg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</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>Adds an entry for the given dawg_index with the given node to the vec. Returns false if the same entry already exists in the vector, true otherwise. </p>

<p class="definition">Definition at line <a class="el" href="a01139_source.html#l00384">384</a> of file <a class="el" href="a01139_source.html">dawg.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;                                                {</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="a02297.html#ae7cf6cba62f831b6d56c7d03e9eff3bc">size_used_</a>; ++i) {</div><div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="a02297.html#ab88657a46d06c175dcfc76c0fcdaac7d">data_</a>[i] == new_pos) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    }</div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    <a class="code" href="a02297.html#a0dc89fe2a365b04a61017f9d78c1a303">push_back</a>(new_pos);</div><div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;    <span class="keywordflow">if</span> (debug) {</div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;      <a class="code" href="a00608.html#a02aa7cca2c3857c14716e8cca96ace6c">tprintf</a>(<span class="stringliteral">&quot;%s[%d, &quot;</span> <a class="code" href="a01139.html#a85a5bf216156dfa399c5edd26f3694db">REFFORMAT</a> <span class="stringliteral">&quot;] [punc: &quot;</span> <a class="code" href="a01139.html#a85a5bf216156dfa399c5edd26f3694db">REFFORMAT</a> <span class="stringliteral">&quot;%s]\n&quot;</span>,</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;              debug_msg, new_pos.dawg_index, new_pos.dawg_ref,</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;              new_pos.punc_ref, new_pos.back_to_punc ? <span class="stringliteral">&quot; returned&quot;</span> : <span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    }</div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;  }</div><div class="ttc" id="a02297_html_ae7cf6cba62f831b6d56c7d03e9eff3bc"><div class="ttname"><a href="a02297.html#ae7cf6cba62f831b6d56c7d03e9eff3bc">GenericVector&lt; DawgPosition &gt;::size_used_</a></div><div class="ttdeci">inT32 size_used_</div><div class="ttdef"><b>Definition:</b> <a href="a00509_source.html#l00340">genericvector.h:340</a></div></div>
<div class="ttc" id="a02297_html_a0dc89fe2a365b04a61017f9d78c1a303"><div class="ttname"><a href="a02297.html#a0dc89fe2a365b04a61017f9d78c1a303">GenericVector&lt; DawgPosition &gt;::push_back</a></div><div class="ttdeci">int push_back(DawgPosition object)</div><div class="ttdef"><b>Definition:</b> <a href="a00509_source.html#l00766">genericvector.h:766</a></div></div>
<div class="ttc" id="a00608_html_a02aa7cca2c3857c14716e8cca96ace6c"><div class="ttname"><a href="a00608.html#a02aa7cca2c3857c14716e8cca96ace6c">tprintf</a></div><div class="ttdeci">#define tprintf(...)</div><div class="ttdef"><b>Definition:</b> <a href="a00608_source.html#l00031">tprintf.h:31</a></div></div>
<div class="ttc" id="a01139_html_a85a5bf216156dfa399c5edd26f3694db"><div class="ttname"><a href="a01139.html#a85a5bf216156dfa399c5edd26f3694db">REFFORMAT</a></div><div class="ttdeci">#define REFFORMAT</div><div class="ttdef"><b>Definition:</b> <a href="a01139_source.html#l00092">dawg.h:92</a></div></div>
<div class="ttc" id="a02297_html_ab88657a46d06c175dcfc76c0fcdaac7d"><div class="ttname"><a href="a02297.html#ab88657a46d06c175dcfc76c0fcdaac7d">GenericVector&lt; DawgPosition &gt;::data_</a></div><div class="ttdeci">DawgPosition * data_</div><div class="ttdef"><b>Definition:</b> <a href="a00509_source.html#l00342">genericvector.h:342</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a9a3da3d468cd8cc03f2a56ac9fe65ea0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a3da3d468cd8cc03f2a56ac9fe65ea0">&#9670;&nbsp;</a></span>clear()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void tesseract::DawgPositionVector::clear </td>
          <td>(</td>
          <td class="paramname"></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>Overload <a class="el" href="a04533.html#a9a3da3d468cd8cc03f2a56ac9fe65ea0">clear()</a> in order to avoid allocating/deallocating memory when clearing the vector and re-inserting entries into it later. </p>

<p class="definition">Definition at line <a class="el" href="a01139_source.html#l00380">380</a> of file <a class="el" href="a01139_source.html">dawg.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;{ <a class="code" href="a02297.html#ae7cf6cba62f831b6d56c7d03e9eff3bc">size_used_</a> = 0; }</div><div class="ttc" id="a02297_html_ae7cf6cba62f831b6d56c7d03e9eff3bc"><div class="ttname"><a href="a02297.html#ae7cf6cba62f831b6d56c7d03e9eff3bc">GenericVector&lt; DawgPosition &gt;::size_used_</a></div><div class="ttdeci">inT32 size_used_</div><div class="ttdef"><b>Definition:</b> <a href="a00509_source.html#l00340">genericvector.h:340</a></div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>dict/<a class="el" href="a01139_source.html">dawg.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="a01738.html">tesseract</a></li><li class="navelem"><a class="el" href="a04533.html">DawgPositionVector</a></li>
    <li class="footer">Generated on Mon Oct 29 2018 11:28:04 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>