mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 15:35:50 +00:00
deploy: eac3abdca9
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<!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">
|
||||
<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=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.17"/>
|
||||
<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: BookListeners.h Source File</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -19,8 +19,8 @@
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">rippled
|
||||
</div>
|
||||
</td>
|
||||
@@ -29,21 +29,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.17 -->
|
||||
<!-- Generated by Doxygen 1.9.5 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
/* @license 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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @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>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
@@ -54,100 +55,104 @@ $(function() {
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
<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_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_9f69212e4c6e2ca9ec5ab59cd7b6275c.html">app</a></li><li class="navelem"><a class="el" href="dir_796f40347441ba166e244d2eadcd4ae1.html">ledger</a></li> </ul>
|
||||
<li class="navelem"><a class="el" href="dir_a62226f9e3a6c7c5a3be455e2f87ae01.html">xrpld</a></li><li class="navelem"><a class="el" href="dir_c69db3203fa08a9ff994909ba6ee9783.html">app</a></li><li class="navelem"><a class="el" href="dir_7899ad0c658a3b97a951171682eee0fc.html">ledger</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">BookListeners.h</div> </div>
|
||||
<div class="headertitle"><div class="title">BookListeners.h</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/*</span></div>
|
||||
<div class="line"><a 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 name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a 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 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 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 name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a 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 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 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 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 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 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 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 name="l00017"></a><span class="lineno"> 17</span> <span class="comment">*/</span></div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">//==============================================================================</span></div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#ifndef RIPPLE_APP_LEDGER_BOOKLISTENERS_H_INCLUDED</span></div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#define RIPPLE_APP_LEDGER_BOOKLISTENERS_H_INCLUDED</span></div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <ripple/json/MultivarJson.h></span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <ripple/net/InfoSub.h></span></div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/memory.html">memory</a>></span></div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>></span></div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classripple_1_1BookListeners.html"> 32</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1BookListeners.html">BookListeners</a></div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classripple_1_1BookListeners.html#aa461e7d0d1dddc38cc59e1ded621638d"> 35</a></span>  <span class="keyword">using</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">pointer</a> = <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<BookListeners></a>;</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  </div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classripple_1_1BookListeners.html#abef13456e6335190b5d1e814b6838bd4"> 37</a></span>  <a class="code" href="classripple_1_1BookListeners.html#abef13456e6335190b5d1e814b6838bd4">BookListeners</a>()</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  {</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  }</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="classripple_1_1BookListeners.html#a5d7f4c227a690e895b952472a4202ca1">addSubscriber</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">InfoSub::ref</a> sub);</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  </div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="classripple_1_1BookListeners.html#a53dad68c41be892909cfa1d182b54c39">removeSubscriber</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a> sub);</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  </div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="classripple_1_1BookListeners.html#ace01ee147e463d71092ec8fc84d07eb8">publish</a>(<a class="code" href="structripple_1_1MultivarJson.html">MultiApiJson</a> <span class="keyword">const</span>& jvObj, <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">hash_set<std::uint64_t></a>& havePublished);</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classripple_1_1BookListeners.html#a18dd8b67ac39506dcf7a980a4b0e250e"> 66</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/recursive_mutex.html">std::recursive_mutex</a> <a class="code" href="classripple_1_1BookListeners.html#a18dd8b67ac39506dcf7a980a4b0e250e">mLock</a>;</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classripple_1_1BookListeners.html#a27f5d2654d8ab4b0ed518c81809b6ebc"> 68</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_map.html">hash_map<std::uint64_t, InfoSub::wptr></a> <a class="code" href="classripple_1_1BookListeners.html#a27f5d2654d8ab4b0ed518c81809b6ebc">mListeners</a>;</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> };</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> } <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="preprocessor">#endif</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<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 class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="aunordered_set_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_set.html">std::unordered_set</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="arecursive_mutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/recursive_mutex.html">std::recursive_mutex</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<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_APP_LEDGER_BOOKLISTENERS_H_INCLUDED</span></div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#define RIPPLE_APP_LEDGER_BOOKLISTENERS_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/net/InfoSub.h></span></div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include <xrpl/protocol/MultiApiJson.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/memory.html">memory</a>></span></div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>></span></div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="classripple_1_1BookListeners.html"> 32</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1BookListeners.html">BookListeners</a></div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span>{</div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="classripple_1_1BookListeners.html#aa461e7d0d1dddc38cc59e1ded621638d"> 35</a></span> <span class="keyword">using </span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">pointer</a> = <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<BookListeners></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="classripple_1_1BookListeners.html#abef13456e6335190b5d1e814b6838bd4"> 37</a></span> <a class="code hl_function" href="classripple_1_1BookListeners.html#abef13456e6335190b5d1e814b6838bd4">BookListeners</a>()</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="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <a class="code hl_function" href="classripple_1_1BookListeners.html#a5d7f4c227a690e895b952472a4202ca1">addSubscriber</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">InfoSub::ref</a> sub);</div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <a class="code hl_function" href="classripple_1_1BookListeners.html#a53dad68c41be892909cfa1d182b54c39">removeSubscriber</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a> sub);</div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <a class="code hl_function" href="classripple_1_1BookListeners.html#ace01ee147e463d71092ec8fc84d07eb8">publish</a>(<a class="code hl_struct" href="structripple_1_1detail_1_1MultiApiJson.html">MultiApiJson</a> <span class="keyword">const</span>& jvObj, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/unordered_set.html">hash_set<std::uint64_t></a>& havePublished);</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span><span class="keyword">private</span>:</div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="classripple_1_1BookListeners.html#a18dd8b67ac39506dcf7a980a4b0e250e"> 66</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/recursive_mutex.html">std::recursive_mutex</a> <a class="code hl_variable" href="classripple_1_1BookListeners.html#a18dd8b67ac39506dcf7a980a4b0e250e">mLock</a>;</div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="classripple_1_1BookListeners.html#a27f5d2654d8ab4b0ed518c81809b6ebc"> 68</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/unordered_map.html">hash_map<std::uint64_t, InfoSub::wptr></a> <a class="code hl_variable" href="classripple_1_1BookListeners.html#a27f5d2654d8ab4b0ed518c81809b6ebc">mListeners</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>} <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span><span class="preprocessor">#endif</span></div>
|
||||
<div class="ttc" id="aclassripple_1_1BookListeners_html"><div class="ttname"><a href="classripple_1_1BookListeners.html">ripple::BookListeners</a></div><div class="ttdoc">Listen to public/subscribe messages from a book.</div><div class="ttdef"><b>Definition:</b> <a href="BookListeners_8h_source.html#l00032">BookListeners.h:33</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1BookListeners_html_a18dd8b67ac39506dcf7a980a4b0e250e"><div class="ttname"><a href="classripple_1_1BookListeners.html#a18dd8b67ac39506dcf7a980a4b0e250e">ripple::BookListeners::mLock</a></div><div class="ttdeci">std::recursive_mutex mLock</div><div class="ttdef"><b>Definition:</b> <a href="BookListeners_8h_source.html#l00066">BookListeners.h:66</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1BookListeners_html"><div class="ttname"><a href="classripple_1_1BookListeners.html">ripple::BookListeners</a></div><div class="ttdoc">Listen to public/subscribe messages from a book.</div><div class="ttdef"><b>Definition:</b> <a href="BookListeners_8h_source.html#l00032">BookListeners.h:32</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1BookListeners_html_a27f5d2654d8ab4b0ed518c81809b6ebc"><div class="ttname"><a href="classripple_1_1BookListeners.html#a27f5d2654d8ab4b0ed518c81809b6ebc">ripple::BookListeners::mListeners</a></div><div class="ttdeci">hash_map< std::uint64_t, InfoSub::wptr > mListeners</div><div class="ttdef"><b>Definition:</b> <a href="BookListeners_8h_source.html#l00068">BookListeners.h:68</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1BookListeners_html_a53dad68c41be892909cfa1d182b54c39"><div class="ttname"><a href="classripple_1_1BookListeners.html#a53dad68c41be892909cfa1d182b54c39">ripple::BookListeners::removeSubscriber</a></div><div class="ttdeci">void removeSubscriber(std::uint64_t sub)</div><div class="ttdoc">Stop publishing to a subscriber.</div><div class="ttdef"><b>Definition:</b> <a href="BookListeners_8cpp_source.html#l00034">BookListeners.cpp:34</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1BookListeners_html_a5d7f4c227a690e895b952472a4202ca1"><div class="ttname"><a href="classripple_1_1BookListeners.html#a5d7f4c227a690e895b952472a4202ca1">ripple::BookListeners::addSubscriber</a></div><div class="ttdeci">void addSubscriber(InfoSub::ref sub)</div><div class="ttdoc">Add a new subscription for this book.</div><div class="ttdef"><b>Definition:</b> <a href="BookListeners_8cpp_source.html#l00027">BookListeners.cpp:27</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1BookListeners_html_abef13456e6335190b5d1e814b6838bd4"><div class="ttname"><a href="classripple_1_1BookListeners.html#abef13456e6335190b5d1e814b6838bd4">ripple::BookListeners::BookListeners</a></div><div class="ttdeci">BookListeners()</div><div class="ttdef"><b>Definition:</b> <a href="BookListeners_8h_source.html#l00037">BookListeners.h:37</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1BookListeners_html_ace01ee147e463d71092ec8fc84d07eb8"><div class="ttname"><a href="classripple_1_1BookListeners.html#ace01ee147e463d71092ec8fc84d07eb8">ripple::BookListeners::publish</a></div><div class="ttdeci">void publish(MultiApiJson const &jvObj, hash_set< std::uint64_t > &havePublished)</div><div class="ttdoc">Publish a transaction to subscribers.</div><div class="ttdef"><b>Definition:</b> <a href="BookListeners_8cpp_source.html#l00041">BookListeners.cpp:41</a></div></div>
|
||||
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a></div></div>
|
||||
<div class="ttc" id="amemory_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/memory.html">memory</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1BookListeners_html_ace01ee147e463d71092ec8fc84d07eb8"><div class="ttname"><a href="classripple_1_1BookListeners.html#ace01ee147e463d71092ec8fc84d07eb8">ripple::BookListeners::publish</a></div><div class="ttdeci">void publish(MultiApiJson const &jvObj, hash_set< std::uint64_t > &havePublished)</div><div class="ttdoc">Publish a transaction to subscribers.</div><div class="ttdef"><b>Definition:</b> <a href="BookListeners_8cpp_source.html#l00041">BookListeners.cpp:41</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1BookListeners_html_abef13456e6335190b5d1e814b6838bd4"><div class="ttname"><a href="classripple_1_1BookListeners.html#abef13456e6335190b5d1e814b6838bd4">ripple::BookListeners::BookListeners</a></div><div class="ttdeci">BookListeners()</div><div class="ttdef"><b>Definition:</b> <a href="BookListeners_8h_source.html#l00037">BookListeners.h:37</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="amutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1MultivarJson_html"><div class="ttname"><a href="structripple_1_1MultivarJson.html">ripple::MultivarJson</a></div><div class="ttdef"><b>Definition:</b> <a href="MultivarJson_8h_source.html#l00034">MultivarJson.h:34</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1BookListeners_html_a5d7f4c227a690e895b952472a4202ca1"><div class="ttname"><a href="classripple_1_1BookListeners.html#a5d7f4c227a690e895b952472a4202ca1">ripple::BookListeners::addSubscriber</a></div><div class="ttdeci">void addSubscriber(InfoSub::ref sub)</div><div class="ttdoc">Add a new subscription for this book.</div><div class="ttdef"><b>Definition:</b> <a href="BookListeners_8cpp_source.html#l00027">BookListeners.cpp:27</a></div></div>
|
||||
<div class="ttc" id="aunordered_map_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_map.html">std::unordered_map</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1BookListeners_html_a27f5d2654d8ab4b0ed518c81809b6ebc"><div class="ttname"><a href="classripple_1_1BookListeners.html#a27f5d2654d8ab4b0ed518c81809b6ebc">ripple::BookListeners::mListeners</a></div><div class="ttdeci">hash_map< std::uint64_t, InfoSub::wptr > mListeners</div><div class="ttdef"><b>Definition:</b> <a href="BookListeners_8h_source.html#l00068">BookListeners.h:68</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="algorithm_8h_source.html#l00026">algorithm.h:26</a></div></div>
|
||||
<div class="ttc" id="arecursive_mutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/recursive_mutex.html">std::recursive_mutex</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_1detail_1_1MultiApiJson_html"><div class="ttname"><a href="structripple_1_1detail_1_1MultiApiJson.html">ripple::detail::MultiApiJson</a></div><div class="ttdef"><b>Definition:</b> <a href="MultiApiJson_8h_source.html#l00055">MultiApiJson.h:56</a></div></div>
|
||||
<div class="ttc" id="aunordered_map_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_map.html">std::unordered_map</a></div></div>
|
||||
<div class="ttc" id="aunordered_set_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_set.html">std::unordered_set</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.17
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user