mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 17:56:16 +00:00
127 lines
29 KiB
HTML
127 lines
29 KiB
HTML
<!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>Dash Core: src/governance-votedb.cpp Source File</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&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="projectlogo"><img alt="Logo" src="bitcoin_logo_doxygen.png"/></td>
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">Dash Core
|
|
 <span id="projectnumber">0.12.2.1</span>
|
|
</div>
|
|
<div id="projectbrief">P2P Digital Currency</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&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&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&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('governance-votedb_8cpp_source.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="headertitle">
|
|
<div class="title">governance-votedb.cpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="governance-votedb_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright (c) 2014-2017 The Dash Core developers</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Distributed under the MIT/X11 software license, see the accompanying</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// file COPYING or http://www.opensource.org/licenses/mit-license.php.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> </div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include "<a class="code" href="governance-votedb_8h.html">governance-votedb.h</a>"</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> </div><div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="classCGovernanceObjectVoteFile.html#aa0cb1e387fa2611422b5cf04a1fe6a56"> 7</a></span> <a class="code" href="classCGovernanceObjectVoteFile.html#aa0cb1e387fa2611422b5cf04a1fe6a56">CGovernanceObjectVoteFile::CGovernanceObjectVoteFile</a>()</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  : nMemoryVotes(0),</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  listVotes(),</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  mapVoteIndex()</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> {}</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classCGovernanceObjectVoteFile.html#a4f8275b683781632c7009ab8089201bf"> 13</a></span> <a class="code" href="classCGovernanceObjectVoteFile.html#aa0cb1e387fa2611422b5cf04a1fe6a56">CGovernanceObjectVoteFile::CGovernanceObjectVoteFile</a>(<span class="keyword">const</span> <a class="code" href="classCGovernanceObjectVoteFile.html">CGovernanceObjectVoteFile</a>& other)</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  : nMemoryVotes(other.nMemoryVotes),</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  listVotes(other.listVotes),</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  mapVoteIndex()</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> {</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#abae842fdec71b72f44960d22c9ac7368">RebuildIndex</a>();</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> }</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classCGovernanceObjectVoteFile.html#a0bfd2b7928e2e36d34a863726b84f01f"> 21</a></span> <span class="keywordtype">void</span> <a class="code" href="classCGovernanceObjectVoteFile.html#a0bfd2b7928e2e36d34a863726b84f01f">CGovernanceObjectVoteFile::AddVote</a>(<span class="keyword">const</span> <a class="code" href="classCGovernanceVote.html">CGovernanceVote</a>& vote)</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> {</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#a28a321fd985ea2fa656832b68bd30740">listVotes</a>.push_front(vote);</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#a603d6368a025adffdb1feef798ce40a7">mapVoteIndex</a>[vote.<a class="code" href="classCGovernanceVote.html#ab383fc21c110b24d96a04640d7d886e1">GetHash</a>()] = <a class="code" href="classCGovernanceObjectVoteFile.html#a28a321fd985ea2fa656832b68bd30740">listVotes</a>.begin();</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  ++<a class="code" href="classCGovernanceObjectVoteFile.html#ae676ac9722a1076d7bbfba2e1d2d9e7c">nMemoryVotes</a>;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> }</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classCGovernanceObjectVoteFile.html#a0875c5f3b0fc99fb8a43445302fccf44"> 28</a></span> <span class="keywordtype">bool</span> <a class="code" href="classCGovernanceObjectVoteFile.html#a0875c5f3b0fc99fb8a43445302fccf44">CGovernanceObjectVoteFile::HasVote</a>(<span class="keyword">const</span> <a class="code" href="classuint256.html">uint256</a>& nHash)<span class="keyword"> const</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword"></span>{</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#a2a53d08ef2270e1d76bca62f51da3ccf">vote_m_cit</a> it = <a class="code" href="classCGovernanceObjectVoteFile.html#a603d6368a025adffdb1feef798ce40a7">mapVoteIndex</a>.find(nHash);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keywordflow">if</span>(it == <a class="code" href="classCGovernanceObjectVoteFile.html#a603d6368a025adffdb1feef798ce40a7">mapVoteIndex</a>.end()) {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  }</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> }</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classCGovernanceObjectVoteFile.html#ac0e72f26f88c5fa6de07da19929f93ec"> 37</a></span> <span class="keywordtype">bool</span> <a class="code" href="classCGovernanceObjectVoteFile.html#ac0e72f26f88c5fa6de07da19929f93ec">CGovernanceObjectVoteFile::GetVote</a>(<span class="keyword">const</span> <a class="code" href="classuint256.html">uint256</a>& nHash, <a class="code" href="classCGovernanceVote.html">CGovernanceVote</a>& vote)<span class="keyword"> const</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword"></span>{</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#a2a53d08ef2270e1d76bca62f51da3ccf">vote_m_cit</a> it = <a class="code" href="classCGovernanceObjectVoteFile.html#a603d6368a025adffdb1feef798ce40a7">mapVoteIndex</a>.find(nHash);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">if</span>(it == <a class="code" href="classCGovernanceObjectVoteFile.html#a603d6368a025adffdb1feef798ce40a7">mapVoteIndex</a>.end()) {</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  }</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  vote = *(it->second);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> }</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classCGovernanceObjectVoteFile.html#a23cc5f6602ed9269c17f178854b32f49"> 47</a></span> std::vector<CGovernanceVote> <a class="code" href="classCGovernanceObjectVoteFile.html#a23cc5f6602ed9269c17f178854b32f49">CGovernanceObjectVoteFile::GetVotes</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="keyword"></span>{</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  std::vector<CGovernanceVote> vecResult;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">for</span>(<a class="code" href="classCGovernanceObjectVoteFile.html#a286f1c0c773cf4cb96cc54bb3277785b">vote_l_cit</a> it = <a class="code" href="classCGovernanceObjectVoteFile.html#a28a321fd985ea2fa656832b68bd30740">listVotes</a>.begin(); it != <a class="code" href="classCGovernanceObjectVoteFile.html#a28a321fd985ea2fa656832b68bd30740">listVotes</a>.end(); ++it) {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  vecResult.push_back(*it);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  }</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">return</span> vecResult;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> }</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classCGovernanceObjectVoteFile.html#ac565d2c0d0419344bef3b3015d12aff4"> 56</a></span> <span class="keywordtype">void</span> <a class="code" href="classCGovernanceObjectVoteFile.html#ac565d2c0d0419344bef3b3015d12aff4">CGovernanceObjectVoteFile::RemoveVotesFromMasternode</a>(<span class="keyword">const</span> <a class="code" href="classCOutPoint.html">COutPoint</a>& outpointMasternode)</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> {</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#ad1afe8426dee0a608d8c3fe8025ba80e">vote_l_it</a> it = <a class="code" href="classCGovernanceObjectVoteFile.html#a28a321fd985ea2fa656832b68bd30740">listVotes</a>.begin();</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">while</span>(it != <a class="code" href="classCGovernanceObjectVoteFile.html#a28a321fd985ea2fa656832b68bd30740">listVotes</a>.end()) {</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">if</span>(it->GetMasternodeOutpoint() == outpointMasternode) {</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  --<a class="code" href="classCGovernanceObjectVoteFile.html#ae676ac9722a1076d7bbfba2e1d2d9e7c">nMemoryVotes</a>;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#a603d6368a025adffdb1feef798ce40a7">mapVoteIndex</a>.erase(it->GetHash());</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#a28a321fd985ea2fa656832b68bd30740">listVotes</a>.erase(it++);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  ++it;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  }</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> }</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classCGovernanceObjectVoteFile.html#a0ff8f1bec394bf54be0f155db41f96ec"> 71</a></span> <a class="code" href="classCGovernanceObjectVoteFile.html">CGovernanceObjectVoteFile</a>& <a class="code" href="classCGovernanceObjectVoteFile.html#a0ff8f1bec394bf54be0f155db41f96ec">CGovernanceObjectVoteFile::operator=</a>(<span class="keyword">const</span> <a class="code" href="classCGovernanceObjectVoteFile.html">CGovernanceObjectVoteFile</a>& other)</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#ae676ac9722a1076d7bbfba2e1d2d9e7c">nMemoryVotes</a> = other.<a class="code" href="classCGovernanceObjectVoteFile.html#ae676ac9722a1076d7bbfba2e1d2d9e7c">nMemoryVotes</a>;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#a28a321fd985ea2fa656832b68bd30740">listVotes</a> = other.<a class="code" href="classCGovernanceObjectVoteFile.html#a28a321fd985ea2fa656832b68bd30740">listVotes</a>;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#abae842fdec71b72f44960d22c9ac7368">RebuildIndex</a>();</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> }</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classCGovernanceObjectVoteFile.html#abae842fdec71b72f44960d22c9ac7368"> 79</a></span> <span class="keywordtype">void</span> <a class="code" href="classCGovernanceObjectVoteFile.html#abae842fdec71b72f44960d22c9ac7368">CGovernanceObjectVoteFile::RebuildIndex</a>()</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> {</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#a603d6368a025adffdb1feef798ce40a7">mapVoteIndex</a>.clear();</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#ae676ac9722a1076d7bbfba2e1d2d9e7c">nMemoryVotes</a> = 0;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#ad1afe8426dee0a608d8c3fe8025ba80e">vote_l_it</a> it = <a class="code" href="classCGovernanceObjectVoteFile.html#a28a321fd985ea2fa656832b68bd30740">listVotes</a>.begin();</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">while</span>(it != <a class="code" href="classCGovernanceObjectVoteFile.html#a28a321fd985ea2fa656832b68bd30740">listVotes</a>.end()) {</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="classCGovernanceVote.html">CGovernanceVote</a>& vote = *it;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="classuint256.html">uint256</a> nHash = vote.<a class="code" href="classCGovernanceVote.html#ab383fc21c110b24d96a04640d7d886e1">GetHash</a>();</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordflow">if</span>(<a class="code" href="classCGovernanceObjectVoteFile.html#a603d6368a025adffdb1feef798ce40a7">mapVoteIndex</a>.find(nHash) == <a class="code" href="classCGovernanceObjectVoteFile.html#a603d6368a025adffdb1feef798ce40a7">mapVoteIndex</a>.end()) {</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#a603d6368a025adffdb1feef798ce40a7">mapVoteIndex</a>[nHash] = it;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  ++<a class="code" href="classCGovernanceObjectVoteFile.html#ae676ac9722a1076d7bbfba2e1d2d9e7c">nMemoryVotes</a>;</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  ++it;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  }</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="classCGovernanceObjectVoteFile.html#a28a321fd985ea2fa656832b68bd30740">listVotes</a>.erase(it++);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  }</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> }</div><div class="ttc" id="classCGovernanceObjectVoteFile_html_ad1afe8426dee0a608d8c3fe8025ba80e"><div class="ttname"><a href="classCGovernanceObjectVoteFile.html#ad1afe8426dee0a608d8c3fe8025ba80e">CGovernanceObjectVoteFile::vote_l_it</a></div><div class="ttdeci">vote_l_t::iterator vote_l_it</div><div class="ttdef"><b>Definition:</b> <a href="governance-votedb_8h_source.html#l00028">governance-votedb.h:28</a></div></div>
|
|
<div class="ttc" id="classCGovernanceObjectVoteFile_html_a23cc5f6602ed9269c17f178854b32f49"><div class="ttname"><a href="classCGovernanceObjectVoteFile.html#a23cc5f6602ed9269c17f178854b32f49">CGovernanceObjectVoteFile::GetVotes</a></div><div class="ttdeci">std::vector< CGovernanceVote > GetVotes() const</div><div class="ttdef"><b>Definition:</b> <a href="governance-votedb_8cpp_source.html#l00047">governance-votedb.cpp:47</a></div></div>
|
|
<div class="ttc" id="classCGovernanceObjectVoteFile_html"><div class="ttname"><a href="classCGovernanceObjectVoteFile.html">CGovernanceObjectVoteFile</a></div><div class="ttdef"><b>Definition:</b> <a href="governance-votedb_8h_source.html#l00023">governance-votedb.h:23</a></div></div>
|
|
<div class="ttc" id="classCGovernanceObjectVoteFile_html_a0bfd2b7928e2e36d34a863726b84f01f"><div class="ttname"><a href="classCGovernanceObjectVoteFile.html#a0bfd2b7928e2e36d34a863726b84f01f">CGovernanceObjectVoteFile::AddVote</a></div><div class="ttdeci">void AddVote(const CGovernanceVote &vote)</div><div class="ttdef"><b>Definition:</b> <a href="governance-votedb_8cpp_source.html#l00021">governance-votedb.cpp:21</a></div></div>
|
|
<div class="ttc" id="classCGovernanceObjectVoteFile_html_a28a321fd985ea2fa656832b68bd30740"><div class="ttname"><a href="classCGovernanceObjectVoteFile.html#a28a321fd985ea2fa656832b68bd30740">CGovernanceObjectVoteFile::listVotes</a></div><div class="ttdeci">vote_l_t listVotes</div><div class="ttdef"><b>Definition:</b> <a href="governance-votedb_8h_source.html#l00043">governance-votedb.h:43</a></div></div>
|
|
<div class="ttc" id="classCGovernanceObjectVoteFile_html_ac0e72f26f88c5fa6de07da19929f93ec"><div class="ttname"><a href="classCGovernanceObjectVoteFile.html#ac0e72f26f88c5fa6de07da19929f93ec">CGovernanceObjectVoteFile::GetVote</a></div><div class="ttdeci">bool GetVote(const uint256 &nHash, CGovernanceVote &vote) const</div><div class="ttdef"><b>Definition:</b> <a href="governance-votedb_8cpp_source.html#l00037">governance-votedb.cpp:37</a></div></div>
|
|
<div class="ttc" id="classCGovernanceVote_html_ab383fc21c110b24d96a04640d7d886e1"><div class="ttname"><a href="classCGovernanceVote.html#ab383fc21c110b24d96a04640d7d886e1">CGovernanceVote::GetHash</a></div><div class="ttdeci">uint256 GetHash() const</div><div class="ttdef"><b>Definition:</b> <a href="governance-vote_8h_source.html#l00140">governance-vote.h:140</a></div></div>
|
|
<div class="ttc" id="classCOutPoint_html"><div class="ttname"><a href="classCOutPoint.html">COutPoint</a></div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00015">transaction.h:15</a></div></div>
|
|
<div class="ttc" id="classCGovernanceObjectVoteFile_html_a603d6368a025adffdb1feef798ce40a7"><div class="ttname"><a href="classCGovernanceObjectVoteFile.html#a603d6368a025adffdb1feef798ce40a7">CGovernanceObjectVoteFile::mapVoteIndex</a></div><div class="ttdeci">vote_m_t mapVoteIndex</div><div class="ttdef"><b>Definition:</b> <a href="governance-votedb_8h_source.html#l00045">governance-votedb.h:45</a></div></div>
|
|
<div class="ttc" id="classCGovernanceVote_html"><div class="ttname"><a href="classCGovernanceVote.html">CGovernanceVote</a></div><div class="ttdef"><b>Definition:</b> <a href="governance-vote_8h_source.html#l00088">governance-vote.h:88</a></div></div>
|
|
<div class="ttc" id="classCGovernanceObjectVoteFile_html_ac565d2c0d0419344bef3b3015d12aff4"><div class="ttname"><a href="classCGovernanceObjectVoteFile.html#ac565d2c0d0419344bef3b3015d12aff4">CGovernanceObjectVoteFile::RemoveVotesFromMasternode</a></div><div class="ttdeci">void RemoveVotesFromMasternode(const COutPoint &outpointMasternode)</div><div class="ttdef"><b>Definition:</b> <a href="governance-votedb_8cpp_source.html#l00056">governance-votedb.cpp:56</a></div></div>
|
|
<div class="ttc" id="governance-votedb_8h_html"><div class="ttname"><a href="governance-votedb_8h.html">governance-votedb.h</a></div></div>
|
|
<div class="ttc" id="classuint256_html"><div class="ttname"><a href="classuint256.html">uint256</a></div><div class="ttdef"><b>Definition:</b> <a href="uint256_8h_source.html#l00114">uint256.h:114</a></div></div>
|
|
<div class="ttc" id="classCGovernanceObjectVoteFile_html_a0875c5f3b0fc99fb8a43445302fccf44"><div class="ttname"><a href="classCGovernanceObjectVoteFile.html#a0875c5f3b0fc99fb8a43445302fccf44">CGovernanceObjectVoteFile::HasVote</a></div><div class="ttdeci">bool HasVote(const uint256 &nHash) const</div><div class="ttdef"><b>Definition:</b> <a href="governance-votedb_8cpp_source.html#l00028">governance-votedb.cpp:28</a></div></div>
|
|
<div class="ttc" id="classCGovernanceObjectVoteFile_html_aa0cb1e387fa2611422b5cf04a1fe6a56"><div class="ttname"><a href="classCGovernanceObjectVoteFile.html#aa0cb1e387fa2611422b5cf04a1fe6a56">CGovernanceObjectVoteFile::CGovernanceObjectVoteFile</a></div><div class="ttdeci">CGovernanceObjectVoteFile()</div><div class="ttdef"><b>Definition:</b> <a href="governance-votedb_8cpp_source.html#l00007">governance-votedb.cpp:7</a></div></div>
|
|
<div class="ttc" id="classCGovernanceObjectVoteFile_html_a0ff8f1bec394bf54be0f155db41f96ec"><div class="ttname"><a href="classCGovernanceObjectVoteFile.html#a0ff8f1bec394bf54be0f155db41f96ec">CGovernanceObjectVoteFile::operator=</a></div><div class="ttdeci">CGovernanceObjectVoteFile & operator=(const CGovernanceObjectVoteFile &other)</div><div class="ttdef"><b>Definition:</b> <a href="governance-votedb_8cpp_source.html#l00071">governance-votedb.cpp:71</a></div></div>
|
|
<div class="ttc" id="classCGovernanceObjectVoteFile_html_a2a53d08ef2270e1d76bca62f51da3ccf"><div class="ttname"><a href="classCGovernanceObjectVoteFile.html#a2a53d08ef2270e1d76bca62f51da3ccf">CGovernanceObjectVoteFile::vote_m_cit</a></div><div class="ttdeci">vote_m_t::const_iterator vote_m_cit</div><div class="ttdef"><b>Definition:</b> <a href="governance-votedb_8h_source.html#l00036">governance-votedb.h:36</a></div></div>
|
|
<div class="ttc" id="classCGovernanceObjectVoteFile_html_ae676ac9722a1076d7bbfba2e1d2d9e7c"><div class="ttname"><a href="classCGovernanceObjectVoteFile.html#ae676ac9722a1076d7bbfba2e1d2d9e7c">CGovernanceObjectVoteFile::nMemoryVotes</a></div><div class="ttdeci">int nMemoryVotes</div><div class="ttdef"><b>Definition:</b> <a href="governance-votedb_8h_source.html#l00041">governance-votedb.h:41</a></div></div>
|
|
<div class="ttc" id="classCGovernanceObjectVoteFile_html_abae842fdec71b72f44960d22c9ac7368"><div class="ttname"><a href="classCGovernanceObjectVoteFile.html#abae842fdec71b72f44960d22c9ac7368">CGovernanceObjectVoteFile::RebuildIndex</a></div><div class="ttdeci">void RebuildIndex()</div><div class="ttdef"><b>Definition:</b> <a href="governance-votedb_8cpp_source.html#l00079">governance-votedb.cpp:79</a></div></div>
|
|
<div class="ttc" id="classCGovernanceObjectVoteFile_html_a286f1c0c773cf4cb96cc54bb3277785b"><div class="ttname"><a href="classCGovernanceObjectVoteFile.html#a286f1c0c773cf4cb96cc54bb3277785b">CGovernanceObjectVoteFile::vote_l_cit</a></div><div class="ttdeci">vote_l_t::const_iterator vote_l_cit</div><div class="ttdef"><b>Definition:</b> <a href="governance-votedb_8h_source.html#l00030">governance-votedb.h:30</a></div></div>
|
|
</div><!-- fragment --></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="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="governance-votedb_8cpp.html">governance-votedb.cpp</a></li>
|
|
<li class="footer">Generated on Thu Dec 14 2017 13:15:03 for Dash Core 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>
|