mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-22 12:05:53 +00:00
295 lines
50 KiB
HTML
295 lines
50 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" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.5"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>rippled: predicates.h 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="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 id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.5 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(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">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_a62226f9e3a6c7c5a3be455e2f87ae01.html">xrpld</a></li><li class="navelem"><a class="el" href="dir_c4f38cd849aa2a8e7280b7c5f705957a.html">overlay</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">predicates.h</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment">*/</span></div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">//==============================================================================</span></div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#ifndef RIPPLE_OVERLAY_PREDICATES_H_INCLUDED</span></div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#define RIPPLE_OVERLAY_PREDICATES_H_INCLUDED</span></div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include <xrpld/overlay/Message.h></span></div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include <xrpld/overlay/Peer.h></span></div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/set.html">set</a>></span></div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="structripple_1_1send__always.html"> 31</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1send__always.html">send_always</a></div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span>{</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="structripple_1_1send__always.html#aa23607aafdd78ab88d9a9b18b3581291"> 33</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="structripple_1_1send__always.html#aa23607aafdd78ab88d9a9b18b3581291">return_type</a> = void;</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="structripple_1_1send__always.html#a0eb78f9fbfc18e45abe26bfb0d1a6c65"> 35</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Message></a> <span class="keyword">const</span>& <a class="code hl_variable" href="structripple_1_1send__always.html#a0eb78f9fbfc18e45abe26bfb0d1a6c65">msg</a>;</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="structripple_1_1send__always.html#a807c7b37df5293256db2cb8cf6e90dd2"> 37</a></span> <a class="code hl_function" href="structripple_1_1send__always.html#a807c7b37df5293256db2cb8cf6e90dd2">send_always</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Message></a> <span class="keyword">const</span>& m) : <a class="code hl_variable" href="structripple_1_1send__always.html#a0eb78f9fbfc18e45abe26bfb0d1a6c65">msg</a>(m)</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> {</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> }</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="structripple_1_1send__always.html#ac2ccac949c1d96b5a4f2796294a4ccd1"> 42</a></span> <a class="code hl_function" href="structripple_1_1send__always.html#ac2ccac949c1d96b5a4f2796294a4ccd1">operator()</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Peer></a> <span class="keyword">const</span>& peer)<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> peer->send(<a class="code hl_variable" href="structripple_1_1send__always.html#a0eb78f9fbfc18e45abe26bfb0d1a6c65">msg</a>);</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> }</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span>};</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span><span class="keyword">template</span> <<span class="keyword">typename</span> Predicate></div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__pred.html"> 52</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1send__if__pred.html">send_if_pred</a></div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span>{</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__pred.html#a82a5bbc48043f46e8335a344870b7739"> 54</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="structripple_1_1send__if__pred.html#a82a5bbc48043f46e8335a344870b7739">return_type</a> = void;</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__pred.html#a2f3d17f87c15de953398c4050335dd93"> 56</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Message></a> <span class="keyword">const</span>& <a class="code hl_variable" href="structripple_1_1send__if__pred.html#a2f3d17f87c15de953398c4050335dd93">msg</a>;</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__pred.html#acbe47ba6ff8222b6e19b39f06237b5e8"> 57</a></span> Predicate <span class="keyword">const</span>& <a class="code hl_variable" href="structripple_1_1send__if__pred.html#acbe47ba6ff8222b6e19b39f06237b5e8">predicate</a>;</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__pred.html#ae6daf0b7b1c2e11d9a7cb35547a12009"> 59</a></span> <a class="code hl_function" href="structripple_1_1send__if__pred.html#ae6daf0b7b1c2e11d9a7cb35547a12009">send_if_pred</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Message></a> <span class="keyword">const</span>& m, Predicate <span class="keyword">const</span>& p)</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> : <a class="code hl_variable" href="structripple_1_1send__if__pred.html#a2f3d17f87c15de953398c4050335dd93">msg</a>(m), <a class="code hl_variable" href="structripple_1_1send__if__pred.html#acbe47ba6ff8222b6e19b39f06237b5e8">predicate</a>(p)</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> {</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> }</div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__pred.html#a4bc3ba1c50df2e612d1db7aea043a994"> 65</a></span> <a class="code hl_function" href="structripple_1_1send__if__pred.html#a4bc3ba1c50df2e612d1db7aea043a994">operator()</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Peer></a> <span class="keyword">const</span>& peer)<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="structripple_1_1send__if__pred.html#acbe47ba6ff8222b6e19b39f06237b5e8">predicate</a>(peer))</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> peer->send(<a class="code hl_variable" href="structripple_1_1send__if__pred.html#a2f3d17f87c15de953398c4050335dd93">msg</a>);</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> }</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span>};</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span><span class="keyword">template</span> <<span class="keyword">typename</span> Predicate></div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span>send_if_pred<Predicate></div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="namespaceripple.html#aa580431ba7bf2b343df621df433d3361"> 75</a></span><a class="code hl_function" href="namespaceripple.html#aa580431ba7bf2b343df621df433d3361">send_if</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Message></a> <span class="keyword">const</span>& m, Predicate <span class="keyword">const</span>& f)</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span>{</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">return</span> <a class="code hl_struct" href="structripple_1_1send__if__pred.html">send_if_pred<Predicate></a>(m, f);</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span>}</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span><span class="keyword">template</span> <<span class="keyword">typename</span> Predicate></div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__not__pred.html"> 84</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1send__if__not__pred.html">send_if_not_pred</a></div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span>{</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__not__pred.html#a6d04a93c9c086f5d1714a18e42f919c6"> 86</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="structripple_1_1send__if__not__pred.html#a6d04a93c9c086f5d1714a18e42f919c6">return_type</a> = void;</div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__not__pred.html#ae57adcfbcfdb1db70607c3af2bd0d6cd"> 88</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Message></a> <span class="keyword">const</span>& <a class="code hl_variable" href="structripple_1_1send__if__not__pred.html#ae57adcfbcfdb1db70607c3af2bd0d6cd">msg</a>;</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__not__pred.html#a5a1cdfe429edbf236c3b7717122950d6"> 89</a></span> Predicate <span class="keyword">const</span>& <a class="code hl_variable" href="structripple_1_1send__if__not__pred.html#a5a1cdfe429edbf236c3b7717122950d6">predicate</a>;</div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__not__pred.html#ae7ddbcaa92f300ba7a2e861702512a9f"> 91</a></span> <a class="code hl_function" href="structripple_1_1send__if__not__pred.html#ae7ddbcaa92f300ba7a2e861702512a9f">send_if_not_pred</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Message></a> <span class="keyword">const</span>& m, Predicate <span class="keyword">const</span>& p)</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> : <a class="code hl_variable" href="structripple_1_1send__if__not__pred.html#ae57adcfbcfdb1db70607c3af2bd0d6cd">msg</a>(m), <a class="code hl_variable" href="structripple_1_1send__if__not__pred.html#a5a1cdfe429edbf236c3b7717122950d6">predicate</a>(p)</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> {</div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> }</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__not__pred.html#a6495f11f8f22235caaced4191d1b5d7f"> 97</a></span> <a class="code hl_function" href="structripple_1_1send__if__not__pred.html#a6495f11f8f22235caaced4191d1b5d7f">operator()</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Peer></a> <span class="keyword">const</span>& peer)<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keywordflow">if</span> (!<a class="code hl_variable" href="structripple_1_1send__if__not__pred.html#a5a1cdfe429edbf236c3b7717122950d6">predicate</a>(peer))</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> peer->send(<a class="code hl_variable" href="structripple_1_1send__if__not__pred.html#ae57adcfbcfdb1db70607c3af2bd0d6cd">msg</a>);</div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> }</div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span>};</div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span><span class="keyword">template</span> <<span class="keyword">typename</span> Predicate></div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span>send_if_not_pred<Predicate></div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="namespaceripple.html#a7c69a5bb23e01561ea9791383966bbea"> 107</a></span><a class="code hl_function" href="namespaceripple.html#a7c69a5bb23e01561ea9791383966bbea">send_if_not</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Message></a> <span class="keyword">const</span>& m, Predicate <span class="keyword">const</span>& f)</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span>{</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keywordflow">return</span> <a class="code hl_struct" href="structripple_1_1send__if__not__pred.html">send_if_not_pred<Predicate></a>(m, f);</div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span>}</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> </div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="structripple_1_1match__peer.html"> 115</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1match__peer.html">match_peer</a></div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span>{</div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"><a class="line" href="structripple_1_1match__peer.html#adfc805112d4b79c5178115684885a415"> 117</a></span> <a class="code hl_class" href="classripple_1_1Peer.html">Peer</a> <span class="keyword">const</span>* <a class="code hl_variable" href="structripple_1_1match__peer.html#adfc805112d4b79c5178115684885a415">matchPeer</a>;</div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> </div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="structripple_1_1match__peer.html#a9f09c931e4623d9c7d09f7c0fbeb199b"> 119</a></span> <a class="code hl_function" href="structripple_1_1match__peer.html#a9f09c931e4623d9c7d09f7c0fbeb199b">match_peer</a>(<a class="code hl_class" href="classripple_1_1Peer.html">Peer</a> <span class="keyword">const</span>* <a class="code hl_enumvalue" href="namespaceripple.html#aad512dea42da4cc179f20c67de593c26ae3cc92c14a5e6dd1a7d94b6ff634d7fc">match</a> = <span class="keyword">nullptr</span>) : <a class="code hl_variable" href="structripple_1_1match__peer.html#adfc805112d4b79c5178115684885a415">matchPeer</a>(<a class="code hl_enumvalue" href="namespaceripple.html#aad512dea42da4cc179f20c67de593c26ae3cc92c14a5e6dd1a7d94b6ff634d7fc">match</a>)</div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> {</div>
|
|
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> }</div>
|
|
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> </div>
|
|
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"><a class="line" href="structripple_1_1match__peer.html#a58f4acb04331a4021b167c43704f14fb"> 124</a></span> <a class="code hl_function" href="structripple_1_1match__peer.html#a58f4acb04331a4021b167c43704f14fb">operator()</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Peer></a> <span class="keyword">const</span>& peer)<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="structripple_1_1match__peer.html#adfc805112d4b79c5178115684885a415">matchPeer</a> && (peer.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr/get.html">get</a>() == <a class="code hl_variable" href="structripple_1_1match__peer.html#adfc805112d4b79c5178115684885a415">matchPeer</a>))</div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> }</div>
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span>};</div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> </div>
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> </div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__cluster.html"> 136</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1peer__in__cluster.html">peer_in_cluster</a></div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span>{</div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__cluster.html#a2ac211db12a1a580890c71d7c6f4d36e"> 138</a></span> <a class="code hl_struct" href="structripple_1_1match__peer.html">match_peer</a> <a class="code hl_variable" href="structripple_1_1peer__in__cluster.html#a2ac211db12a1a580890c71d7c6f4d36e">skipPeer</a>;</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> </div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__cluster.html#a8bfb53aecc6cb8f084bfbf6cf5275665"> 140</a></span> <a class="code hl_function" href="structripple_1_1peer__in__cluster.html#a8bfb53aecc6cb8f084bfbf6cf5275665">peer_in_cluster</a>(<a class="code hl_class" href="classripple_1_1Peer.html">Peer</a> <span class="keyword">const</span>* skip = <span class="keyword">nullptr</span>) : <a class="code hl_variable" href="structripple_1_1peer__in__cluster.html#a2ac211db12a1a580890c71d7c6f4d36e">skipPeer</a>(skip)</div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> {</div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> }</div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__cluster.html#a7f044e2cbfaf9cdf94f17d1f7aef24ed"> 145</a></span> <a class="code hl_function" href="structripple_1_1peer__in__cluster.html#a7f044e2cbfaf9cdf94f17d1f7aef24ed">operator()</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Peer></a> <span class="keyword">const</span>& peer)<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="structripple_1_1peer__in__cluster.html#a2ac211db12a1a580890c71d7c6f4d36e">skipPeer</a>(peer))</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="keywordflow">if</span> (!peer->cluster())</div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> </div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> }</div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span>};</div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> </div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__set.html"> 160</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1peer__in__set.html">peer_in_set</a></div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span>{</div>
|
|
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__set.html#a5b2468fdfdd8207850839f76686ba840"> 162</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set<Peer::id_t></a> <span class="keyword">const</span>& <a class="code hl_variable" href="structripple_1_1peer__in__set.html#a5b2468fdfdd8207850839f76686ba840">peerSet</a>;</div>
|
|
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> </div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__set.html#a005c932eb6b8ac90a50b923c4fd3f915"> 164</a></span> <a class="code hl_function" href="structripple_1_1peer__in__set.html#a005c932eb6b8ac90a50b923c4fd3f915">peer_in_set</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set<Peer::id_t></a> <span class="keyword">const</span>& peers) : <a class="code hl_variable" href="structripple_1_1peer__in__set.html#a5b2468fdfdd8207850839f76686ba840">peerSet</a>(peers)</div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> {</div>
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> }</div>
|
|
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> </div>
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__set.html#ac882566095bf84112f03916ce721e49d"> 169</a></span> <a class="code hl_function" href="structripple_1_1peer__in__set.html#ac882566095bf84112f03916ce721e49d">operator()</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Peer></a> <span class="keyword">const</span>& peer)<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="structripple_1_1peer__in__set.html#a5b2468fdfdd8207850839f76686ba840">peerSet</a>.count(peer->id()) == 0)</div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> </div>
|
|
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> }</div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span>};</div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> </div>
|
|
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span>} <span class="comment">// namespace ripple</span></div>
|
|
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> </div>
|
|
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span><span class="preprocessor">#endif</span></div>
|
|
<div class="ttc" id="aclassripple_1_1Peer_html"><div class="ttname"><a href="classripple_1_1Peer.html">ripple::Peer</a></div><div class="ttdoc">Represents a peer connection in the overlay.</div><div class="ttdef"><b>Definition:</b> <a href="xrpld_2overlay_2Peer_8h_source.html#l00042">xrpld/overlay/Peer.h:43</a></div></div>
|
|
<div class="ttc" id="aget_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr/get.html">std::shared_ptr::get</a></div><div class="ttdeci">T get(T... args)</div></div>
|
|
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="algorithm_8h_source.html#l00026">algorithm.h:26</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a7c69a5bb23e01561ea9791383966bbea"><div class="ttname"><a href="namespaceripple.html#a7c69a5bb23e01561ea9791383966bbea">ripple::send_if_not</a></div><div class="ttdeci">send_if_not_pred< Predicate > send_if_not(std::shared_ptr< Message > const &m, Predicate const &f)</div><div class="ttdoc">Helper function to aid in type deduction.</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00107">predicates.h:107</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_aa580431ba7bf2b343df621df433d3361"><div class="ttname"><a href="namespaceripple.html#aa580431ba7bf2b343df621df433d3361">ripple::send_if</a></div><div class="ttdeci">send_if_pred< Predicate > send_if(std::shared_ptr< Message > const &m, Predicate const &f)</div><div class="ttdoc">Helper function to aid in type deduction.</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00075">predicates.h:75</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_aad512dea42da4cc179f20c67de593c26ae3cc92c14a5e6dd1a7d94b6ff634d7fc"><div class="ttname"><a href="namespaceripple.html#aad512dea42da4cc179f20c67de593c26ae3cc92c14a5e6dd1a7d94b6ff634d7fc">ripple::AttestationMatch::match</a></div><div class="ttdeci">@ match</div></div>
|
|
<div class="ttc" id="aset_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/set.html">set</a></div></div>
|
|
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1match__peer_html"><div class="ttname"><a href="structripple_1_1match__peer.html">ripple::match_peer</a></div><div class="ttdoc">Select the specific peer.</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00115">predicates.h:116</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1match__peer_html_a58f4acb04331a4021b167c43704f14fb"><div class="ttname"><a href="structripple_1_1match__peer.html#a58f4acb04331a4021b167c43704f14fb">ripple::match_peer::operator()</a></div><div class="ttdeci">bool operator()(std::shared_ptr< Peer > const &peer) const</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00124">predicates.h:124</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1match__peer_html_a9f09c931e4623d9c7d09f7c0fbeb199b"><div class="ttname"><a href="structripple_1_1match__peer.html#a9f09c931e4623d9c7d09f7c0fbeb199b">ripple::match_peer::match_peer</a></div><div class="ttdeci">match_peer(Peer const *match=nullptr)</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00119">predicates.h:119</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1match__peer_html_adfc805112d4b79c5178115684885a415"><div class="ttname"><a href="structripple_1_1match__peer.html#adfc805112d4b79c5178115684885a415">ripple::match_peer::matchPeer</a></div><div class="ttdeci">Peer const * matchPeer</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00117">predicates.h:117</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1peer__in__cluster_html"><div class="ttname"><a href="structripple_1_1peer__in__cluster.html">ripple::peer_in_cluster</a></div><div class="ttdoc">Select all peers (except optional excluded) that are in our cluster.</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00136">predicates.h:137</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1peer__in__cluster_html_a2ac211db12a1a580890c71d7c6f4d36e"><div class="ttname"><a href="structripple_1_1peer__in__cluster.html#a2ac211db12a1a580890c71d7c6f4d36e">ripple::peer_in_cluster::skipPeer</a></div><div class="ttdeci">match_peer skipPeer</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00138">predicates.h:138</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1peer__in__cluster_html_a7f044e2cbfaf9cdf94f17d1f7aef24ed"><div class="ttname"><a href="structripple_1_1peer__in__cluster.html#a7f044e2cbfaf9cdf94f17d1f7aef24ed">ripple::peer_in_cluster::operator()</a></div><div class="ttdeci">bool operator()(std::shared_ptr< Peer > const &peer) const</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00145">predicates.h:145</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1peer__in__cluster_html_a8bfb53aecc6cb8f084bfbf6cf5275665"><div class="ttname"><a href="structripple_1_1peer__in__cluster.html#a8bfb53aecc6cb8f084bfbf6cf5275665">ripple::peer_in_cluster::peer_in_cluster</a></div><div class="ttdeci">peer_in_cluster(Peer const *skip=nullptr)</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00140">predicates.h:140</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1peer__in__set_html"><div class="ttname"><a href="structripple_1_1peer__in__set.html">ripple::peer_in_set</a></div><div class="ttdoc">Select all peers that are in the specified set.</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00160">predicates.h:161</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1peer__in__set_html_a005c932eb6b8ac90a50b923c4fd3f915"><div class="ttname"><a href="structripple_1_1peer__in__set.html#a005c932eb6b8ac90a50b923c4fd3f915">ripple::peer_in_set::peer_in_set</a></div><div class="ttdeci">peer_in_set(std::set< Peer::id_t > const &peers)</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00164">predicates.h:164</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1peer__in__set_html_a5b2468fdfdd8207850839f76686ba840"><div class="ttname"><a href="structripple_1_1peer__in__set.html#a5b2468fdfdd8207850839f76686ba840">ripple::peer_in_set::peerSet</a></div><div class="ttdeci">std::set< Peer::id_t > const & peerSet</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00162">predicates.h:162</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1peer__in__set_html_ac882566095bf84112f03916ce721e49d"><div class="ttname"><a href="structripple_1_1peer__in__set.html#ac882566095bf84112f03916ce721e49d">ripple::peer_in_set::operator()</a></div><div class="ttdeci">bool operator()(std::shared_ptr< Peer > const &peer) const</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00169">predicates.h:169</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__always_html"><div class="ttname"><a href="structripple_1_1send__always.html">ripple::send_always</a></div><div class="ttdoc">Sends a message to all peers.</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00031">predicates.h:32</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__always_html_a0eb78f9fbfc18e45abe26bfb0d1a6c65"><div class="ttname"><a href="structripple_1_1send__always.html#a0eb78f9fbfc18e45abe26bfb0d1a6c65">ripple::send_always::msg</a></div><div class="ttdeci">std::shared_ptr< Message > const & msg</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00035">predicates.h:35</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__always_html_a807c7b37df5293256db2cb8cf6e90dd2"><div class="ttname"><a href="structripple_1_1send__always.html#a807c7b37df5293256db2cb8cf6e90dd2">ripple::send_always::send_always</a></div><div class="ttdeci">send_always(std::shared_ptr< Message > const &m)</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00037">predicates.h:37</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__always_html_aa23607aafdd78ab88d9a9b18b3581291"><div class="ttname"><a href="structripple_1_1send__always.html#aa23607aafdd78ab88d9a9b18b3581291">ripple::send_always::return_type</a></div><div class="ttdeci">void return_type</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00033">predicates.h:33</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__always_html_ac2ccac949c1d96b5a4f2796294a4ccd1"><div class="ttname"><a href="structripple_1_1send__always.html#ac2ccac949c1d96b5a4f2796294a4ccd1">ripple::send_always::operator()</a></div><div class="ttdeci">void operator()(std::shared_ptr< Peer > const &peer) const</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00042">predicates.h:42</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__if__not__pred_html"><div class="ttname"><a href="structripple_1_1send__if__not__pred.html">ripple::send_if_not_pred</a></div><div class="ttdoc">Sends a message to non-matching peers.</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00084">predicates.h:85</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__if__not__pred_html_a5a1cdfe429edbf236c3b7717122950d6"><div class="ttname"><a href="structripple_1_1send__if__not__pred.html#a5a1cdfe429edbf236c3b7717122950d6">ripple::send_if_not_pred::predicate</a></div><div class="ttdeci">Predicate const & predicate</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00089">predicates.h:89</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__if__not__pred_html_a6495f11f8f22235caaced4191d1b5d7f"><div class="ttname"><a href="structripple_1_1send__if__not__pred.html#a6495f11f8f22235caaced4191d1b5d7f">ripple::send_if_not_pred::operator()</a></div><div class="ttdeci">void operator()(std::shared_ptr< Peer > const &peer) const</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00097">predicates.h:97</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__if__not__pred_html_a6d04a93c9c086f5d1714a18e42f919c6"><div class="ttname"><a href="structripple_1_1send__if__not__pred.html#a6d04a93c9c086f5d1714a18e42f919c6">ripple::send_if_not_pred::return_type</a></div><div class="ttdeci">void return_type</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00086">predicates.h:86</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__if__not__pred_html_ae57adcfbcfdb1db70607c3af2bd0d6cd"><div class="ttname"><a href="structripple_1_1send__if__not__pred.html#ae57adcfbcfdb1db70607c3af2bd0d6cd">ripple::send_if_not_pred::msg</a></div><div class="ttdeci">std::shared_ptr< Message > const & msg</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00088">predicates.h:88</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__if__not__pred_html_ae7ddbcaa92f300ba7a2e861702512a9f"><div class="ttname"><a href="structripple_1_1send__if__not__pred.html#ae7ddbcaa92f300ba7a2e861702512a9f">ripple::send_if_not_pred::send_if_not_pred</a></div><div class="ttdeci">send_if_not_pred(std::shared_ptr< Message > const &m, Predicate const &p)</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00091">predicates.h:91</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__if__pred_html"><div class="ttname"><a href="structripple_1_1send__if__pred.html">ripple::send_if_pred</a></div><div class="ttdoc">Sends a message to match peers.</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00052">predicates.h:53</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__if__pred_html_a2f3d17f87c15de953398c4050335dd93"><div class="ttname"><a href="structripple_1_1send__if__pred.html#a2f3d17f87c15de953398c4050335dd93">ripple::send_if_pred::msg</a></div><div class="ttdeci">std::shared_ptr< Message > const & msg</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00056">predicates.h:56</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__if__pred_html_a4bc3ba1c50df2e612d1db7aea043a994"><div class="ttname"><a href="structripple_1_1send__if__pred.html#a4bc3ba1c50df2e612d1db7aea043a994">ripple::send_if_pred::operator()</a></div><div class="ttdeci">void operator()(std::shared_ptr< Peer > const &peer) const</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00065">predicates.h:65</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__if__pred_html_a82a5bbc48043f46e8335a344870b7739"><div class="ttname"><a href="structripple_1_1send__if__pred.html#a82a5bbc48043f46e8335a344870b7739">ripple::send_if_pred::return_type</a></div><div class="ttdeci">void return_type</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00054">predicates.h:54</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__if__pred_html_acbe47ba6ff8222b6e19b39f06237b5e8"><div class="ttname"><a href="structripple_1_1send__if__pred.html#acbe47ba6ff8222b6e19b39f06237b5e8">ripple::send_if_pred::predicate</a></div><div class="ttdeci">Predicate const & predicate</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00057">predicates.h:57</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1send__if__pred_html_ae6daf0b7b1c2e11d9a7cb35547a12009"><div class="ttname"><a href="structripple_1_1send__if__pred.html#ae6daf0b7b1c2e11d9a7cb35547a12009">ripple::send_if_pred::send_if_pred</a></div><div class="ttdeci">send_if_pred(std::shared_ptr< Message > const &m, Predicate const &p)</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00059">predicates.h:59</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
|
|
</small></address>
|
|
</body>
|
|
</html>
|