<!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.6"/>
<title>LiquidFun: b2GrowableBuffer&lt; T &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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</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 style="padding-left: 0.5em;">
   <div id="projectname">LiquidFun
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></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><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classb2_growable_buffer-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">b2GrowableBuffer&lt; T &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="b2_growable_buffer_8h_source.html">b2GrowableBuffer.h</a>&gt;</code></p>
<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:a6dc8f745bc5d336d133a0b2f97d917d7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6dc8f745bc5d336d133a0b2f97d917d7"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>b2GrowableBuffer</b> (<a class="el" href="classb2_block_allocator.html">b2BlockAllocator</a> &amp;allocator)</td></tr>
<tr class="separator:a6dc8f745bc5d336d133a0b2f97d917d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e2480774bb3eacfc709bc2497f05a54"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e2480774bb3eacfc709bc2497f05a54"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>b2GrowableBuffer</b> (const <a class="el" href="classb2_growable_buffer.html">b2GrowableBuffer</a>&lt; T &gt; &amp;rhs)</td></tr>
<tr class="separator:a7e2480774bb3eacfc709bc2497f05a54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab68fd4ce91f12eb9f459eab089543042"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab68fd4ce91f12eb9f459eab089543042"></a>
T &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>Append</b> ()</td></tr>
<tr class="separator:ab68fd4ce91f12eb9f459eab089543042"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af433ba33939d8743bf4d734858d4b337"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af433ba33939d8743bf4d734858d4b337"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Reserve</b> (int32 newCapacity)</td></tr>
<tr class="separator:af433ba33939d8743bf4d734858d4b337"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad16136200aaa475127e3253a5431879f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad16136200aaa475127e3253a5431879f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Grow</b> ()</td></tr>
<tr class="separator:ad16136200aaa475127e3253a5431879f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23af10e8ef7f7dcafea48d0d9ef2869d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a23af10e8ef7f7dcafea48d0d9ef2869d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Free</b> ()</td></tr>
<tr class="separator:a23af10e8ef7f7dcafea48d0d9ef2869d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84215eddab05d397f3b141a6d8abe017"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a84215eddab05d397f3b141a6d8abe017"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Shorten</b> (const T *newEnd)</td></tr>
<tr class="separator:a84215eddab05d397f3b141a6d8abe017"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab31826762356bc6c513de46574012b48"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab31826762356bc6c513de46574012b48"></a>
T &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator[]</b> (int i)</td></tr>
<tr class="separator:ab31826762356bc6c513de46574012b48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7050701d57ab46bb966f551776b7bb6e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7050701d57ab46bb966f551776b7bb6e"></a>
const T &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator[]</b> (int i) const </td></tr>
<tr class="separator:a7050701d57ab46bb966f551776b7bb6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8f58afa934d87f6183856a4f2341a4d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad8f58afa934d87f6183856a4f2341a4d"></a>
T *&#160;</td><td class="memItemRight" valign="bottom"><b>Data</b> ()</td></tr>
<tr class="separator:ad8f58afa934d87f6183856a4f2341a4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa5b7308fbc5c617317b713cc8aeae6e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaa5b7308fbc5c617317b713cc8aeae6e"></a>
const T *&#160;</td><td class="memItemRight" valign="bottom"><b>Data</b> () const </td></tr>
<tr class="separator:aaa5b7308fbc5c617317b713cc8aeae6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07d9a584c9a94214853b7d44a855f42f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a07d9a584c9a94214853b7d44a855f42f"></a>
T *&#160;</td><td class="memItemRight" valign="bottom"><b>Begin</b> ()</td></tr>
<tr class="separator:a07d9a584c9a94214853b7d44a855f42f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aceb26207beef0703c3d4ebcc38adeb4e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aceb26207beef0703c3d4ebcc38adeb4e"></a>
const T *&#160;</td><td class="memItemRight" valign="bottom"><b>Begin</b> () const </td></tr>
<tr class="separator:aceb26207beef0703c3d4ebcc38adeb4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab82cfbec8c72aed0b9e663fb38876cab"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab82cfbec8c72aed0b9e663fb38876cab"></a>
T *&#160;</td><td class="memItemRight" valign="bottom"><b>End</b> ()</td></tr>
<tr class="separator:ab82cfbec8c72aed0b9e663fb38876cab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7d5a68ea3368f8c9ab67d9d5c9842e0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af7d5a68ea3368f8c9ab67d9d5c9842e0"></a>
const T *&#160;</td><td class="memItemRight" valign="bottom"><b>End</b> () const </td></tr>
<tr class="separator:af7d5a68ea3368f8c9ab67d9d5c9842e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0cd37574d325a69818fb8d2f69dc0dc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae0cd37574d325a69818fb8d2f69dc0dc"></a>
int32&#160;</td><td class="memItemRight" valign="bottom"><b>GetCount</b> () const </td></tr>
<tr class="separator:ae0cd37574d325a69818fb8d2f69dc0dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71204838f713fe572b737a46310d2987"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a71204838f713fe572b737a46310d2987"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetCount</b> (int32 newCount)</td></tr>
<tr class="separator:a71204838f713fe572b737a46310d2987"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ac3cd9aee83b391f857df396c1e4977"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ac3cd9aee83b391f857df396c1e4977"></a>
int32&#160;</td><td class="memItemRight" valign="bottom"><b>GetCapacity</b> () const </td></tr>
<tr class="separator:a2ac3cd9aee83b391f857df396c1e4977"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a508bc89f5357a63566ce8bc62cf74d9a"><td class="memTemplParams" colspan="2"><a class="anchor" id="a508bc89f5357a63566ce8bc62cf74d9a"></a>
template&lt;class UnaryPredicate &gt; </td></tr>
<tr class="memitem:a508bc89f5357a63566ce8bc62cf74d9a"><td class="memTemplItemLeft" align="right" valign="top">T *&#160;</td><td class="memTemplItemRight" valign="bottom"><b>RemoveIf</b> (UnaryPredicate pred)</td></tr>
<tr class="separator:a508bc89f5357a63566ce8bc62cf74d9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c9326de8772989cd51283144833016f"><td class="memTemplParams" colspan="2"><a class="anchor" id="a7c9326de8772989cd51283144833016f"></a>
template&lt;class BinaryPredicate &gt; </td></tr>
<tr class="memitem:a7c9326de8772989cd51283144833016f"><td class="memTemplItemLeft" align="right" valign="top">T *&#160;</td><td class="memTemplItemRight" valign="bottom"><b>Unique</b> (BinaryPredicate pred)</td></tr>
<tr class="separator:a7c9326de8772989cd51283144833016f"><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;typename T&gt;<br/>
class b2GrowableBuffer&lt; T &gt;</h3>

<p>A simple array-like container, similar to std::vector. If we ever start using stl, we should replace this with std::vector. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="b2_growable_buffer_8h_source.html">b2GrowableBuffer.h</a></li>
</ul>
</div><!-- contents -->
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46159502-1', 'auto');
ga('create', 'UA-49880327-7', 'auto', {'name': 'liquidFunTracker'});
ga('send', 'pageview');
ga('liquidFunTracker.send', 'pageview');
</script>
</body>
</html>
