classfv_1_1Count.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.13"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>TTTT Analysis: fv::Count&lt; T &gt; Class Template Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">TTTT Analysis
  25. &#160;<span id="projectnumber">0.1</span>
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.13 -->
  34. <script type="text/javascript">
  35. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  36. </script>
  37. <script type="text/javascript" src="menudata.js"></script>
  38. <script type="text/javascript" src="menu.js"></script>
  39. <script type="text/javascript">
  40. $(function() {
  41. initMenu('',true,false,'search.php','Search');
  42. $(document).ready(function() { init_search(); });
  43. });
  44. </script>
  45. <div id="main-nav"></div>
  46. <!-- window showing the filter options -->
  47. <div id="MSearchSelectWindow"
  48. onmouseover="return searchBox.OnSearchSelectShow()"
  49. onmouseout="return searchBox.OnSearchSelectHide()"
  50. onkeydown="return searchBox.OnSearchSelectKey(event)">
  51. </div>
  52. <!-- iframe showing the search results (closed by default) -->
  53. <div id="MSearchResultsWindow">
  54. <iframe src="javascript:void(0)" frameborder="0"
  55. name="MSearchResults" id="MSearchResults">
  56. </iframe>
  57. </div>
  58. <div id="nav-path" class="navpath">
  59. <ul>
  60. <li class="navelem"><a class="el" href="namespacefv.html">fv</a></li><li class="navelem"><a class="el" href="classfv_1_1Count.html">Count</a></li> </ul>
  61. </div>
  62. </div><!-- top -->
  63. <div class="header">
  64. <div class="summary">
  65. <a href="#pub-methods">Public Member Functions</a> &#124;
  66. <a href="#pub-static-methods">Static Public Member Functions</a> &#124;
  67. <a href="#pri-methods">Private Member Functions</a> &#124;
  68. <a href="#pri-attribs">Private Attributes</a> &#124;
  69. <a href="classfv_1_1Count-members.html">List of all members</a> </div>
  70. <div class="headertitle">
  71. <div class="title">fv::Count&lt; T &gt; Class Template Reference</div> </div>
  72. </div><!--header-->
  73. <div class="contents">
  74. <p>Returns the count of elements in the input vector passing a test function.
  75. <a href="classfv_1_1Count.html#details">More...</a></p>
  76. <p><code>#include &lt;<a class="el" href="value_8hpp_source.html">value.hpp</a>&gt;</code></p>
  77. <div class="dynheader">
  78. Inheritance diagram for fv::Count&lt; T &gt;:</div>
  79. <div class="dyncontent">
  80. <div class="center"><img src="classfv_1_1Count__inherit__graph.png" border="0" usemap="#fv_1_1Count_3_01T_01_4_inherit__map" alt="Inheritance graph"/></div>
  81. <map name="fv_1_1Count_3_01T_01_4_inherit__map" id="fv_1_1Count_3_01T_01_4_inherit__map">
  82. <area shape="rect" id="node2" href="classfv_1_1DerivedValue.html" title="fv::DerivedValue\&lt; int \&gt;" alt="" coords="5,80,181,107"/>
  83. <area shape="rect" id="node3" href="classfv_1_1Value.html" title="fv::Value\&lt; int \&gt;" alt="" coords="31,5,156,32"/>
  84. </map>
  85. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  86. <div class="dynheader">
  87. Collaboration diagram for fv::Count&lt; T &gt;:</div>
  88. <div class="dyncontent">
  89. <div class="center"><img src="classfv_1_1Count__coll__graph.png" border="0" usemap="#fv_1_1Count_3_01T_01_4_coll__map" alt="Collaboration graph"/></div>
  90. <map name="fv_1_1Count_3_01T_01_4_coll__map" id="fv_1_1Count_3_01T_01_4_coll__map">
  91. <area shape="rect" id="node2" href="classfv_1_1DerivedValue.html" title="fv::DerivedValue\&lt; int \&gt;" alt="" coords="5,89,181,115"/>
  92. <area shape="rect" id="node3" href="classfv_1_1Value.html" title="fv::Value\&lt; int \&gt;" alt="" coords="31,5,156,32"/>
  93. <area shape="rect" id="node4" href="classfv_1_1Value.html" title="fv::Value\&lt; std::vector\l\&lt; T \&gt; \&gt;" alt="" coords="205,81,368,123"/>
  94. </map>
  95. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  96. <table class="memberdecls">
  97. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  98. Public Member Functions</h2></td></tr>
  99. <tr class="memitem:a36b71b92ad40c992147d76d2f5d6d865"><td class="memItemLeft" align="right" valign="top"><a id="a36b71b92ad40c992147d76d2f5d6d865"></a>
  100. &#160;</td><td class="memItemRight" valign="bottom"><b>Count</b> (Function&lt; bool(T)&gt; &amp;selector, <a class="el" href="classfv_1_1Value.html">Value</a>&lt; std::vector&lt; T &gt;&gt; *v, const std::string alias)</td></tr>
  101. <tr class="separator:a36b71b92ad40c992147d76d2f5d6d865"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="inherit_header pub_methods_classfv_1_1DerivedValue"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classfv_1_1DerivedValue')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classfv_1_1DerivedValue.html">fv::DerivedValue&lt; int &gt;</a></td></tr>
  103. <tr class="memitem:a00219a17112600afdc060d67d6f95b21 inherit pub_methods_classfv_1_1DerivedValue"><td class="memItemLeft" align="right" valign="top"><a id="a00219a17112600afdc060d67d6f95b21"></a>
  104. &#160;</td><td class="memItemRight" valign="bottom"><b>DerivedValue</b> (const std::string &amp;name, const std::string &amp;alias=&quot;&quot;)</td></tr>
  105. <tr class="separator:a00219a17112600afdc060d67d6f95b21 inherit pub_methods_classfv_1_1DerivedValue"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:a7ac6d7f0a92fb9753f7c0bfcf26b6b0d inherit pub_methods_classfv_1_1DerivedValue"><td class="memItemLeft" align="right" valign="top"><a id="a7ac6d7f0a92fb9753f7c0bfcf26b6b0d"></a>
  107. void&#160;</td><td class="memItemRight" valign="bottom"><b>log</b> ()</td></tr>
  108. <tr class="separator:a7ac6d7f0a92fb9753f7c0bfcf26b6b0d inherit pub_methods_classfv_1_1DerivedValue"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:a39970158aa8f6eb062a28037df6e2128 inherit pub_methods_classfv_1_1DerivedValue"><td class="memItemLeft" align="right" valign="top"><a id="a39970158aa8f6eb062a28037df6e2128"></a>
  110. int &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>get_value</b> ()</td></tr>
  111. <tr class="memdesc:a39970158aa8f6eb062a28037df6e2128 inherit pub_methods_classfv_1_1DerivedValue"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate, if necessary, and return the value held by this object. <br /></td></tr>
  112. <tr class="separator:a39970158aa8f6eb062a28037df6e2128 inherit pub_methods_classfv_1_1DerivedValue"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="inherit_header pub_methods_classfv_1_1Value"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classfv_1_1Value')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classfv_1_1Value.html">fv::Value&lt; int &gt;</a></td></tr>
  114. <tr class="memitem:afded92c24f946c1551c1f1b005f31091 inherit pub_methods_classfv_1_1Value"><td class="memItemLeft" align="right" valign="top"><a id="afded92c24f946c1551c1f1b005f31091"></a>
  115. &#160;</td><td class="memItemRight" valign="bottom"><b>Value</b> (const std::string &amp;name, const std::string &amp;alias=&quot;&quot;)</td></tr>
  116. <tr class="separator:afded92c24f946c1551c1f1b005f31091 inherit pub_methods_classfv_1_1Value"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:a477ab6275568b0c5afbcf92901cc3a6e inherit pub_methods_classfv_1_1Value"><td class="memItemLeft" align="right" valign="top"><a id="a477ab6275568b0c5afbcf92901cc3a6e"></a>
  118. void&#160;</td><td class="memItemRight" valign="bottom"><b>enable_logging</b> (const std::function&lt; std::string(int)&gt; &amp;value_to_string=[](int){return &quot;&quot;;})</td></tr>
  119. <tr class="separator:a477ab6275568b0c5afbcf92901cc3a6e inherit pub_methods_classfv_1_1Value"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:a8a3517fdba15dcb2c141dbd58fc232b1 inherit pub_methods_classfv_1_1Value"><td class="memItemLeft" align="right" valign="top"><a id="a8a3517fdba15dcb2c141dbd58fc232b1"></a>
  121. void&#160;</td><td class="memItemRight" valign="bottom"><b>disable_logging</b> ()</td></tr>
  122. <tr class="separator:a8a3517fdba15dcb2c141dbd58fc232b1 inherit pub_methods_classfv_1_1Value"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. </table><table class="memberdecls">
  124. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
  125. Static Public Member Functions</h2></td></tr>
  126. <tr class="memitem:a4e8c69a042a3a7a2216171d6d16875f7"><td class="memItemLeft" align="right" valign="top"><a id="a4e8c69a042a3a7a2216171d6d16875f7"></a>
  127. static std::string&#160;</td><td class="memItemRight" valign="bottom"><b>fmt_name</b> (Function&lt; bool(T)&gt; &amp;selector, <a class="el" href="classfv_1_1Value.html">Value</a>&lt; std::vector&lt; T &gt;&gt; *v)</td></tr>
  128. <tr class="separator:a4e8c69a042a3a7a2216171d6d16875f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. </table><table class="memberdecls">
  130. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
  131. Private Member Functions</h2></td></tr>
  132. <tr class="memitem:afff1c16a8747a82db1cc1c8248c56a08"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classfv_1_1Count.html#afff1c16a8747a82db1cc1c8248c56a08">update_value</a> ()</td></tr>
  133. <tr class="memdesc:afff1c16a8747a82db1cc1c8248c56a08"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates the internal value. <a href="#afff1c16a8747a82db1cc1c8248c56a08">More...</a><br /></td></tr>
  134. <tr class="separator:afff1c16a8747a82db1cc1c8248c56a08"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. </table><table class="memberdecls">
  136. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
  137. Private Attributes</h2></td></tr>
  138. <tr class="memitem:a1dbfccc8020b2c41adcedc5e449ff3be"><td class="memItemLeft" align="right" valign="top"><a id="a1dbfccc8020b2c41adcedc5e449ff3be"></a>
  139. Function&lt; bool(T)&gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>selector</b></td></tr>
  140. <tr class="separator:a1dbfccc8020b2c41adcedc5e449ff3be"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:a3bb2f22dc995dc833f513805128e3a44"><td class="memItemLeft" align="right" valign="top"><a id="a3bb2f22dc995dc833f513805128e3a44"></a>
  142. <a class="el" href="classfv_1_1Value.html">Value</a>&lt; std::vector&lt; T &gt; &gt; *&#160;</td><td class="memItemRight" valign="bottom"><b>v</b></td></tr>
  143. <tr class="separator:a3bb2f22dc995dc833f513805128e3a44"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. </table><table class="memberdecls">
  145. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
  146. Additional Inherited Members</h2></td></tr>
  147. <tr class="inherit_header pro_attribs_classfv_1_1DerivedValue"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classfv_1_1DerivedValue')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classfv_1_1DerivedValue.html">fv::DerivedValue&lt; int &gt;</a></td></tr>
  148. <tr class="memitem:aeb7ff5d17ad44b2040fc9930bbcc2c7a inherit pro_attribs_classfv_1_1DerivedValue"><td class="memItemLeft" align="right" valign="top"><a id="aeb7ff5d17ad44b2040fc9930bbcc2c7a"></a>
  149. int&#160;</td><td class="memItemRight" valign="bottom"><b>value</b></td></tr>
  150. <tr class="separator:aeb7ff5d17ad44b2040fc9930bbcc2c7a inherit pro_attribs_classfv_1_1DerivedValue"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="inherit_header pro_attribs_classfv_1_1Value"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classfv_1_1Value')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classfv_1_1Value.html">fv::Value&lt; int &gt;</a></td></tr>
  152. <tr class="memitem:aa0269699348665b8e978c1e848e74abe inherit pro_attribs_classfv_1_1Value"><td class="memItemLeft" align="right" valign="top"><a id="aa0269699348665b8e978c1e848e74abe"></a>
  153. std::function&lt; std::string(int)&gt;&#160;</td><td class="memItemRight" valign="bottom"><b>value_to_string</b></td></tr>
  154. <tr class="separator:aa0269699348665b8e978c1e848e74abe inherit pro_attribs_classfv_1_1Value"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. </table>
  156. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  157. <div class="textblock"><h3>template&lt;typename T&gt;<br />
  158. class fv::Count&lt; T &gt;</h3>
  159. <p>Returns the count of elements in the input vector passing a test function. </p>
  160. <p class="definition">Definition at line <a class="el" href="value_8hpp_source.html#l00870">870</a> of file <a class="el" href="value_8hpp_source.html">value.hpp</a>.</p>
  161. </div><h2 class="groupheader">Member Function Documentation</h2>
  162. <a id="afff1c16a8747a82db1cc1c8248c56a08"></a>
  163. <h2 class="memtitle"><span class="permalink"><a href="#afff1c16a8747a82db1cc1c8248c56a08">&#9670;&nbsp;</a></span>update_value()</h2>
  164. <div class="memitem">
  165. <div class="memproto">
  166. <div class="memtemplate">
  167. template&lt;typename T&gt; </div>
  168. <table class="mlabels">
  169. <tr>
  170. <td class="mlabels-left">
  171. <table class="memname">
  172. <tr>
  173. <td class="memname">void <a class="el" href="classfv_1_1Count.html">fv::Count</a>&lt; T &gt;::update_value </td>
  174. <td>(</td>
  175. <td class="paramname"></td><td>)</td>
  176. <td></td>
  177. </tr>
  178. </table>
  179. </td>
  180. <td class="mlabels-right">
  181. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span><span class="mlabel">virtual</span></span> </td>
  182. </tr>
  183. </table>
  184. </div><div class="memdoc">
  185. <p>Updates the internal value. </p>
  186. <p>This function should be overridden by any child class to do the actual work of updating value based on whatever rules the class chooses. Normally, this consists of geting the values from some associated <a class="el" href="classfv_1_1Value.html" title="A templated value. ">Value</a> objects, doing some calculation on them, and storing the result in value. </p>
  187. <p>Implements <a class="el" href="classfv_1_1DerivedValue.html#ae59e80a98eb74b95d8961bfe12ee5ec2">fv::DerivedValue&lt; int &gt;</a>.</p>
  188. <p class="definition">Definition at line <a class="el" href="value_8hpp_source.html#l00875">875</a> of file <a class="el" href="value_8hpp_source.html">value.hpp</a>.</p>
  189. <div class="dynheader">
  190. Here is the call graph for this function:</div>
  191. <div class="dyncontent">
  192. <div class="center"><img src="classfv_1_1Count_afff1c16a8747a82db1cc1c8248c56a08_cgraph.png" border="0" usemap="#classfv_1_1Count_afff1c16a8747a82db1cc1c8248c56a08_cgraph" alt=""/></div>
  193. <map name="classfv_1_1Count_afff1c16a8747a82db1cc1c8248c56a08_cgraph" id="classfv_1_1Count_afff1c16a8747a82db1cc1c8248c56a08_cgraph">
  194. <area shape="rect" id="node2" href="classfv_1_1Value.html#a4cc70444ceaf5d7651922adf9b7beeff" title="Calculate, if necessary, and return the value held by this object. " alt="" coords="229,5,380,32"/>
  195. </map>
  196. </div>
  197. </div>
  198. </div>
  199. <hr/>The documentation for this class was generated from the following file:<ul>
  200. <li>/home/caleb/Sources/TTTT/filval/<a class="el" href="value_8hpp_source.html">value.hpp</a></li>
  201. </ul>
  202. </div><!-- contents -->
  203. <!-- start footer part -->
  204. <hr class="footer"/><address class="footer"><small>
  205. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  206. <img class="footer" src="doxygen.png" alt="doxygen"/>
  207. </a> 1.8.13
  208. </small></address>
  209. </body>
  210. </html>