GpgFrontend-Doxygen/docs/html/classGpgFrontend_1_1ThreadSafeMap.html

226 lines
13 KiB
HTML
Raw Permalink 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::ThreadSafeMap&lt; Key, Value &gt; Class Template 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_1ThreadSafeMap.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-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classGpgFrontend_1_1ThreadSafeMap-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">GpgFrontend::ThreadSafeMap&lt; Key, Value &gt; Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for GpgFrontend::ThreadSafeMap&lt; Key, Value &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="classGpgFrontend_1_1ThreadSafeMap__inherit__graph.png" border="0" usemap="#aGpgFrontend_1_1ThreadSafeMap_3_01Key_00_01Value_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="aGpgFrontend_1_1ThreadSafeMap_3_01Key_00_01Value_01_4_inherit__map" id="aGpgFrontend_1_1ThreadSafeMap_3_01Key_00_01Value_01_4_inherit__map">
<area shape="rect" title=" " alt="" coords="5,5,220,215"/>
<area shape="rect" href="classGpgFrontend_1_1ThreadSafeMap.html" title=" " alt="" coords="5,277,220,487"/>
</map>
</div>
<div class="dynheader">
Collaboration diagram for GpgFrontend::ThreadSafeMap&lt; Key, Value &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="classGpgFrontend_1_1ThreadSafeMap__coll__graph.png" border="0" usemap="#aGpgFrontend_1_1ThreadSafeMap_3_01Key_00_01Value_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="aGpgFrontend_1_1ThreadSafeMap_3_01Key_00_01Value_01_4_coll__map" id="aGpgFrontend_1_1ThreadSafeMap_3_01Key_00_01Value_01_4_coll__map">
<area shape="rect" title=" " alt="" coords="13,499,228,679"/>
<area shape="rect" title=" " alt="" coords="5,329,148,407"/>
<area shape="rect" title=" " alt="" coords="173,315,423,421"/>
<area shape="rect" title=" " alt="" coords="219,145,377,223"/>
<area shape="rect" title=" " alt="" coords="279,5,317,83"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ae47d44e31883547e285e5366db23a0fe"><td class="memItemLeft" align="right" valign="top"><a id="ae47d44e31883547e285e5366db23a0fe"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>MapType</b> = std::map&lt; Key, Value &gt;</td></tr>
<tr class="separator:ae47d44e31883547e285e5366db23a0fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1a2463215950aab4068f0ac7aaf4be2"><td class="memItemLeft" align="right" valign="top"><a id="af1a2463215950aab4068f0ac7aaf4be2"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>IteratorType</b> = typename MapType::iterator</td></tr>
<tr class="separator:af1a2463215950aab4068f0ac7aaf4be2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><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:a8499e210ffb71c52cdeb309269127157"><td class="memItemLeft" align="right" valign="top"><a id="a8499e210ffb71c52cdeb309269127157"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>insert</b> (const Key &amp;key, const Value &amp;value)</td></tr>
<tr class="separator:a8499e210ffb71c52cdeb309269127157"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a889c8e5f8295f72ee10fb2dd26c121"><td class="memItemLeft" align="right" valign="top"><a id="a4a889c8e5f8295f72ee10fb2dd26c121"></a>
auto&#160;</td><td class="memItemRight" valign="bottom"><b>get</b> (const Key &amp;key) -&gt; std::optional&lt; Value &gt;</td></tr>
<tr class="separator:a4a889c8e5f8295f72ee10fb2dd26c121"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1084530558d58b4947a09b0cfe145e26"><td class="memItemLeft" align="right" valign="top"><a id="a1084530558d58b4947a09b0cfe145e26"></a>
auto&#160;</td><td class="memItemRight" valign="bottom"><b>exists</b> (const Key &amp;key) -&gt; bool</td></tr>
<tr class="separator:a1084530558d58b4947a09b0cfe145e26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fb5062f9fc40f1833c0546e01445d1a"><td class="memItemLeft" align="right" valign="top"><a id="a1fb5062f9fc40f1833c0546e01445d1a"></a>
auto&#160;</td><td class="memItemRight" valign="bottom"><b>begin</b> () -&gt; IteratorType</td></tr>
<tr class="separator:a1fb5062f9fc40f1833c0546e01445d1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1412d125b18fc136834ca078a82d709"><td class="memItemLeft" align="right" valign="top"><a id="ae1412d125b18fc136834ca078a82d709"></a>
auto&#160;</td><td class="memItemRight" valign="bottom"><b>end</b> () -&gt; IteratorType</td></tr>
<tr class="separator:ae1412d125b18fc136834ca078a82d709"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dcb62a6da0da59a93a530471fe5bd6c"><td class="memItemLeft" align="right" valign="top"><a id="a0dcb62a6da0da59a93a530471fe5bd6c"></a>
auto&#160;</td><td class="memItemRight" valign="bottom"><b>mirror</b> () -&gt; <a class="el" href="classGpgFrontend_1_1ThreadSafeMap.html">ThreadSafeMap</a> &amp;</td></tr>
<tr class="separator:a0dcb62a6da0da59a93a530471fe5bd6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c7212f340e024dad64df53ee655e1f0"><td class="memItemLeft" align="right" valign="top"><a id="a4c7212f340e024dad64df53ee655e1f0"></a>
auto&#160;</td><td class="memItemRight" valign="bottom"><b>remove</b> (QString key) -&gt; bool</td></tr>
<tr class="separator:a4c7212f340e024dad64df53ee655e1f0"><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:af086e5653ee8d98e3d4f631a6da85778"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; MapType, <a class="el" href="structGpgFrontend_1_1SecureObjectDeleter.html">SecureObjectDeleter</a>&lt; MapType &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>map_mirror_</b></td></tr>
<tr class="separator:af086e5653ee8d98e3d4f631a6da85778"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bc627352201172bd4578330bc99e672"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; MapType, <a class="el" href="structGpgFrontend_1_1SecureObjectDeleter.html">SecureObjectDeleter</a>&lt; MapType &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>map_</b></td></tr>
<tr class="separator:a0bc627352201172bd4578330bc99e672"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc5f153d80e6930caaa16315e938a044"><td class="memItemLeft" align="right" valign="top"><a id="acc5f153d80e6930caaa16315e938a044"></a>
std::shared_mutex&#160;</td><td class="memItemRight" valign="bottom"><b>mutex_</b></td></tr>
<tr class="separator:acc5f153d80e6930caaa16315e938a044"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a0bc627352201172bd4578330bc99e672"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0bc627352201172bd4578330bc99e672">&#9670;&nbsp;</a></span>map_</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Key , typename Value &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::unique_ptr&lt;MapType, <a class="el" href="structGpgFrontend_1_1SecureObjectDeleter.html">SecureObjectDeleter</a>&lt;MapType&gt; &gt; <a class="el" href="classGpgFrontend_1_1ThreadSafeMap.html">GpgFrontend::ThreadSafeMap</a>&lt; Key, Value &gt;::map_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">=</div>
<div class="line"> std::move(SecureCreateUniqueObject&lt;MapType&gt;())</div>
</div><!-- fragment -->
</div>
</div>
<a id="af086e5653ee8d98e3d4f631a6da85778"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af086e5653ee8d98e3d4f631a6da85778">&#9670;&nbsp;</a></span>map_mirror_</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Key , typename Value &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::unique_ptr&lt;MapType, <a class="el" href="structGpgFrontend_1_1SecureObjectDeleter.html">SecureObjectDeleter</a>&lt;MapType&gt; &gt; <a class="el" href="classGpgFrontend_1_1ThreadSafeMap.html">GpgFrontend::ThreadSafeMap</a>&lt; Key, Value &gt;::map_mirror_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">=</div>
<div class="line"> std::move(SecureCreateUniqueObject&lt;MapType&gt;())</div>
</div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/core/function/CacheManager.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_1ThreadSafeMap.html">ThreadSafeMap</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>