oc-mint/classDefaultModel.html

190 lines
13 KiB
HTML
Raw Normal View History

<!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.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>oc-issuer: DefaultModel 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 style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">oc-issuer
&#160;<span id="projectnumber">0.0.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<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','.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&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><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classDefaultModel-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">DefaultModel Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for DefaultModel:</div>
<div class="dyncontent">
<div class="center"><img src="classDefaultModel__inherit__graph.png" border="0" usemap="#aDefaultModel_inherit__map" alt="Inheritance graph"/></div>
<map name="aDefaultModel_inherit__map" id="aDefaultModel_inherit__map">
<area shape="rect" title=" " alt="" coords="5,80,116,107"/>
<area shape="rect" href="classModel.html" title=" " alt="" coords="29,5,92,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for DefaultModel:</div>
<div class="dyncontent">
<div class="center"><img src="classDefaultModel__coll__graph.png" border="0" usemap="#aDefaultModel_coll__map" alt="Collaboration graph"/></div>
<map name="aDefaultModel_coll__map" id="aDefaultModel_coll__map">
<area shape="rect" title=" " alt="" coords="5,80,116,107"/>
<area shape="rect" href="classModel.html" title=" " alt="" coords="29,5,92,32"/>
</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 name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5d57be9ead842ec3385144f7caa9524e"><td class="memItemLeft" align="right" valign="top">tl::expected&lt; <a class="el" href="structCDDC.html">CDDC</a> *, bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDefaultModel.html#a5d57be9ead842ec3385144f7caa9524e">get_cddc</a> (unsigned int cdd_serial) override</td></tr>
<tr class="separator:a5d57be9ead842ec3385144f7caa9524e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24f870ad579abc50dc3140dc68fa89fa"><td class="memItemLeft" align="right" valign="top">tl::expected&lt; <a class="el" href="structCDDC.html">CDDC</a> *, bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDefaultModel.html#a24f870ad579abc50dc3140dc68fa89fa">get_current_cddc</a> () override</td></tr>
<tr class="separator:a24f870ad579abc50dc3140dc68fa89fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49b3cebc92f956b919478927dda01dd2"><td class="memItemLeft" align="right" valign="top"><a id="a49b3cebc92f956b919478927dda01dd2"></a>
std::vector&lt; <a class="el" href="structBlindSignature.html">BlindSignature</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mint</b> (const std::string &amp;UNUSED(transaction_reference), const std::vector&lt; <a class="el" href="structBlind.html">Blind</a> &gt; &amp;UNUSED(blinds)) override</td></tr>
<tr class="separator:a49b3cebc92f956b919478927dda01dd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bd7febf573385d72f89af6da3fccf68"><td class="memItemLeft" align="right" valign="top"><a id="a0bd7febf573385d72f89af6da3fccf68"></a>
std::vector&lt; <a class="el" href="structMintKeyCert.html">MintKeyCert</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>getMKCs</b> (const std::vector&lt; unsigned int &gt; &amp;UNUSED(denominations), const std::vector&lt; <a class="el" href="structBigInt.html">BigInt</a> &gt; &amp;UNUSED(mint_key_ids)) override</td></tr>
<tr class="separator:a0bd7febf573385d72f89af6da3fccf68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12f3231d6aa8a3234455076358f91df2"><td class="memItemLeft" align="right" valign="top"><a id="a12f3231d6aa8a3234455076358f91df2"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>redeem</b> (const std::vector&lt; <a class="el" href="structCoin.html">Coin</a> &gt; &amp;UNUSED(coins)) override</td></tr>
<tr class="separator:a12f3231d6aa8a3234455076358f91df2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classModel"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classModel')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classModel.html">Model</a></td></tr>
<tr class="memitem:a022e8d797bf57d111a1ce5bd229f41ea inherit pub_methods_classModel"><td class="memItemLeft" align="right" valign="top">virtual std::vector&lt; <a class="el" href="structMintKeyCert.html">MintKeyCert</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classModel.html#a022e8d797bf57d111a1ce5bd229f41ea">getMKCs</a> (const std::vector&lt; unsigned int &gt; &amp;denominations, const std::vector&lt; <a class="el" href="structBigInt.html">BigInt</a> &gt; &amp;mint_key_ids)=0</td></tr>
<tr class="separator:a022e8d797bf57d111a1ce5bd229f41ea inherit pub_methods_classModel"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ece13ffd6258825feaaa884247ca6e2 inherit pub_methods_classModel"><td class="memItemLeft" align="right" valign="top">virtual std::vector&lt; <a class="el" href="structBlindSignature.html">BlindSignature</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classModel.html#a0ece13ffd6258825feaaa884247ca6e2">mint</a> (std::string const &amp;transaction_reference, const std::vector&lt; <a class="el" href="structBlind.html">Blind</a> &gt; &amp;blinds)=0</td></tr>
<tr class="separator:a0ece13ffd6258825feaaa884247ca6e2 inherit pub_methods_classModel"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14ae6086fd6ccc2dc34714c2f976258a inherit pub_methods_classModel"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classModel.html#a14ae6086fd6ccc2dc34714c2f976258a">redeem</a> (const std::vector&lt; <a class="el" href="structCoin.html">Coin</a> &gt; &amp;coins)=0</td></tr>
<tr class="separator:a14ae6086fd6ccc2dc34714c2f976258a inherit pub_methods_classModel"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_classModel"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classModel')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="classModel.html">Model</a></td></tr>
<tr class="memitem:a0f33afb8d901d61f93ed7d6f7560403a inherit pub_static_methods_classModel"><td class="memItemLeft" align="right" valign="top">static std::unique_ptr&lt; <a class="el" href="classModel.html">Model</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classModel.html#a0f33afb8d901d61f93ed7d6f7560403a">get_model</a> (const std::string &amp;backend_name)</td></tr>
<tr class="separator:a0f33afb8d901d61f93ed7d6f7560403a inherit pub_static_methods_classModel"><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>this is for now our sample model </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a5d57be9ead842ec3385144f7caa9524e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d57be9ead842ec3385144f7caa9524e">&#9670;&nbsp;</a></span>get_cddc()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">tl::expected&lt;<a class="el" href="structCDDC.html">CDDC</a> *, bool&gt; DefaultModel::get_cddc </td>
<td>(</td>
<td class="paramtype">unsigned int&#160;</td>
<td class="paramname"><em>cdd_serial</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>return the CurrencyDocumentDescription certifikate for a specific serial version number of it. <a href="https://opencoin.org/0.4/schemata.html#cddc">see spec</a> </p><dl class="section return"><dt>Returns</dt><dd>returns a pointer to the <a class="el" href="structCDDC.html">CDDC</a> if successful, false otherwise </dd></dl>
<p>Implements <a class="el" href="classModel.html#af4e5cca587cec5d56c955a797cc4295f">Model</a>.</p>
</div>
</div>
<a id="a24f870ad579abc50dc3140dc68fa89fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24f870ad579abc50dc3140dc68fa89fa">&#9670;&nbsp;</a></span>get_current_cddc()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">tl::expected&lt;<a class="el" href="structCDDC.html">CDDC</a> *, bool&gt; DefaultModel::get_current_cddc </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>return the CurrencyDocumentDescription certifikate <a href="https://opencoin.org/0.4/schemata.html#cddc">see spec</a> </p><dl class="section return"><dt>Returns</dt><dd>returns a pointer to the <a class="el" href="structCDDC.html">CDDC</a> if successful, false otherwise </dd></dl>
<p>Implements <a class="el" href="classModel.html#a50d7fc134c43bc28045a7993ff2f2ca5">Model</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/model.cpp</li>
</ul>
</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.1
</small></address>
</body>
</html>