GpgFrontend-Doxygen/docs/html/GpgFunctionObject_8h_source.html

214 lines
30 KiB
HTML
Raw Normal View History

2022-05-08 19:59:26 +00:00
<!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"/>
2022-05-08 22:01:23 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
2022-05-08 19:59:26 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GpgFrontend Project: src/core/function/basic/GpgFunctionObject.h Source File</title>
2022-05-08 19:59:26 +00:00
<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>
2022-05-08 22:01:23 +00:00
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
2022-05-08 19:59:26 +00:00
<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 -->
2022-05-08 19:59:26 +00:00
<script type="text/javascript">
2022-05-08 22:01:23 +00:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
2022-05-08 19:59:26 +00:00
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
2022-05-08 22:01:23 +00:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
2022-05-08 19:59:26 +00:00
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2022-05-08 22:01:23 +00:00
/* @license-end */</script>
2022-05-08 19:59:26 +00:00
<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">
2022-05-08 22:01:23 +00:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
2022-05-08 19:59:26 +00:00
$(document).ready(function(){initNavTree('GpgFunctionObject_8h_source.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">
2022-05-08 22:01:23 +00:00
<div class="headertitle">
<div class="title">GpgFunctionObject.h</div> </div>
2022-05-08 19:59:26 +00:00
</div><!--header-->
<div class="contents">
2022-05-08 22:01:23 +00:00
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &lt;mutex&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#include &lt;stdexcept&gt;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#include &quot;core/GpgFrontendCoreExport.h&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#include &quot;core/function/basic/ChannelObject.h&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor">#include &quot;core/function/basic/SingletonStorage.h&quot;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="preprocessor">#include &quot;core/function/basic/SingletonStorageCollection.h&quot;</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">#include &quot;core/utils/MemoryUtils.h&quot;</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceGpgFrontend.html">GpgFrontend</a> {</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keyword">auto</span> GPGFRONTEND_CORE_EXPORT <a class="code" href="namespaceGpgFrontend.html#a0f6c508ed7db841c0eaf5907c7612ff6">GetChannelObjectInstance</a>(</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keyword">const</span> std::type_info&amp; type, <span class="keywordtype">int</span> channel) -&gt; ChannelObject*;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="keyword">auto</span> GPGFRONTEND_CORE_EXPORT CreateChannelObjectInstance(</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keyword">const</span> std::type_info&amp; type, <span class="keywordtype">int</span> channel,</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; SecureUniquePtr&lt;ChannelObject&gt; channel_object) -&gt; ChannelObject*;</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="keyword">auto</span> GPGFRONTEND_CORE_EXPORT</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;GetGlobalFunctionObjectTypeLock(<span class="keyword">const</span> std::type_info&amp; type) -&gt; std::mutex&amp;;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1SingletonFunctionObject.html"> 58</a></span>&#160;<span class="keyword">class </span><a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html">SingletonFunctionObject</a> : <span class="keyword">public</span> <a class="code" href="classGpgFrontend_1_1ChannelObject.html">ChannelObject</a> {</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1SingletonFunctionObject.html#a194e49b07d46345bdad386505d743a61"> 64</a></span>&#160; <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html#a194e49b07d46345bdad386505d743a61">SingletonFunctionObject</a>(<span class="keyword">const</span> <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html">SingletonFunctionObject&lt;T&gt;</a>&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1SingletonFunctionObject.html#a99eb547639a63e7c2f467ebb611c95b7"> 71</a></span>&#160; <span class="keyword">auto</span> <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html#a99eb547639a63e7c2f467ebb611c95b7">operator=</a>(<span class="keyword">const</span> <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html">SingletonFunctionObject&lt;T&gt;</a>&amp;)</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; -&gt; <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html">SingletonFunctionObject</a>&amp; = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1SingletonFunctionObject.html#ac963fee992753970bfb5c81608d4070f"> 80</a></span>&#160; <span class="keyword">static</span> <span class="keyword">auto</span> <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html#ac963fee992753970bfb5c81608d4070f">GetInstance</a>(<span class="keywordtype">int</span> channel = GpgFrontend::kGpgFrontendDefaultChannel)</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; -&gt; T&amp; {</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; static_assert(std::is_base_of_v&lt;<a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html">SingletonFunctionObject&lt;T&gt;</a>, T&gt;,</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="stringliteral">&quot;T not derived from SingletonFunctionObject&lt;T&gt;&quot;</span>);</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keyword">const</span> <span class="keyword">auto</span>&amp; type = <span class="keyword">typeid</span>(T);</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; std::lock_guard&lt;std::mutex&gt; guard(GetGlobalFunctionObjectTypeLock(type));</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keyword">auto</span>* channel_object = <a class="code" href="namespaceGpgFrontend.html#a0f6c508ed7db841c0eaf5907c7612ff6">GetChannelObjectInstance</a>(type, channel);</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordflow">if</span> (channel_object == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; channel_object = CreateChannelObjectInstance(</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; type, channel,</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; ConvertToChannelObjectPtr(SecureCreateUniqueObject&lt;T&gt;(channel)));</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; }</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">static_cast&lt;</span>T*<span class="keyword">&gt;</span>(channel_object);</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; }</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1SingletonFunctionObject.html#adff3ff15fc67b7e9cdeeb2577541fbc4"> 103</a></span>&#160; <span class="keyword">static</span> <span class="keyword">auto</span> <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html#adff3ff15fc67b7e9cdeeb2577541fbc4">CreateInstance</a>(</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keywordtype">int</span> channel, <span class="keyword">const</span> std::function&lt;ChannelObjectPtr(<span class="keywordtype">void</span>)&gt;&amp; factory) -&gt; T&amp; {</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; static_assert(std::is_base_of_v&lt;<a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html">SingletonFunctionObject&lt;T&gt;</a>, T&gt;,</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="stringliteral">&quot;T not derived from SingletonFunctionObject&lt;T&gt;&quot;</span>);</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keyword">const</span> <span class="keyword">auto</span>&amp; type = <span class="keyword">typeid</span>(T);</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; std::lock_guard&lt;std::mutex&gt; guard(GetGlobalFunctionObjectTypeLock(type));</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">static_cast&lt;</span>T*<span class="keyword">&gt;</span>(</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; CreateChannelObjectInstance(type, channel, factory()));</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; }</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; </div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1SingletonFunctionObject.html#ab49b1d50252e1934691a9483a6df2106"> 120</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html#ab49b1d50252e1934691a9483a6df2106">ReleaseChannel</a>(<span class="keywordtype">int</span> channel) {</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <a class="code" href="classGpgFrontend_1_1SingletonStorageCollection.html#a4bba0f1f2880648909af6824bcef9568">SingletonStorageCollection::GetInstance</a>(<span class="keyword">false</span>)</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; -&gt;GetSingletonStorage(<span class="keyword">typeid</span>(T))</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; -&gt;ReleaseChannel(channel);</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; }</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1SingletonFunctionObject.html#ad983153cbe3a0c32c123c506e04f31fc"> 131</a></span>&#160; <span class="keyword">static</span> <span class="keyword">auto</span> <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html#ad983153cbe3a0c32c123c506e04f31fc">GetDefaultChannel</a>() -&gt; <span class="keywordtype">int</span> {</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classGpgFrontend_1_1ChannelObject.html#a6a3672c8ff3d4fb5ef6bc1bda202bbb8">ChannelObject::GetDefaultChannel</a>();</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; }</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1SingletonFunctionObject.html#a94ee1e1251023610590e675ae3de8bd5"> 140</a></span>&#160; [[nodiscard]] <span class="keyword">auto</span> <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html#a94ee1e1251023610590e675ae3de8bd5">GetChannel</a>() const -&gt; <span class="keywordtype">int</span> {</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classGpgFrontend_1_1ChannelObject.html#a085b36517fcc46916279b9d633da2d26">ChannelObject::GetChannel</a>();</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; }</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; </div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1SingletonFunctionObject.html#aa7b5db19f3a130886f43607a345a0e1d"> 149</a></span>&#160; <span class="keyword">static</span> <span class="keyword">auto</span> <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html#aa7b5db19f3a130886f43607a345a0e1d">GetAllChannelId</a>() -&gt; std::vector&lt;int&gt; {</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classGpgFrontend_1_1SingletonStorageCollection.html#a4bba0f1f2880648909af6824bcef9568">SingletonStorageCollection::GetInstance</a>(<span class="keyword">false</span>)</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; -&gt;GetSingletonStorage(<span class="keyword">typeid</span>(T))</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; -&gt;GetAllChannelId();</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; }</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1SingletonFunctionObject.html#aabc5fe8e5a372ac276a265286457cb9a"> 159</a></span>&#160; <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html#aabc5fe8e5a372ac276a265286457cb9a">SingletonFunctionObject</a>(T&amp;&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1SingletonFunctionObject.html#a7090636bed6f4bad5b99f28f6872c645"> 165</a></span>&#160; <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html#a7090636bed6f4bad5b99f28f6872c645">SingletonFunctionObject</a>(<span class="keyword">const</span> T&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; </div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html#a99eb547639a63e7c2f467ebb611c95b7">operator=</a>(<span class="keyword">const</span> T&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; </div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1SingletonFunctionObject.html#a02e76b42ab51d77588b01c7508bed258"> 178</a></span>&#160; <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html#a02e76b42ab51d77588b01c7508bed258">SingletonFunctionObject</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; </div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1SingletonFunctionObject.html#a4aa7f1eb1d3281bb1fccfcbb1b416251"> 185</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html#a4aa7f1eb1d3281bb1fccfcbb1b416251">SingletonFunctionObject</a>(<span class="keywordtype">int</span> channel)</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; : <a class="code" href="classGpgFrontend_1_1ChannelObject.html">ChannelObject</a>(channel, typeid(T).name()) {}</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; </div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1SingletonFunctionObject.html#a8296be8c449f88175285186831b995bc"> 192</a></span>&#160; <span class="keyword">virtual</span> <a class="code" href="classGpgFrontend_1_1SingletonFunctionObject.html#a8296be8c449f88175285186831b995bc">~SingletonFunctionObject</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160;};</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;} <span class="comment">// namespace GpgFrontend</span></div>
<div class="ttc" id="aclassGpgFrontend_1_1ChannelObject_html"><div class="ttname"><a href="classGpgFrontend_1_1ChannelObject.html">GpgFrontend::ChannelObject</a></div><div class="ttdoc">object which in channel system is called &quot;channel&quot;</div><div class="ttdef"><b>Definition:</b> ChannelObject.h:39</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1ChannelObject_html_a085b36517fcc46916279b9d633da2d26"><div class="ttname"><a href="classGpgFrontend_1_1ChannelObject.html#a085b36517fcc46916279b9d633da2d26">GpgFrontend::ChannelObject::GetChannel</a></div><div class="ttdeci">auto GetChannel() const -&gt; int</div><div class="ttdoc">Get the Channel object.</div><div class="ttdef"><b>Definition:</b> ChannelObject.cpp:53</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1ChannelObject_html_a6a3672c8ff3d4fb5ef6bc1bda202bbb8"><div class="ttname"><a href="classGpgFrontend_1_1ChannelObject.html#a6a3672c8ff3d4fb5ef6bc1bda202bbb8">GpgFrontend::ChannelObject::GetDefaultChannel</a></div><div class="ttdeci">static auto GetDefaultChannel() -&gt; int</div><div class="ttdoc">Get the Default Channel object.</div><div class="ttdef"><b>Definition:</b> ChannelObject.cpp:55</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1SingletonFunctionObject_html"><div class="ttname"><a href="classGpgFrontend_1_1SingletonFunctionObject.html">GpgFrontend::SingletonFunctionObject</a></div><div class="ttdef"><b>Definition:</b> GpgFunctionObject.h:58</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1SingletonFunctionObject_html_a02e76b42ab51d77588b01c7508bed258"><div class="ttname"><a href="classGpgFrontend_1_1SingletonFunctionObject.html#a02e76b42ab51d77588b01c7508bed258">GpgFrontend::SingletonFunctionObject::SingletonFunctionObject</a></div><div class="ttdeci">SingletonFunctionObject()=default</div><div class="ttdoc">Construct a new Singleton Function Object object.</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1SingletonFunctionObject_html_a194e49b07d46345bdad386505d743a61"><div class="ttname"><a href="classGpgFrontend_1_1SingletonFunctionObject.html#a194e49b07d46345bdad386505d743a61">GpgFrontend::SingletonFunctionObject::SingletonFunctionObject</a></div><div class="ttdeci">SingletonFunctionObject(const SingletonFunctionObject&lt; T &gt; &amp;)=delete</div><div class="ttdoc">prohibit copy</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1SingletonFunctionObject_html_a4aa7f1eb1d3281bb1fccfcbb1b416251"><div class="ttname"><a href="classGpgFrontend_1_1SingletonFunctionObject.html#a4aa7f1eb1d3281bb1fccfcbb1b416251">GpgFrontend::SingletonFunctionObject::SingletonFunctionObject</a></div><div class="ttdeci">SingletonFunctionObject(int channel)</div><div class="ttdoc">Construct a new Singleton Function Object object.</div><div class="ttdef"><b>Definition:</b> GpgFunctionObject.h:185</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1SingletonFunctionObject_html_a7090636bed6f4bad5b99f28f6872c645"><div class="ttname"><a href="classGpgFrontend_1_1SingletonFunctionObject.html#a7090636bed6f4bad5b99f28f6872c645">GpgFrontend::SingletonFunctionObject::SingletonFunctionObject</a></div><div class="ttdeci">SingletonFunctionObject(const T &amp;)=delete</div><div class="ttdoc">Construct a new Singleton Function Object object.</div></div>
2022-05-08 22:01:23 +00:00
<div class="ttc" id="aclassGpgFrontend_1_1SingletonFunctionObject_html_a8296be8c449f88175285186831b995bc"><div class="ttname"><a href="classGpgFrontend_1_1SingletonFunctionObject.html#a8296be8c449f88175285186831b995bc">GpgFrontend::SingletonFunctionObject::~SingletonFunctionObject</a></div><div class="ttdeci">virtual ~SingletonFunctionObject()=default</div><div class="ttdoc">Destroy the Singleton Function Object object.</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1SingletonFunctionObject_html_a94ee1e1251023610590e675ae3de8bd5"><div class="ttname"><a href="classGpgFrontend_1_1SingletonFunctionObject.html#a94ee1e1251023610590e675ae3de8bd5">GpgFrontend::SingletonFunctionObject::GetChannel</a></div><div class="ttdeci">auto GetChannel() const -&gt; int</div><div class="ttdoc">Get the Channel object.</div><div class="ttdef"><b>Definition:</b> GpgFunctionObject.h:140</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1SingletonFunctionObject_html_a99eb547639a63e7c2f467ebb611c95b7"><div class="ttname"><a href="classGpgFrontend_1_1SingletonFunctionObject.html#a99eb547639a63e7c2f467ebb611c95b7">GpgFrontend::SingletonFunctionObject::operator=</a></div><div class="ttdeci">auto operator=(const SingletonFunctionObject&lt; T &gt; &amp;) -&gt; SingletonFunctionObject &amp;=delete</div><div class="ttdoc">prohibit copy</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1SingletonFunctionObject_html_aa7b5db19f3a130886f43607a345a0e1d"><div class="ttname"><a href="classGpgFrontend_1_1SingletonFunctionObject.html#aa7b5db19f3a130886f43607a345a0e1d">GpgFrontend::SingletonFunctionObject::GetAllChannelId</a></div><div class="ttdeci">static auto GetAllChannelId() -&gt; std::vector&lt; int &gt;</div><div class="ttdoc">Get all the channel ids.</div><div class="ttdef"><b>Definition:</b> GpgFunctionObject.h:149</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1SingletonFunctionObject_html_aabc5fe8e5a372ac276a265286457cb9a"><div class="ttname"><a href="classGpgFrontend_1_1SingletonFunctionObject.html#aabc5fe8e5a372ac276a265286457cb9a">GpgFrontend::SingletonFunctionObject::SingletonFunctionObject</a></div><div class="ttdeci">SingletonFunctionObject(T &amp;&amp;)=delete</div><div class="ttdoc">Construct a new Singleton Function Object object.</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1SingletonFunctionObject_html_ab49b1d50252e1934691a9483a6df2106"><div class="ttname"><a href="classGpgFrontend_1_1SingletonFunctionObject.html#ab49b1d50252e1934691a9483a6df2106">GpgFrontend::SingletonFunctionObject::ReleaseChannel</a></div><div class="ttdeci">static void ReleaseChannel(int channel)</div><div class="ttdef"><b>Definition:</b> GpgFunctionObject.h:120</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1SingletonFunctionObject_html_ac963fee992753970bfb5c81608d4070f"><div class="ttname"><a href="classGpgFrontend_1_1SingletonFunctionObject.html#ac963fee992753970bfb5c81608d4070f">GpgFrontend::SingletonFunctionObject::GetInstance</a></div><div class="ttdeci">static auto GetInstance(int channel=GpgFrontend::kGpgFrontendDefaultChannel) -&gt; T &amp;</div><div class="ttdoc">Get the Instance object.</div><div class="ttdef"><b>Definition:</b> GpgFunctionObject.h:80</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1SingletonFunctionObject_html_ad983153cbe3a0c32c123c506e04f31fc"><div class="ttname"><a href="classGpgFrontend_1_1SingletonFunctionObject.html#ad983153cbe3a0c32c123c506e04f31fc">GpgFrontend::SingletonFunctionObject::GetDefaultChannel</a></div><div class="ttdeci">static auto GetDefaultChannel() -&gt; int</div><div class="ttdoc">Get the Default Channel object.</div><div class="ttdef"><b>Definition:</b> GpgFunctionObject.h:131</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1SingletonFunctionObject_html_adff3ff15fc67b7e9cdeeb2577541fbc4"><div class="ttname"><a href="classGpgFrontend_1_1SingletonFunctionObject.html#adff3ff15fc67b7e9cdeeb2577541fbc4">GpgFrontend::SingletonFunctionObject::CreateInstance</a></div><div class="ttdeci">static auto CreateInstance(int channel, const std::function&lt; ChannelObjectPtr(void)&gt; &amp;factory) -&gt; T &amp;</div><div class="ttdoc">Create a Instance object.</div><div class="ttdef"><b>Definition:</b> GpgFunctionObject.h:103</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1SingletonStorageCollection_html_a4bba0f1f2880648909af6824bcef9568"><div class="ttname"><a href="classGpgFrontend_1_1SingletonStorageCollection.html#a4bba0f1f2880648909af6824bcef9568">GpgFrontend::SingletonStorageCollection::GetInstance</a></div><div class="ttdeci">static auto GetInstance(bool force_refresh) -&gt; SingletonStorageCollection *</div><div class="ttdoc">Get the Instance object.</div><div class="ttdef"><b>Definition:</b> SingletonStorageCollection.cpp:107</div></div>
<div class="ttc" id="anamespaceGpgFrontend_html"><div class="ttname"><a href="namespaceGpgFrontend.html">GpgFrontend</a></div><div class="ttdef"><b>Definition:</b> app.cpp:38</div></div>
<div class="ttc" id="anamespaceGpgFrontend_html_a0f6c508ed7db841c0eaf5907c7612ff6"><div class="ttname"><a href="namespaceGpgFrontend.html#a0f6c508ed7db841c0eaf5907c7612ff6">GpgFrontend::GetChannelObjectInstance</a></div><div class="ttdeci">auto GetChannelObjectInstance(const std::type_info &amp;type, int channel) -&gt; ChannelObject *</div><div class="ttdoc">Get the Instance object.</div><div class="ttdef"><b>Definition:</b> GpgFunctionObject.cpp:67</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
2022-05-08 19:59:26 +00:00
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_aebb8dcc11953d78e620bbef0b9e2183.html">core</a></li><li class="navelem"><a class="el" href="dir_f8a0abd6d3586538a5b71803e0ab7ffa.html">function</a></li><li class="navelem"><a class="el" href="dir_349f63dde462615a894f6d883b92d19c.html">basic</a></li><li class="navelem"><b>GpgFunctionObject.h</b></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>
2022-05-08 19:59:26 +00:00
</ul>
</div>
</body>
</html>