GpgFrontend-Doxygen/docs/html/classGpgFrontend_1_1SingletonStorageCollection.html

208 lines
12 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>GpgFrontend Project: GpgFrontend::SingletonStorageCollection 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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.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">GpgFrontend Project
</div>
<div id="projectbrief">A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.</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>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classGpgFrontend_1_1SingletonStorageCollection.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- 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 class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classGpgFrontend_1_1SingletonStorageCollection-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">GpgFrontend::SingletonStorageCollection Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for GpgFrontend::SingletonStorageCollection:</div>
<div class="dyncontent">
<div class="center"><img src="classGpgFrontend_1_1SingletonStorageCollection__coll__graph.png" border="0" usemap="#aGpgFrontend_1_1SingletonStorageCollection_coll__map" alt="Collaboration graph"/></div>
<map name="aGpgFrontend_1_1SingletonStorageCollection_coll__map" id="aGpgFrontend_1_1SingletonStorageCollection_coll__map">
<area shape="rect" title=" " alt="" coords="41,624,265,731"/>
<area shape="rect" title=" " alt="" coords="5,469,148,547"/>
<area shape="rect" title=" " alt="" coords="173,455,370,561"/>
<area shape="rect" title=" " alt="" coords="52,300,269,392"/>
<area shape="rect" title=" " alt="" coords="70,145,227,223"/>
<area shape="rect" title=" " alt="" coords="173,5,212,83"/>
<area shape="rect" title=" " alt="" coords="267,145,401,223"/>
<area shape="rect" title=" " alt="" coords="315,5,353,83"/>
</map>
</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:a6f933390c54b7f55d5ffb4624074725f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGpgFrontend_1_1SingletonStorage.html">SingletonStorage</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1SingletonStorageCollection.html#a6f933390c54b7f55d5ffb4624074725f">GetSingletonStorage</a> (const std::type_info &amp;)</td></tr>
<tr class="memdesc:a6f933390c54b7f55d5ffb4624074725f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the Singleton Storage object. <a href="classGpgFrontend_1_1SingletonStorageCollection.html#a6f933390c54b7f55d5ffb4624074725f">More...</a><br /></td></tr>
<tr class="separator:a6f933390c54b7f55d5ffb4624074725f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ac56d19e0d4b99e7b8a86a017721f3db1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGpgFrontend_1_1SingletonStorageCollection.html">SingletonStorageCollection</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1SingletonStorageCollection.html#ac56d19e0d4b99e7b8a86a017721f3db1">GetInstance</a> (bool force_refresh)</td></tr>
<tr class="memdesc:ac56d19e0d4b99e7b8a86a017721f3db1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the Instance object. <a href="classGpgFrontend_1_1SingletonStorageCollection.html#ac56d19e0d4b99e7b8a86a017721f3db1">More...</a><br /></td></tr>
<tr class="separator:ac56d19e0d4b99e7b8a86a017721f3db1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:ab648cb257beb2475eb5fca6453c331f9"><td class="memItemLeft" align="right" valign="top"><a id="ab648cb257beb2475eb5fca6453c331f9"></a>
std::shared_mutex&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1SingletonStorageCollection.html#ab648cb257beb2475eb5fca6453c331f9">storages_mutex_</a></td></tr>
<tr class="memdesc:ab648cb257beb2475eb5fca6453c331f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">mutex for storages_map_ <br /></td></tr>
<tr class="separator:ab648cb257beb2475eb5fca6453c331f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae28930630a2dce804cff5589155aadfc"><td class="memItemLeft" align="right" valign="top"><a id="ae28930630a2dce804cff5589155aadfc"></a>
std::map&lt; size_t, std::unique_ptr&lt; <a class="el" href="classGpgFrontend_1_1SingletonStorage.html">SingletonStorage</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>storages_map_</b></td></tr>
<tr class="separator:ae28930630a2dce804cff5589155aadfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ac56d19e0d4b99e7b8a86a017721f3db1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac56d19e0d4b99e7b8a86a017721f3db1">&#9670;&nbsp;</a></span>GetInstance()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGpgFrontend_1_1SingletonStorageCollection.html">GpgFrontend::SingletonStorageCollection</a> * GpgFrontend::SingletonStorageCollection::GetInstance </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>force_refresh</em> = <code>false</code></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the Instance object. </p>
<dl class="section return"><dt>Returns</dt><dd>SingletonStorageCollection* </dd></dl>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1SingletonFunctionObject.html#a083807ff8cec58dc0aa732844edaf518">GpgFrontend::SingletonFunctionObject&lt; T &gt;::CreateInstance()</a>, <a class="el" href="classGpgFrontend_1_1SingletonFunctionObject.html#a5f2f0474871971f86ff91fb6a2408621">GpgFrontend::SingletonFunctionObject&lt; T &gt;::GetAllChannelId()</a>, <a class="el" href="classGpgFrontend_1_1SingletonFunctionObject.html#a70484d7cfe9f9dcbcd5f8bb749250f36">GpgFrontend::SingletonFunctionObject&lt; T &gt;::GetInstance()</a>, and <a class="el" href="classGpgFrontend_1_1SingletonFunctionObject.html#ab49b1d50252e1934691a9483a6df2106">GpgFrontend::SingletonFunctionObject&lt; T &gt;::ReleaseChannel()</a>.</p>
</div>
</div>
<a id="a6f933390c54b7f55d5ffb4624074725f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f933390c54b7f55d5ffb4624074725f">&#9670;&nbsp;</a></span>GetSingletonStorage()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGpgFrontend_1_1SingletonStorage.html">GpgFrontend::SingletonStorage</a> * GpgFrontend::SingletonStorageCollection::GetSingletonStorage </td>
<td>(</td>
<td class="paramtype">const std::type_info &amp;&#160;</td>
<td class="paramname"><em>type_id</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the Singleton Storage object. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">singleton_function_object</td><td></td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>SingletonStorage* </dd></dl>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1SingletonFunctionObject.html#a083807ff8cec58dc0aa732844edaf518">GpgFrontend::SingletonFunctionObject&lt; T &gt;::CreateInstance()</a>, <a class="el" href="classGpgFrontend_1_1SingletonFunctionObject.html#a5f2f0474871971f86ff91fb6a2408621">GpgFrontend::SingletonFunctionObject&lt; T &gt;::GetAllChannelId()</a>, <a class="el" href="classGpgFrontend_1_1SingletonFunctionObject.html#a70484d7cfe9f9dcbcd5f8bb749250f36">GpgFrontend::SingletonFunctionObject&lt; T &gt;::GetInstance()</a>, and <a class="el" href="classGpgFrontend_1_1SingletonFunctionObject.html#ab49b1d50252e1934691a9483a6df2106">GpgFrontend::SingletonFunctionObject&lt; T &gt;::ReleaseChannel()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/core/<a class="el" href="GpgFunctionObject_8h_source.html">GpgFunctionObject.h</a></li>
<li>src/core/GpgFunctionObject.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespaceGpgFrontend.html">GpgFrontend</a></li><li class="navelem"><a class="el" href="classGpgFrontend_1_1SingletonStorageCollection.html">SingletonStorageCollection</a></li>
<li class="footer">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.1 </li>
</ul>
</div>
</body>
</html>