Files
rippled/classripple_1_1detail_1_1VotableValue.html
2023-02-03 00:24:43 +00:00

339 lines
18 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: ripple::detail::VotableValue 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="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">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<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>
<!-- 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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceripple.html">ripple</a></li><li class="navelem"><a class="el" href="namespaceripple_1_1detail.html">detail</a></li><li class="navelem"><a class="el" href="classripple_1_1detail_1_1VotableValue.html">VotableValue</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-types">Private Types</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classripple_1_1detail_1_1VotableValue-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">ripple::detail::VotableValue Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for ripple::detail::VotableValue:</div>
<div class="dyncontent">
<div class="center"><img src="classripple_1_1detail_1_1VotableValue__coll__graph.png" border="0" usemap="#ripple_1_1detail_1_1VotableValue_coll__map" alt="Collaboration graph"/></div>
<map name="ripple_1_1detail_1_1VotableValue_coll__map" id="ripple_1_1detail_1_1VotableValue_coll__map">
<area shape="rect" title=" " alt="" coords="888,130,1085,157"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/map.html" title=" " alt="" coords="553,157,772,199"/>
<area shape="rect" href="classripple_1_1XRPAmount.html" title=" " alt="" coords="327,130,469,157"/>
<area shape="rect" title=" " alt="" coords="35,5,201,47"/>
<area shape="rect" title=" " alt="" coords="5,71,231,98"/>
<area shape="rect" title=" " alt="" coords="13,123,223,164"/>
<area shape="rect" title=" " alt="" coords="11,188,225,229"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="71,254,165,281"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></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:a4041f660d3bcbf57e3f6947cb7ae5103"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1detail_1_1VotableValue.html#a4041f660d3bcbf57e3f6947cb7ae5103">VotableValue</a> (<a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a> <a class="el" href="classripple_1_1detail_1_1VotableValue.html#ae3af4e5b0376edfda3a84b4f18c0ba28">current</a>, <a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a> target)</td></tr>
<tr class="separator:a4041f660d3bcbf57e3f6947cb7ae5103"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae39cb1b77a2ff486ea88331c60b35f0b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1detail_1_1VotableValue.html#ae39cb1b77a2ff486ea88331c60b35f0b">addVote</a> (<a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a> vote)</td></tr>
<tr class="separator:ae39cb1b77a2ff486ea88331c60b35f0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b88a947782854403df68ac5a5530021"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1detail_1_1VotableValue.html#a8b88a947782854403df68ac5a5530021">noVote</a> ()</td></tr>
<tr class="separator:a8b88a947782854403df68ac5a5530021"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3af4e5b0376edfda3a84b4f18c0ba28"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1detail_1_1VotableValue.html#ae3af4e5b0376edfda3a84b4f18c0ba28">current</a> () const</td></tr>
<tr class="separator:ae3af4e5b0376edfda3a84b4f18c0ba28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44c6c7d10b3a14713af1e2dfac9a6b54"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a>&lt; <a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a>, bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1detail_1_1VotableValue.html#a44c6c7d10b3a14713af1e2dfac9a6b54">getVotes</a> () const</td></tr>
<tr class="separator:a44c6c7d10b3a14713af1e2dfac9a6b54"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-types"></a>
Private Types</h2></td></tr>
<tr class="memitem:adc60b0c780baaafb5dbbae750d0c1159"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a> = <a class="el" href="classripple_1_1XRPAmount.html">XRPAmount</a></td></tr>
<tr class="separator:adc60b0c780baaafb5dbbae750d0c1159"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a2ded3b4f36d47f7cad62dcccc1981a0a"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1detail_1_1VotableValue.html#a2ded3b4f36d47f7cad62dcccc1981a0a">current_</a></td></tr>
<tr class="separator:a2ded3b4f36d47f7cad62dcccc1981a0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0e776e4a2924141550a585d4cc25a3d"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1detail_1_1VotableValue.html#ab0e776e4a2924141550a585d4cc25a3d">target_</a></td></tr>
<tr class="separator:ab0e776e4a2924141550a585d4cc25a3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47a305e3872ca9eb1a0e65f93ad13a6f"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map</a>&lt; <a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a>, int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1detail_1_1VotableValue.html#a47a305e3872ca9eb1a0e65f93ad13a6f">voteMap_</a></td></tr>
<tr class="separator:a47a305e3872ca9eb1a0e65f93ad13a6f"><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="FeeVoteImpl_8cpp_source.html#l00032">32</a> of file <a class="el" href="FeeVoteImpl_8cpp_source.html">FeeVoteImpl.cpp</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="adc60b0c780baaafb5dbbae750d0c1159"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc60b0c780baaafb5dbbae750d0c1159">&#9670;&nbsp;</a></span>value_type</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">ripple::detail::VotableValue::value_type</a> = <a class="el" href="classripple_1_1XRPAmount.html">XRPAmount</a></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="FeeVoteImpl_8cpp_source.html#l00035">35</a> of file <a class="el" href="FeeVoteImpl_8cpp_source.html">FeeVoteImpl.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a4041f660d3bcbf57e3f6947cb7ae5103"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4041f660d3bcbf57e3f6947cb7ae5103">&#9670;&nbsp;</a></span>VotableValue()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ripple::detail::VotableValue::VotableValue </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a>&#160;</td>
<td class="paramname"><em>current</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a>&#160;</td>
<td class="paramname"><em>target</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="FeeVoteImpl_8cpp_source.html#l00041">41</a> of file <a class="el" href="FeeVoteImpl_8cpp_source.html">FeeVoteImpl.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ae39cb1b77a2ff486ea88331c60b35f0b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae39cb1b77a2ff486ea88331c60b35f0b">&#9670;&nbsp;</a></span>addVote()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::detail::VotableValue::addVote </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a>&#160;</td>
<td class="paramname"><em>vote</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="FeeVoteImpl_8cpp_source.html#l00049">49</a> of file <a class="el" href="FeeVoteImpl_8cpp_source.html">FeeVoteImpl.cpp</a>.</p>
</div>
</div>
<a id="a8b88a947782854403df68ac5a5530021"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b88a947782854403df68ac5a5530021">&#9670;&nbsp;</a></span>noVote()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::detail::VotableValue::noVote </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="FeeVoteImpl_8cpp_source.html#l00055">55</a> of file <a class="el" href="FeeVoteImpl_8cpp_source.html">FeeVoteImpl.cpp</a>.</p>
</div>
</div>
<a id="ae3af4e5b0376edfda3a84b4f18c0ba28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3af4e5b0376edfda3a84b4f18c0ba28">&#9670;&nbsp;</a></span>current()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a> ripple::detail::VotableValue::current </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="FeeVoteImpl_8cpp_source.html#l00061">61</a> of file <a class="el" href="FeeVoteImpl_8cpp_source.html">FeeVoteImpl.cpp</a>.</p>
</div>
</div>
<a id="a44c6c7d10b3a14713af1e2dfac9a6b54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44c6c7d10b3a14713af1e2dfac9a6b54">&#9670;&nbsp;</a></span>getVotes()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">auto ripple::detail::VotableValue::getVotes </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="FeeVoteImpl_8cpp_source.html#l00071">71</a> of file <a class="el" href="FeeVoteImpl_8cpp_source.html">FeeVoteImpl.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a2ded3b4f36d47f7cad62dcccc1981a0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ded3b4f36d47f7cad62dcccc1981a0a">&#9670;&nbsp;</a></span>current_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a> ripple::detail::VotableValue::current_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="FeeVoteImpl_8cpp_source.html#l00036">36</a> of file <a class="el" href="FeeVoteImpl_8cpp_source.html">FeeVoteImpl.cpp</a>.</p>
</div>
</div>
<a id="ab0e776e4a2924141550a585d4cc25a3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0e776e4a2924141550a585d4cc25a3d">&#9670;&nbsp;</a></span>target_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a> ripple::detail::VotableValue::target_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="FeeVoteImpl_8cpp_source.html#l00037">37</a> of file <a class="el" href="FeeVoteImpl_8cpp_source.html">FeeVoteImpl.cpp</a>.</p>
</div>
</div>
<a id="a47a305e3872ca9eb1a0e65f93ad13a6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47a305e3872ca9eb1a0e65f93ad13a6f">&#9670;&nbsp;</a></span>voteMap_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map</a>&lt;<a class="el" href="classripple_1_1detail_1_1VotableValue.html#adc60b0c780baaafb5dbbae750d0c1159">value_type</a>, int&gt; ripple::detail::VotableValue::voteMap_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="FeeVoteImpl_8cpp_source.html#l00038">38</a> of file <a class="el" href="FeeVoteImpl_8cpp_source.html">FeeVoteImpl.cpp</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>