Files
rippled/classripple_1_1NodeStore_1_1NullFactory.html
2025-08-19 09:49:50 -07:00

355 lines
19 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.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: ripple::NodeStore::NullFactory Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;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&amp;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="namespaceripple.html">ripple</a></li><li class="navelem"><a class="el" href="namespaceripple_1_1NodeStore.html">NodeStore</a></li><li class="navelem"><a class="el" href="classripple_1_1NodeStore_1_1NullFactory.html">NullFactory</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classripple_1_1NodeStore_1_1NullFactory-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">ripple::NodeStore::NullFactory Class Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for ripple::NodeStore::NullFactory:</div>
<div class="dyncontent">
<div class="center"><img src="classripple_1_1NodeStore_1_1NullFactory__inherit__graph.png" border="0" usemap="#aripple_1_1NodeStore_1_1NullFactory_inherit__map" alt="Inheritance graph"/></div>
<map name="aripple_1_1NodeStore_1_1NullFactory_inherit__map" id="aripple_1_1NodeStore_1_1NullFactory_inherit__map">
<area shape="rect" title=" " alt="" coords="5,93,148,133"/>
<area shape="rect" href="classripple_1_1NodeStore_1_1Factory.html" title="Base class for backend factories." alt="" coords="5,5,148,45"/>
<area shape="poly" title=" " alt="" coords="79,59,79,93,74,93,74,59"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for ripple::NodeStore::NullFactory:</div>
<div class="dyncontent">
<div class="center"><img src="classripple_1_1NodeStore_1_1NullFactory__coll__graph.png" border="0" usemap="#aripple_1_1NodeStore_1_1NullFactory_coll__map" alt="Collaboration graph"/></div>
<map name="aripple_1_1NodeStore_1_1NullFactory_coll__map" id="aripple_1_1NodeStore_1_1NullFactory_coll__map">
<area shape="rect" title=" " alt="" coords="5,93,148,133"/>
<area shape="rect" href="classripple_1_1NodeStore_1_1Factory.html" title="Base class for backend factories." alt="" coords="5,5,148,45"/>
<area shape="poly" title=" " alt="" coords="79,59,79,93,74,93,74,59"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa507b3a12408fe4dfe65793df3bad30e" id="r_aa507b3a12408fe4dfe65793df3bad30e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1NodeStore_1_1NullFactory.html#aa507b3a12408fe4dfe65793df3bad30e">NullFactory</a> ()</td></tr>
<tr class="separator:aa507b3a12408fe4dfe65793df3bad30e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e9a88cd1b7848ab24b229be313e8609" id="r_a4e9a88cd1b7848ab24b229be313e8609"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1NodeStore_1_1NullFactory.html#a4e9a88cd1b7848ab24b229be313e8609">~NullFactory</a> () override</td></tr>
<tr class="separator:a4e9a88cd1b7848ab24b229be313e8609"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a887cfa6f76d807f235d17fde36b4f46d" id="r_a887cfa6f76d807f235d17fde36b4f46d"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1NodeStore_1_1NullFactory.html#a887cfa6f76d807f235d17fde36b4f46d">getName</a> () const override</td></tr>
<tr class="memdesc:a887cfa6f76d807f235d17fde36b4f46d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the name of this factory. <br /></td></tr>
<tr class="separator:a887cfa6f76d807f235d17fde36b4f46d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab96114970f9a6af7090f0fcca6c83ec9" id="r_ab96114970f9a6af7090f0fcca6c83ec9"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a>&lt; <a class="el" href="classripple_1_1NodeStore_1_1Backend.html">Backend</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1NodeStore_1_1NullFactory.html#ab96114970f9a6af7090f0fcca6c83ec9">createInstance</a> (size_t, <a class="el" href="classripple_1_1Section.html">Section</a> const &amp;, <a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>, <a class="el" href="classripple_1_1NodeStore_1_1Scheduler.html">Scheduler</a> &amp;, <a class="el" href="classbeast_1_1Journal.html">beast::Journal</a>) override</td></tr>
<tr class="memdesc:ab96114970f9a6af7090f0fcca6c83ec9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an instance of this factory's backend. <br /></td></tr>
<tr class="separator:ab96114970f9a6af7090f0fcca6c83ec9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a881d753bb4f6017085271c3e16db2714" id="r_a881d753bb4f6017085271c3e16db2714"><td class="memItemLeft" align="right" valign="top">virtual <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a>&lt; <a class="el" href="classripple_1_1NodeStore_1_1Backend.html">Backend</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1NodeStore_1_1Factory.html#a881d753bb4f6017085271c3e16db2714">createInstance</a> (size_t keyBytes, <a class="el" href="classripple_1_1Section.html">Section</a> const &amp;parameters, <a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="el" href="namespaceripple.html#a1b38e742ac7fe4c3a80a397e06b83dcbaa62741f39e8a8d667ccccd0642c08746">burstSize</a>, <a class="el" href="classripple_1_1NodeStore_1_1Scheduler.html">Scheduler</a> &amp;scheduler, nudb::context &amp;context, <a class="el" href="classbeast_1_1Journal.html">beast::Journal</a> journal)</td></tr>
<tr class="memdesc:a881d753bb4f6017085271c3e16db2714"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an instance of this factory's backend. <br /></td></tr>
<tr class="separator:a881d753bb4f6017085271c3e16db2714"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="NullFactory_8cpp_source.html#l00112">112</a> of file <a class="el" href="NullFactory_8cpp_source.html">NullFactory.cpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aa507b3a12408fe4dfe65793df3bad30e" name="aa507b3a12408fe4dfe65793df3bad30e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa507b3a12408fe4dfe65793df3bad30e">&#9670;&#160;</a></span>NullFactory()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ripple::NodeStore::NullFactory::NullFactory </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="NullFactory_8cpp_source.html#l00115">115</a> of file <a class="el" href="NullFactory_8cpp_source.html">NullFactory.cpp</a>.</p>
</div>
</div>
<a id="a4e9a88cd1b7848ab24b229be313e8609" name="a4e9a88cd1b7848ab24b229be313e8609"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e9a88cd1b7848ab24b229be313e8609">&#9670;&#160;</a></span>~NullFactory()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">ripple::NodeStore::NullFactory::~NullFactory </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="NullFactory_8cpp_source.html#l00120">120</a> of file <a class="el" href="NullFactory_8cpp_source.html">NullFactory.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a887cfa6f76d807f235d17fde36b4f46d" name="a887cfa6f76d807f235d17fde36b4f46d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a887cfa6f76d807f235d17fde36b4f46d">&#9670;&#160;</a></span>getName()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> ripple::NodeStore::NullFactory::getName </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieve the name of this factory. </p>
<p>Implements <a class="el" href="classripple_1_1NodeStore_1_1Factory.html#a31f0b64f00ea5caba4a992494382e827">ripple::NodeStore::Factory</a>.</p>
<p class="definition">Definition at line <a class="el" href="NullFactory_8cpp_source.html#l00126">126</a> of file <a class="el" href="NullFactory_8cpp_source.html">NullFactory.cpp</a>.</p>
</div>
</div>
<a id="ab96114970f9a6af7090f0fcca6c83ec9" name="ab96114970f9a6af7090f0fcca6c83ec9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab96114970f9a6af7090f0fcca6c83ec9">&#9670;&#160;</a></span>createInstance() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a>&lt; <a class="el" href="classripple_1_1NodeStore_1_1Backend.html">Backend</a> &gt; ripple::NodeStore::NullFactory::createInstance </td>
<td>(</td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>keyBytes</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classripple_1_1Section.html">Section</a> const &amp;&#160;</td>
<td class="paramname"><em>parameters</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>&#160;</td>
<td class="paramname"><em>burstSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classripple_1_1NodeStore_1_1Scheduler.html">Scheduler</a> &amp;&#160;</td>
<td class="paramname"><em>scheduler</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classbeast_1_1Journal.html">beast::Journal</a>&#160;</td>
<td class="paramname"><em>journal</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create an instance of this factory's backend. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">keyBytes</td><td>The fixed number of bytes per key. </td></tr>
<tr><td class="paramname">parameters</td><td>A set of key/value configuration pairs. </td></tr>
<tr><td class="paramname">burstSize</td><td><a class="el" href="classripple_1_1NodeStore_1_1Backend.html" title="A backend used for the NodeStore.">Backend</a> burst size in bytes. </td></tr>
<tr><td class="paramname">scheduler</td><td>The scheduler to use for running tasks. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the <a class="el" href="classripple_1_1NodeStore_1_1Backend.html" title="A backend used for the NodeStore.">Backend</a> object. </dd></dl>
<p>Implements <a class="el" href="classripple_1_1NodeStore_1_1Factory.html#ab09ead0fbc88a5b1624cfefc6c9e4f7c">ripple::NodeStore::Factory</a>.</p>
<p class="definition">Definition at line <a class="el" href="NullFactory_8cpp_source.html#l00132">132</a> of file <a class="el" href="NullFactory_8cpp_source.html">NullFactory.cpp</a>.</p>
</div>
</div>
<a id="a881d753bb4f6017085271c3e16db2714" name="a881d753bb4f6017085271c3e16db2714"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a881d753bb4f6017085271c3e16db2714">&#9670;&#160;</a></span>createInstance() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a>&lt; <a class="el" href="classripple_1_1NodeStore_1_1Backend.html">Backend</a> &gt; ripple::NodeStore::Factory::createInstance </td>
<td>(</td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>keyBytes</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classripple_1_1Section.html">Section</a> const &amp;&#160;</td>
<td class="paramname"><em>parameters</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>&#160;</td>
<td class="paramname"><em>burstSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classripple_1_1NodeStore_1_1Scheduler.html">Scheduler</a> &amp;&#160;</td>
<td class="paramname"><em>scheduler</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">nudb::context &amp;&#160;</td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classbeast_1_1Journal.html">beast::Journal</a>&#160;</td>
<td class="paramname"><em>journal</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create an instance of this factory's backend. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">keyBytes</td><td>The fixed number of bytes per key. </td></tr>
<tr><td class="paramname">parameters</td><td>A set of key/value configuration pairs. </td></tr>
<tr><td class="paramname">burstSize</td><td><a class="el" href="classripple_1_1NodeStore_1_1Backend.html" title="A backend used for the NodeStore.">Backend</a> burst size in bytes. </td></tr>
<tr><td class="paramname">scheduler</td><td>The scheduler to use for running tasks. </td></tr>
<tr><td class="paramname">context</td><td>The context used by database. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the <a class="el" href="classripple_1_1NodeStore_1_1Backend.html" title="A backend used for the NodeStore.">Backend</a> object. </dd></dl>
<p>Reimplemented in <a class="el" href="classripple_1_1NodeStore_1_1NuDBFactory.html#a0f37ad0f3ae7d6c4e857d94b812e5e95">ripple::NodeStore::NuDBFactory</a>.</p>
<p class="definition">Definition at line <a class="el" href="Factory_8h_source.html#l00071">71</a> of file <a class="el" href="Factory_8h_source.html">Factory.h</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>