Files
rippled/predicates_8h_source.html
2021-01-27 00:52:49 +00:00

289 lines
48 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: 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 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="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_b003f5a72efe503c7552f86021e0c4d2.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 name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#ifndef RIPPLE_OVERLAY_PREDICATES_H_INCLUDED</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#define RIPPLE_OVERLAY_PREDICATES_H_INCLUDED</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ripple/overlay/Message.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;ripple/overlay/Peer.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/set.html">set</a>&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="structripple_1_1send__always.html"> 31</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structripple_1_1send__always.html">send_always</a></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;{</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="structripple_1_1send__always.html#aa23607aafdd78ab88d9a9b18b3581291"> 33</a></span>&#160; <span class="keyword">using</span> <a class="code" href="structripple_1_1send__always.html#aa23607aafdd78ab88d9a9b18b3581291">return_type</a> = void;</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="structripple_1_1send__always.html#a0eb78f9fbfc18e45abe26bfb0d1a6c65"> 35</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Message&gt;</a> <span class="keyword">const</span>&amp; <a class="code" href="structripple_1_1send__always.html#a0eb78f9fbfc18e45abe26bfb0d1a6c65">msg</a>;</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="structripple_1_1send__always.html#a807c7b37df5293256db2cb8cf6e90dd2"> 37</a></span>&#160; <a class="code" href="structripple_1_1send__always.html#a807c7b37df5293256db2cb8cf6e90dd2">send_always</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Message&gt;</a> <span class="keyword">const</span>&amp; m) : <a class="code" href="structripple_1_1send__always.html#a0eb78f9fbfc18e45abe26bfb0d1a6c65">msg</a>(m)</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; {</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; }</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structripple_1_1send__always.html#ac2ccac949c1d96b5a4f2796294a4ccd1"> 42</a></span>&#160; <a class="code" href="structripple_1_1send__always.html#ac2ccac949c1d96b5a4f2796294a4ccd1">operator()</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Peer&gt;</a> <span class="keyword">const</span>&amp; peer)<span class="keyword"> const</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; peer-&gt;send(<a class="code" href="structripple_1_1send__always.html#a0eb78f9fbfc18e45abe26bfb0d1a6c65">msg</a>);</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; }</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;};</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Predicate&gt;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__pred.html"> 52</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structripple_1_1send__if__pred.html">send_if_pred</a></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;{</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__pred.html#a82a5bbc48043f46e8335a344870b7739"> 54</a></span>&#160; <span class="keyword">using</span> <a class="code" href="structripple_1_1send__if__pred.html#a82a5bbc48043f46e8335a344870b7739">return_type</a> = void;</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__pred.html#a2f3d17f87c15de953398c4050335dd93"> 56</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Message&gt;</a> <span class="keyword">const</span>&amp; <a class="code" href="structripple_1_1send__if__pred.html#a2f3d17f87c15de953398c4050335dd93">msg</a>;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__pred.html#acbe47ba6ff8222b6e19b39f06237b5e8"> 57</a></span>&#160; Predicate <span class="keyword">const</span>&amp; <a class="code" href="structripple_1_1send__if__pred.html#acbe47ba6ff8222b6e19b39f06237b5e8">predicate</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__pred.html#ae6daf0b7b1c2e11d9a7cb35547a12009"> 59</a></span>&#160; <a class="code" href="structripple_1_1send__if__pred.html#ae6daf0b7b1c2e11d9a7cb35547a12009">send_if_pred</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Message&gt;</a> <span class="keyword">const</span>&amp; m, Predicate <span class="keyword">const</span>&amp; p)</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; : <a class="code" href="structripple_1_1send__if__pred.html#a2f3d17f87c15de953398c4050335dd93">msg</a>(m), <a class="code" href="structripple_1_1send__if__pred.html#acbe47ba6ff8222b6e19b39f06237b5e8">predicate</a>(p)</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; {</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; }</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__pred.html#a4bc3ba1c50df2e612d1db7aea043a994"> 65</a></span>&#160; <a class="code" href="structripple_1_1send__if__pred.html#a4bc3ba1c50df2e612d1db7aea043a994">operator()</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Peer&gt;</a> <span class="keyword">const</span>&amp; peer)<span class="keyword"> const</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="structripple_1_1send__if__pred.html#acbe47ba6ff8222b6e19b39f06237b5e8">predicate</a>(peer))</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; peer-&gt;send(<a class="code" href="structripple_1_1send__if__pred.html#a2f3d17f87c15de953398c4050335dd93">msg</a>);</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; }</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;};</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Predicate&gt;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;send_if_pred&lt;Predicate&gt;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="namespaceripple.html#a9ff56485de595425af402b90b41399df"> 75</a></span>&#160;<a class="code" href="namespaceripple.html#a9ff56485de595425af402b90b41399df">send_if</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Message&gt;</a> <span class="keyword">const</span>&amp; m, Predicate <span class="keyword">const</span>&amp; f)</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;{</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structripple_1_1send__if__pred.html">send_if_pred&lt;Predicate&gt;</a>(m, f);</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;}</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Predicate&gt;</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__not__pred.html"> 84</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structripple_1_1send__if__not__pred.html">send_if_not_pred</a></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;{</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__not__pred.html#a6d04a93c9c086f5d1714a18e42f919c6"> 86</a></span>&#160; <span class="keyword">using</span> <a class="code" href="structripple_1_1send__if__not__pred.html#a6d04a93c9c086f5d1714a18e42f919c6">return_type</a> = void;</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__not__pred.html#ae57adcfbcfdb1db70607c3af2bd0d6cd"> 88</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Message&gt;</a> <span class="keyword">const</span>&amp; <a class="code" href="structripple_1_1send__if__not__pred.html#ae57adcfbcfdb1db70607c3af2bd0d6cd">msg</a>;</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__not__pred.html#a5a1cdfe429edbf236c3b7717122950d6"> 89</a></span>&#160; Predicate <span class="keyword">const</span>&amp; <a class="code" href="structripple_1_1send__if__not__pred.html#a5a1cdfe429edbf236c3b7717122950d6">predicate</a>;</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__not__pred.html#ae7ddbcaa92f300ba7a2e861702512a9f"> 91</a></span>&#160; <a class="code" href="structripple_1_1send__if__not__pred.html#ae7ddbcaa92f300ba7a2e861702512a9f">send_if_not_pred</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Message&gt;</a> <span class="keyword">const</span>&amp; m, Predicate <span class="keyword">const</span>&amp; p)</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; : <a class="code" href="structripple_1_1send__if__not__pred.html#ae57adcfbcfdb1db70607c3af2bd0d6cd">msg</a>(m), <a class="code" href="structripple_1_1send__if__not__pred.html#a5a1cdfe429edbf236c3b7717122950d6">predicate</a>(p)</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; {</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; }</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structripple_1_1send__if__not__pred.html#a6495f11f8f22235caaced4191d1b5d7f"> 97</a></span>&#160; <a class="code" href="structripple_1_1send__if__not__pred.html#a6495f11f8f22235caaced4191d1b5d7f">operator()</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Peer&gt;</a> <span class="keyword">const</span>&amp; peer)<span class="keyword"> const</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="structripple_1_1send__if__not__pred.html#a5a1cdfe429edbf236c3b7717122950d6">predicate</a>(peer))</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; peer-&gt;send(<a class="code" href="structripple_1_1send__if__not__pred.html#ae57adcfbcfdb1db70607c3af2bd0d6cd">msg</a>);</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; }</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;};</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Predicate&gt;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;send_if_not_pred&lt;Predicate&gt;</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="namespaceripple.html#aadbdb5fdb67df35a18a57c2db051b3f5"> 107</a></span>&#160;<a class="code" href="namespaceripple.html#aadbdb5fdb67df35a18a57c2db051b3f5">send_if_not</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Message&gt;</a> <span class="keyword">const</span>&amp; m, Predicate <span class="keyword">const</span>&amp; f)</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;{</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structripple_1_1send__if__not__pred.html">send_if_not_pred&lt;Predicate&gt;</a>(m, f);</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;}</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="structripple_1_1match__peer.html"> 115</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structripple_1_1match__peer.html">match_peer</a></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;{</div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="structripple_1_1match__peer.html#adfc805112d4b79c5178115684885a415"> 117</a></span>&#160; <a class="code" href="classripple_1_1Peer.html">Peer</a> <span class="keyword">const</span>* <a class="code" href="structripple_1_1match__peer.html#adfc805112d4b79c5178115684885a415">matchPeer</a>;</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="structripple_1_1match__peer.html#a9f09c931e4623d9c7d09f7c0fbeb199b"> 119</a></span>&#160; <a class="code" href="structripple_1_1match__peer.html#a9f09c931e4623d9c7d09f7c0fbeb199b">match_peer</a>(<a class="code" href="classripple_1_1Peer.html">Peer</a> <span class="keyword">const</span>* match = <span class="keyword">nullptr</span>) : <a class="code" href="structripple_1_1match__peer.html#adfc805112d4b79c5178115684885a415">matchPeer</a>(match)</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; {</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; }</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="structripple_1_1match__peer.html#a58f4acb04331a4021b167c43704f14fb"> 124</a></span>&#160; <a class="code" href="structripple_1_1match__peer.html#a58f4acb04331a4021b167c43704f14fb">operator()</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Peer&gt;</a> <span class="keyword">const</span>&amp; peer)<span class="keyword"> const</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="structripple_1_1match__peer.html#adfc805112d4b79c5178115684885a415">matchPeer</a> &amp;&amp; (peer.<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr/get.html">get</a>() == <a class="code" href="structripple_1_1match__peer.html#adfc805112d4b79c5178115684885a415">matchPeer</a>))</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; }</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;};</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__cluster.html"> 136</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structripple_1_1peer__in__cluster.html">peer_in_cluster</a></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;{</div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__cluster.html#a2ac211db12a1a580890c71d7c6f4d36e"> 138</a></span>&#160; <a class="code" href="structripple_1_1match__peer.html">match_peer</a> <a class="code" href="structripple_1_1peer__in__cluster.html#a2ac211db12a1a580890c71d7c6f4d36e">skipPeer</a>;</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__cluster.html#a8bfb53aecc6cb8f084bfbf6cf5275665"> 140</a></span>&#160; <a class="code" href="structripple_1_1peer__in__cluster.html#a8bfb53aecc6cb8f084bfbf6cf5275665">peer_in_cluster</a>(<a class="code" href="classripple_1_1Peer.html">Peer</a> <span class="keyword">const</span>* skip = <span class="keyword">nullptr</span>) : <a class="code" href="structripple_1_1peer__in__cluster.html#a2ac211db12a1a580890c71d7c6f4d36e">skipPeer</a>(skip)</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; {</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; }</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; </div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__cluster.html#a7f044e2cbfaf9cdf94f17d1f7aef24ed"> 145</a></span>&#160; <a class="code" href="structripple_1_1peer__in__cluster.html#a7f044e2cbfaf9cdf94f17d1f7aef24ed">operator()</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Peer&gt;</a> <span class="keyword">const</span>&amp; peer)<span class="keyword"> const</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="structripple_1_1peer__in__cluster.html#a2ac211db12a1a580890c71d7c6f4d36e">skipPeer</a>(peer))</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="keywordflow">if</span> (!peer-&gt;cluster())</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; </div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; }</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;};</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; </div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; </div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__set.html"> 160</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structripple_1_1peer__in__set.html">peer_in_set</a></div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;{</div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__set.html#a5b2468fdfdd8207850839f76686ba840"> 162</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;Peer::id_t&gt;</a> <span class="keyword">const</span>&amp; <a class="code" href="structripple_1_1peer__in__set.html#a5b2468fdfdd8207850839f76686ba840">peerSet</a>;</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; </div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__set.html#a005c932eb6b8ac90a50b923c4fd3f915"> 164</a></span>&#160; <a class="code" href="structripple_1_1peer__in__set.html#a005c932eb6b8ac90a50b923c4fd3f915">peer_in_set</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set&lt;Peer::id_t&gt;</a> <span class="keyword">const</span>&amp; peers) : <a class="code" href="structripple_1_1peer__in__set.html#a5b2468fdfdd8207850839f76686ba840">peerSet</a>(peers)</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; {</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; }</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="structripple_1_1peer__in__set.html#ac882566095bf84112f03916ce721e49d"> 169</a></span>&#160; <a class="code" href="structripple_1_1peer__in__set.html#ac882566095bf84112f03916ce721e49d">operator()</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Peer&gt;</a> <span class="keyword">const</span>&amp; peer)<span class="keyword"> const</span></div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="structripple_1_1peer__in__set.html#a5b2468fdfdd8207850839f76686ba840">peerSet</a>.count(peer-&gt;id()) == 0)</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; }</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;};</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; </div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; </div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<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_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_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&lt; Peer &gt; const &amp;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_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&lt; Message &gt; const &amp;m, Predicate const &amp;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__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 &amp; 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="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt; Message &gt;</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&lt; Peer::id_t &gt; const &amp; 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_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 &amp; 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_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&lt; Peer &gt; const &amp;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__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&lt; Peer &gt; const &amp;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_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_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:52</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:84</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="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:115</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&lt; Message &gt; const &amp; 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_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:160</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&lt; Peer &gt; const &amp;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__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:31</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_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&lt; Message &gt; const &amp;m, Predicate const &amp;p)</div><div class="ttdef"><b>Definition:</b> <a href="predicates_8h_source.html#l00059">predicates.h:59</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:136</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_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&lt; Message &gt; const &amp;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__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&lt; Message &gt; const &amp; 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__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&lt; Peer &gt; const &amp;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="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="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="anamespaceripple_html_aadbdb5fdb67df35a18a57c2db051b3f5"><div class="ttname"><a href="namespaceripple.html#aadbdb5fdb67df35a18a57c2db051b3f5">ripple::send_if_not</a></div><div class="ttdeci">send_if_not_pred&lt; Predicate &gt; send_if_not(std::shared_ptr&lt; Message &gt; const &amp;m, Predicate const &amp;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="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&lt; Peer::id_t &gt; const &amp;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_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="anamespaceripple_html_a9ff56485de595425af402b90b41399df"><div class="ttname"><a href="namespaceripple.html#a9ff56485de595425af402b90b41399df">ripple::send_if</a></div><div class="ttdeci">send_if_pred&lt; Predicate &gt; send_if(std::shared_ptr&lt; Message &gt; const &amp;m, Predicate const &amp;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="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&lt; Peer &gt; const &amp;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="aset_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/set.html">set</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&lt; Message &gt; const &amp; 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="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="ripple_2overlay_2Peer_8h_source.html#l00045">ripple/overlay/Peer.h:45</a></div></div>
<!-- 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>