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" / >
2022-11-26 18:19:17 +00:00
< 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/GpgFunctionObject.h Source File< / 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 >
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 -->
2022-11-26 18:19:17 +00:00
<!-- 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& dn=gpl-2.0.txt GPL-v2 */
2022-11-26 18:19:17 +00:00
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& 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& 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 >   < / div >
< div class = "line" > < a name = "l00029" > < / a > < span class = "lineno" > 29< / span >   < span class = "preprocessor" > #ifndef GPGFRONTEND_ZH_CN_TS_FUNCTIONOBJECT_H< / span > < / div >
< div class = "line" > < a name = "l00030" > < / a > < span class = "lineno" > 30< / span >   < span class = "preprocessor" > #define GPGFRONTEND_ZH_CN_TS_FUNCTIONOBJECT_H< / span > < / div >
< div class = "line" > < a name = "l00031" > < / a > < span class = "lineno" > 31< / span >   < / div >
2023-02-25 08:33:31 +00:00
< div class = "line" > < a name = "l00032" > < / a > < span class = "lineno" > 32< / span >   < span class = "preprocessor" > #include < mutex> < / span > < / div >
2022-05-20 18:33:31 +00:00
< div class = "line" > < a name = "l00033" > < / a > < span class = "lineno" > 33< / span >   < / div >
2023-02-25 08:33:31 +00:00
< div class = "line" > < a name = "l00034" > < / a > < span class = "lineno" > 34< / span >   < span class = "preprocessor" > #include " GpgConstants.h" < / span > < / div >
2022-05-20 18:33:31 +00:00
< div class = "line" > < a name = "l00035" > < / a > < span class = "lineno" > 35< / span >   < / div >
2023-02-25 08:33:31 +00:00
< div class = "line" > < a name = "l00036" > < / a > < span class = "lineno" > 36< / span >   < span class = "keyword" > namespace < / span > < a class = "code" href = "namespaceGpgFrontend.html" > GpgFrontend< / a > {< / div >
< div class = "line" > < a name = "l00037" > < / a > < span class = "lineno" > 37< / span >   < / div >
< div class = "line" > < a name = "l00042" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1ChannelObject.html" > 42< / a > < / span >   < span class = "keyword" > class < / span > GPGFRONTEND_CORE_EXPORT < a class = "code" href = "classGpgFrontend_1_1ChannelObject.html" > ChannelObject< / a > {< / div >
< div class = "line" > < a name = "l00043" > < / a > < span class = "lineno" > 43< / span >   < span class = "keyword" > public< / span > :< / div >
< div class = "line" > < a name = "l00048" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1ChannelObject.html#aedbf32eddc701e521bd8e790ef208da0" > 48< / a > < / span >   < a class = "code" href = "classGpgFrontend_1_1ChannelObject.html#aedbf32eddc701e521bd8e790ef208da0" > ChannelObject< / a > () noexcept;< / div >
< div class = "line" > < a name = "l00049" > < / a > < span class = "lineno" > 49< / span >   < / div >
< div class = "line" > < a name = "l00055" > < / a > < span class = "lineno" > 55< / span >   < a class = "code" href = "classGpgFrontend_1_1ChannelObject.html" > ChannelObject< / a > (< span class = "keywordtype" > int< / span > channel);< / div >
< div class = "line" > < a name = "l00056" > < / a > < span class = "lineno" > 56< / span >   < / div >
< div class = "line" > < a name = "l00062" > < / a > < span class = "lineno" > 62< / span >   static < span class = "keywordtype" > int< / span > GetDefaultChannel();< / div >
< div class = "line" > < a name = "l00063" > < / a > < span class = "lineno" > 63< / span >   < / div >
< div class = "line" > < a name = "l00069" > < / a > < span class = "lineno" > 69< / span >   [[nodiscard]] < span class = "keywordtype" > int< / span > GetChannel() const;< / div >
< div class = "line" > < a name = "l00070" > < / a > < span class = "lineno" > 70< / span >   < / div >
< div class = "line" > < a name = "l00076" > < / a > < span class = "lineno" > 76< / span >   < span class = "keywordtype" > void< / span > SetChannel(< span class = "keywordtype" > int< / span > channel);< / div >
< div class = "line" > < a name = "l00077" > < / a > < span class = "lineno" > 77< / span >   < / div >
< div class = "line" > < a name = "l00078" > < / a > < span class = "lineno" > 78< / span >   private:< / div >
< div class = "line" > < a name = "l00079" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1ChannelObject.html#aee5f8a5575adbdf522da4dd195c091ee" > 79< / a > < / span >   < span class = "keywordtype" > int< / span > channel_ = _default_channel; < / div >
< div class = "line" > < a name = "l00080" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1ChannelObject.html#a66295bb572e98fc2fad3afce763ac311" > 80< / a > < / span >   static constexpr < span class = "keywordtype" > int< / span > _default_channel = 0; < / div >
< div class = "line" > < a name = "l00081" > < / a > < span class = "lineno" > 81< / span >   };< / div >
< div class = "line" > < a name = "l00082" > < / a > < span class = "lineno" > 82< / span >   < / div >
< div class = "line" > < a name = "l00083" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonStorage.html" > 83< / a > < / span >   < a class = "code" href = "classclass.html" > class< / a > GPGFRONTEND_CORE_EXPORT < a class = "code" href = "classGpgFrontend_1_1SingletonStorage.html" > SingletonStorage< / a > {< / div >
< div class = "line" > < a name = "l00084" > < / a > < span class = "lineno" > 84< / span >   < span class = "keyword" > public< / span > :< / div >
< div class = "line" > < a name = "l00090" > < / a > < span class = "lineno" > 90< / span >   < span class = "keywordtype" > void< / span > ReleaseChannel(< span class = "keywordtype" > int< / span > channel);< / div >
< div class = "line" > < a name = "l00091" > < / a > < span class = "lineno" > 91< / span >   < / div >
< div class = "line" > < a name = "l00098" > < / a > < span class = "lineno" > 98< / span >   < a class = "code" href = "classGpgFrontend_1_1ChannelObject.html" > ChannelObject< / a > * FindObjectInChannel(< span class = "keywordtype" > int< / span > channel);< / div >
< div class = "line" > < a name = "l00099" > < / a > < span class = "lineno" > 99< / span >   < / div >
< div class = "line" > < a name = "l00105" > < / a > < span class = "lineno" > 105< / span >   std::vector< int> GetAllChannelId();< / div >
< div class = "line" > < a name = "l00106" > < / a > < span class = "lineno" > 106< / span >   < / div >
< div class = "line" > < a name = "l00114" > < / a > < span class = "lineno" > 114< / span >   < a class = "code" href = "classGpgFrontend_1_1ChannelObject.html" > ChannelObject< / a > * SetObjectInChannel(< span class = "keywordtype" > int< / span > channel,< / div >
< div class = "line" > < a name = "l00115" > < / a > < span class = "lineno" > 115< / span >   std::unique_ptr< ChannelObject> p_obj);< / div >
< div class = "line" > < a name = "l00116" > < / a > < span class = "lineno" > 116< / span >   < / div >
< div class = "line" > < a name = "l00117" > < / a > < span class = "lineno" > 117< / span >   < span class = "keyword" > private< / span > :< / div >
< div class = "line" > < a name = "l00118" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonStorage.html#a15161d0afafec602018a89266dab5641" > 118< / a > < / span >   std::shared_mutex < a class = "code" href = "classGpgFrontend_1_1SingletonStorage.html#a15161d0afafec602018a89266dab5641" > instances_mutex_< / a > ; < / div >
< div class = "line" > < a name = "l00119" > < / a > < span class = "lineno" > 119< / span >   std::map< int, std::unique_ptr< ChannelObject> > < / div >
< div class = "line" > < a name = "l00120" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonStorage.html#a6181f2b5af39c6b86de89e1ba9eeff1c" > 120< / a > < / span >   < a class = "code" href = "classGpgFrontend_1_1SingletonStorage.html#a6181f2b5af39c6b86de89e1ba9eeff1c" > instances_map_< / a > ; < / div >
< div class = "line" > < a name = "l00121" > < / a > < span class = "lineno" > 121< / span >   };< / div >
< div class = "line" > < a name = "l00122" > < / a > < span class = "lineno" > 122< / span >   < / div >
< div class = "line" > < a name = "l00123" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonStorageCollection.html" > 123< / a > < / span >   < span class = "keyword" > class < / span > GPGFRONTEND_CORE_EXPORT < a class = "code" href = "classGpgFrontend_1_1SingletonStorageCollection.html" > SingletonStorageCollection< / a > {< / div >
< div class = "line" > < a name = "l00124" > < / a > < span class = "lineno" > 124< / span >   < span class = "keyword" > public< / span > :< / div >
< div class = "line" > < a name = "l00130" > < / a > < span class = "lineno" > 130< / span >   < span class = "keyword" > static< / span > < a class = "code" href = "classGpgFrontend_1_1SingletonStorageCollection.html" > SingletonStorageCollection< / a > * GetInstance(< span class = "keywordtype" > bool< / span > force_refresh);< / div >
< div class = "line" > < a name = "l00131" > < / a > < span class = "lineno" > 131< / span >   < / div >
< div class = "line" > < a name = "l00138" > < / a > < span class = "lineno" > 138< / span >   < a class = "code" href = "classGpgFrontend_1_1SingletonStorage.html" > SingletonStorage< / a > * GetSingletonStorage(< span class = "keyword" > const< / span > std::type_info& );< / div >
< div class = "line" > < a name = "l00139" > < / a > < span class = "lineno" > 139< / span >   < / div >
< div class = "line" > < a name = "l00140" > < / a > < span class = "lineno" > 140< / span >   < span class = "keyword" > private< / span > :< / div >
< div class = "line" > < a name = "l00141" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonStorageCollection.html#ab648cb257beb2475eb5fca6453c331f9" > 141< / a > < / span >   std::shared_mutex < a class = "code" href = "classGpgFrontend_1_1SingletonStorageCollection.html#ab648cb257beb2475eb5fca6453c331f9" > storages_mutex_< / a > ; < / div >
< div class = "line" > < a name = "l00142" > < / a > < span class = "lineno" > 142< / span >   std::map< size_t, std::unique_ptr< SingletonStorage> > storages_map_;< / div >
< div class = "line" > < a name = "l00143" > < / a > < span class = "lineno" > 143< / span >   };< / div >
< div class = "line" > < a name = "l00149" > < / a > < span class = "lineno" > 149< / span >   < span class = "keyword" > template< / span > < < span class = "keyword" > typename< / span > T> < / div >
< div class = "line" > < a name = "l00150" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonFunctionObject.html" > 150< / a > < / span >   < 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 = "l00151" > < / a > < span class = "lineno" > 151< / span >   < span class = "keyword" > public< / span > :< / div >
< div class = "line" > < a name = "l00156" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a194e49b07d46345bdad386505d743a61" > 156< / a > < / span >   < 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< T> < / a > & ) = < span class = "keyword" > delete< / span > ;< / div >
< div class = "line" > < a name = "l00157" > < / a > < span class = "lineno" > 157< / span >   < / div >
< div class = "line" > < a name = "l00163" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonFunctionObject.html#aabb190a60f7a5d4ded43cae16ab8f59e" > 163< / a > < / span >   < a class = "code" href = "classGpgFrontend_1_1SingletonFunctionObject.html" > SingletonFunctionObject< / a > & < a class = "code" href = "classGpgFrontend_1_1SingletonFunctionObject.html#aabb190a60f7a5d4ded43cae16ab8f59e" > operator=< / a > (< span class = "keyword" > const< / span > < a class = "code" href = "classGpgFrontend_1_1SingletonFunctionObject.html" > SingletonFunctionObject< T> < / a > & ) =< / div >
< div class = "line" > < a name = "l00164" > < / a > < span class = "lineno" > 164< / span >   < span class = "keyword" > delete< / span > ;< / div >
< div class = "line" > < a name = "l00165" > < / a > < span class = "lineno" > 165< / span >   < / div >
< div class = "line" > < a name = "l00172" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a70484d7cfe9f9dcbcd5f8bb749250f36" > 172< / a > < / span >   < span class = "keyword" > static< / span > T& < a class = "code" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a70484d7cfe9f9dcbcd5f8bb749250f36" > GetInstance< / a > (< / div >
< div class = "line" > < a name = "l00173" > < / a > < span class = "lineno" > 173< / span >   < span class = "keywordtype" > int< / span > channel = GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL) {< / div >
< div class = "line" > < a name = "l00174" > < / a > < span class = "lineno" > 174< / span >   < span class = "keyword" > static< / span > std::mutex g_channel_mutex_map_lock;< / div >
< div class = "line" > < a name = "l00175" > < / a > < span class = "lineno" > 175< / span >   < span class = "keyword" > static< / span > std::map< int, std::mutex> g_channel_mutex_map;< / div >
< div class = "line" > < a name = "l00176" > < / a > < span class = "lineno" > 176< / span >   < / div >
< div class = "line" > < a name = "l00177" > < / a > < span class = "lineno" > 177< / span >   {< / div >
< div class = "line" > < a name = "l00178" > < / a > < span class = "lineno" > 178< / span >   std::lock_guard< std::mutex> guard(g_channel_mutex_map_lock);< / div >
< div class = "line" > < a name = "l00179" > < / a > < span class = "lineno" > 179< / span >   < span class = "keywordflow" > if< / span > (g_channel_mutex_map.find(channel) == g_channel_mutex_map.end()) {< / div >
< div class = "line" > < a name = "l00180" > < / a > < span class = "lineno" > 180< / span >   g_channel_mutex_map[channel];< / div >
< div class = "line" > < a name = "l00181" > < / a > < span class = "lineno" > 181< / span >   }< / div >
< div class = "line" > < a name = "l00182" > < / a > < span class = "lineno" > 182< / span >   }< / div >
< div class = "line" > < a name = "l00183" > < / a > < span class = "lineno" > 183< / span >   < / div >
< div class = "line" > < a name = "l00184" > < / a > < span class = "lineno" > 184< / span >   static_assert(std::is_base_of< < a class = "code" href = "classGpgFrontend_1_1SingletonFunctionObject.html" > SingletonFunctionObject< T> < / a > , T> ::value,< / div >
< div class = "line" > < a name = "l00185" > < / a > < span class = "lineno" > 185< / span >   < span class = "stringliteral" > " T not derived from SingletonFunctionObject< T> " < / span > );< / div >
< div class = "line" > < a name = "l00186" > < / a > < span class = "lineno" > 186< / span >   < / div >
< div class = "line" > < a name = "l00187" > < / a > < span class = "lineno" > 187< / span >   < span class = "keyword" > auto< / span > * p_storage =< / div >
< div class = "line" > < a name = "l00188" > < / a > < span class = "lineno" > 188< / span >   < a class = "code" href = "classGpgFrontend_1_1SingletonStorageCollection.html#ac56d19e0d4b99e7b8a86a017721f3db1" > SingletonStorageCollection::GetInstance< / a > (< span class = "keyword" > false< / span > )-> < a class = "code" href = "classGpgFrontend_1_1SingletonStorageCollection.html#a6f933390c54b7f55d5ffb4624074725f" > GetSingletonStorage< / a > (< / div >
< div class = "line" > < a name = "l00189" > < / a > < span class = "lineno" > 189< / span >   < span class = "keyword" > typeid< / span > (T));< / div >
< div class = "line" > < a name = "l00190" > < / a > < span class = "lineno" > 190< / span >   < span class = "keyword" > auto< / span > * _p_pbj = (T*)(p_storage-> FindObjectInChannel(channel));< / div >
< div class = "line" > < a name = "l00191" > < / a > < span class = "lineno" > 191< / span >   < / div >
< div class = "line" > < a name = "l00192" > < / a > < span class = "lineno" > 192< / span >   < span class = "keywordflow" > if< / span > (_p_pbj == < span class = "keyword" > nullptr< / span > ) {< / div >
< div class = "line" > < a name = "l00193" > < / a > < span class = "lineno" > 193< / span >   < span class = "comment" > // lock this channel< / span > < / div >
< div class = "line" > < a name = "l00194" > < / a > < span class = "lineno" > 194< / span >   std::lock_guard< std::mutex> guard(g_channel_mutex_map[channel]);< / div >
< div class = "line" > < a name = "l00195" > < / a > < span class = "lineno" > 195< / span >   < / div >
< div class = "line" > < a name = "l00196" > < / a > < span class = "lineno" > 196< / span >   < span class = "comment" > // double check< / span > < / div >
< div class = "line" > < a name = "l00197" > < / a > < span class = "lineno" > 197< / span >   < span class = "keywordflow" > if< / span > ((_p_pbj = (T*)(p_storage-> FindObjectInChannel(channel))) != < span class = "keyword" > nullptr< / span > )< / div >
< div class = "line" > < a name = "l00198" > < / a > < span class = "lineno" > 198< / span >   < span class = "keywordflow" > return< / span > *_p_pbj;< / div >
< div class = "line" > < a name = "l00199" > < / a > < span class = "lineno" > 199< / span >   < / div >
< div class = "line" > < a name = "l00200" > < / a > < span class = "lineno" > 200< / span >   < span class = "comment" > // do create object of this channel< / span > < / div >
< div class = "line" > < a name = "l00201" > < / a > < span class = "lineno" > 201< / span >   < span class = "keyword" > auto< / span > new_obj = std::unique_ptr< ChannelObject> (< span class = "keyword" > new< / span > T(channel));< / div >
< div class = "line" > < a name = "l00202" > < / a > < span class = "lineno" > 202< / span >   < span class = "keywordflow" > return< / span > *(T*)(p_storage-> SetObjectInChannel(channel, std::move(new_obj)));< / div >
< div class = "line" > < a name = "l00203" > < / a > < span class = "lineno" > 203< / span >   } < span class = "keywordflow" > else< / span > {< / div >
< div class = "line" > < a name = "l00204" > < / a > < span class = "lineno" > 204< / span >   < span class = "keywordflow" > return< / span > *_p_pbj;< / div >
< div class = "line" > < a name = "l00205" > < / a > < span class = "lineno" > 205< / span >   }< / div >
< div class = "line" > < a name = "l00206" > < / a > < span class = "lineno" > 206< / span >   }< / div >
2022-05-20 18:33:31 +00:00
< div class = "line" > < a name = "l00207" > < / a > < span class = "lineno" > 207< / span >   < / div >
2023-02-25 08:33:31 +00:00
< div class = "line" > < a name = "l00215" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a083807ff8cec58dc0aa732844edaf518" > 215< / a > < / span >   < span class = "keyword" > static< / span > T& < a class = "code" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a083807ff8cec58dc0aa732844edaf518" > CreateInstance< / a > (< / div >
< div class = "line" > < a name = "l00216" > < / a > < span class = "lineno" > 216< / span >   < span class = "keywordtype" > int< / span > channel,< / div >
< div class = "line" > < a name = "l00217" > < / a > < span class = "lineno" > 217< / span >   std::function< std::unique_ptr< ChannelObject> (< span class = " keywordtype " > void< / span > )> factory) {< / div >
< div class = "line" > < a name = "l00218" > < / a > < span class = "lineno" > 218< / span >   static_assert(std::is_base_of< < a class = "code" href = "classGpgFrontend_1_1SingletonFunctionObject.html" > SingletonFunctionObject< T> < / a > , T> ::value,< / div >
< div class = "line" > < a name = "l00219" > < / a > < span class = "lineno" > 219< / span >   < span class = "stringliteral" > " T not derived from SingletonFunctionObject< T> " < / span > );< / div >
< div class = "line" > < a name = "l00220" > < / a > < span class = "lineno" > 220< / span >   < / div >
< div class = "line" > < a name = "l00221" > < / a > < span class = "lineno" > 221< / span >   < span class = "keyword" > auto< / span > p_storage =< / div >
< div class = "line" > < a name = "l00222" > < / a > < span class = "lineno" > 222< / span >   < a class = "code" href = "classGpgFrontend_1_1SingletonStorageCollection.html#ac56d19e0d4b99e7b8a86a017721f3db1" > SingletonStorageCollection::GetInstance< / a > (< span class = "keyword" > false< / span > )-> < a class = "code" href = "classGpgFrontend_1_1SingletonStorageCollection.html#a6f933390c54b7f55d5ffb4624074725f" > GetSingletonStorage< / a > (< / div >
< div class = "line" > < a name = "l00223" > < / a > < span class = "lineno" > 223< / span >   < span class = "keyword" > typeid< / span > (T));< / div >
< div class = "line" > < a name = "l00224" > < / a > < span class = "lineno" > 224< / span >   < / div >
< div class = "line" > < a name = "l00225" > < / a > < span class = "lineno" > 225< / span >   < span class = "keyword" > auto< / span > _p_pbj = (T*)(p_storage-> FindObjectInChannel(channel));< / div >
2022-05-20 18:33:31 +00:00
< div class = "line" > < a name = "l00226" > < / a > < span class = "lineno" > 226< / span >   < / div >
2023-02-25 08:33:31 +00:00
< div class = "line" > < a name = "l00227" > < / a > < span class = "lineno" > 227< / span >   < span class = "keywordflow" > if< / span > (_p_pbj == < span class = "keyword" > nullptr< / span > ) {< / div >
< div class = "line" > < a name = "l00228" > < / a > < span class = "lineno" > 228< / span >   < span class = "keywordflow" > return< / span > *(< / div >
< div class = "line" > < a name = "l00229" > < / a > < span class = "lineno" > 229< / span >   T*)(p_storage-> SetObjectInChannel(channel, std::move(factory())));< / div >
< div class = "line" > < a name = "l00230" > < / a > < span class = "lineno" > 230< / span >   } < span class = "keywordflow" > else< / span > < / div >
< div class = "line" > < a name = "l00231" > < / a > < span class = "lineno" > 231< / span >   < span class = "keywordflow" > return< / span > *_p_pbj;< / div >
< div class = "line" > < a name = "l00232" > < / a > < span class = "lineno" > 232< / span >   }< / div >
2022-05-20 18:33:31 +00:00
< div class = "line" > < a name = "l00233" > < / a > < span class = "lineno" > 233< / span >   < / div >
2023-02-25 08:33:31 +00:00
< div class = "line" > < a name = "l00240" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonFunctionObject.html#ab49b1d50252e1934691a9483a6df2106" > 240< / a > < / span >   < 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 = "l00241" > < / a > < span class = "lineno" > 241< / span >   < a class = "code" href = "classGpgFrontend_1_1SingletonStorageCollection.html#ac56d19e0d4b99e7b8a86a017721f3db1" > SingletonStorageCollection::GetInstance< / a > (< span class = "keyword" > false< / span > )< / div >
< div class = "line" > < a name = "l00242" > < / a > < span class = "lineno" > 242< / span >   -> < a class = "code" href = "classGpgFrontend_1_1SingletonStorageCollection.html#a6f933390c54b7f55d5ffb4624074725f" > GetSingletonStorage< / a > (< span class = "keyword" > typeid< / span > (T))< / div >
< div class = "line" > < a name = "l00243" > < / a > < span class = "lineno" > 243< / span >   -> < a class = "code" href = "classGpgFrontend_1_1SingletonStorage.html#adb22cc80a1ab040b6e4bce962625edfd" > ReleaseChannel< / a > (channel);< / div >
< div class = "line" > < a name = "l00244" > < / a > < span class = "lineno" > 244< / span >   }< / div >
< div class = "line" > < a name = "l00245" > < / a > < span class = "lineno" > 245< / span >   < / div >
< div class = "line" > < a name = "l00251" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a50e2b3794d6553f4231eaec72d9d0a50" > 251< / a > < / span >   < span class = "keyword" > static< / span > < span class = "keywordtype" > int< / span > < a class = "code" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a50e2b3794d6553f4231eaec72d9d0a50" > GetDefaultChannel< / a > () { < span class = "keywordflow" > return< / span > < a class = "code" href = "classGpgFrontend_1_1ChannelObject.html#aece9c525c49900734bc1bebf85b644ef" > ChannelObject::GetDefaultChannel< / a > (); }< / div >
< div class = "line" > < a name = "l00252" > < / a > < span class = "lineno" > 252< / span >   < / div >
< div class = "line" > < a name = "l00258" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonFunctionObject.html#aa99440b9177f5d0c18840f08a40d64b7" > 258< / a > < / span >   [[nodiscard]] < span class = "keywordtype" > int< / span > < a class = "code" href = "classGpgFrontend_1_1SingletonFunctionObject.html#aa99440b9177f5d0c18840f08a40d64b7" > GetChannel< / a > ()< span class = "keyword" > const < / span > { < span class = "keywordflow" > return< / span > < a class = "code" href = "classGpgFrontend_1_1ChannelObject.html#a0e13a4bff1cfb679f68a3a2590a3b1b8" > ChannelObject::GetChannel< / a > (); }< / div >
< div class = "line" > < a name = "l00259" > < / a > < span class = "lineno" > 259< / span >   < / div >
< div class = "line" > < a name = "l00265" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a5f2f0474871971f86ff91fb6a2408621" > 265< / a > < / span >   < span class = "keyword" > static< / span > std::vector< int> < a class = "code" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a5f2f0474871971f86ff91fb6a2408621" > GetAllChannelId< / a > () {< / div >
< div class = "line" > < a name = "l00266" > < / a > < span class = "lineno" > 266< / span >   < span class = "keywordflow" > return< / span > < a class = "code" href = "classGpgFrontend_1_1SingletonStorageCollection.html#ac56d19e0d4b99e7b8a86a017721f3db1" > SingletonStorageCollection::GetInstance< / a > (< span class = "keyword" > false< / span > )< / div >
< div class = "line" > < a name = "l00267" > < / a > < span class = "lineno" > 267< / span >   -> < a class = "code" href = "classGpgFrontend_1_1SingletonStorageCollection.html#a6f933390c54b7f55d5ffb4624074725f" > GetSingletonStorage< / a > (< span class = "keyword" > typeid< / span > (T))< / div >
< div class = "line" > < a name = "l00268" > < / a > < span class = "lineno" > 268< / span >   -> < a class = "code" href = "classGpgFrontend_1_1SingletonStorage.html#a3f09424ebdc097fbdab77564a7d723ea" > GetAllChannelId< / a > ();< / div >
< div class = "line" > < a name = "l00269" > < / a > < span class = "lineno" > 269< / span >   }< / div >
< div class = "line" > < a name = "l00270" > < / a > < span class = "lineno" > 270< / span >   < / div >
< div class = "line" > < a name = "l00275" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonFunctionObject.html#aabc5fe8e5a372ac276a265286457cb9a" > 275< / a > < / span >   < a class = "code" href = "classGpgFrontend_1_1SingletonFunctionObject.html#aabc5fe8e5a372ac276a265286457cb9a" > SingletonFunctionObject< / a > (T& & ) = < span class = "keyword" > delete< / span > ;< / div >
2022-05-09 15:32:58 +00:00
< div class = "line" > < a name = "l00276" > < / a > < span class = "lineno" > 276< / span >   < / div >
2023-02-25 08:33:31 +00:00
< div class = "line" > < a name = "l00281" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a7090636bed6f4bad5b99f28f6872c645" > 281< / a > < / span >   < a class = "code" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a7090636bed6f4bad5b99f28f6872c645" > SingletonFunctionObject< / a > (< span class = "keyword" > const< / span > T& ) = < span class = "keyword" > delete< / span > ;< / div >
< div class = "line" > < a name = "l00282" > < / a > < span class = "lineno" > 282< / span >   < / div >
< div class = "line" > < a name = "l00287" > < / a > < span class = "lineno" > 287< / span >   < span class = "keywordtype" > void< / span > operator=(< span class = "keyword" > const< / span > T& ) = < span class = "keyword" > delete< / span > ;< / div >
< div class = "line" > < a name = "l00288" > < / a > < span class = "lineno" > 288< / span >   < / div >
< div class = "line" > < a name = "l00289" > < / a > < span class = "lineno" > 289< / span >   < span class = "keyword" > protected< / span > :< / div >
< div class = "line" > < a name = "l00294" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a02e76b42ab51d77588b01c7508bed258" > 294< / a > < / span >   < a class = "code" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a02e76b42ab51d77588b01c7508bed258" > SingletonFunctionObject< / a > () = < span class = "keywordflow" > default< / span > ;< / div >
< div class = "line" > < a name = "l00295" > < / a > < span class = "lineno" > 295< / span >   < / div >
< div class = "line" > < a name = "l00301" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a4aa7f1eb1d3281bb1fccfcbb1b416251" > 301< / a > < / span >   < span class = "keyword" > explicit< / span > < a class = "code" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a4aa7f1eb1d3281bb1fccfcbb1b416251" > SingletonFunctionObject< / a > (< span class = "keywordtype" > int< / span > channel) : < a class = "code" href = "classGpgFrontend_1_1ChannelObject.html" > ChannelObject< / a > (channel) {}< / div >
< div class = "line" > < a name = "l00302" > < / a > < span class = "lineno" > 302< / span >   < / div >
< div class = "line" > < a name = "l00307" > < / a > < span class = "lineno" > < a class = "line" href = "classGpgFrontend_1_1SingletonFunctionObject.html#a8296be8c449f88175285186831b995bc" > 307< / a > < / span >   < 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 = "l00308" > < / a > < span class = "lineno" > 308< / span >   };< / div >
< div class = "line" > < a name = "l00309" > < / a > < span class = "lineno" > 309< / span >   } < span class = "comment" > // namespace GpgFrontend< / span > < / div >
< div class = "line" > < a name = "l00310" > < / a > < span class = "lineno" > 310< / span >   < / div >
< div class = "line" > < a name = "l00311" > < / a > < span class = "lineno" > 311< / span >   < span class = "preprocessor" > #endif < / span > < span class = "comment" > // GPGFRONTEND_ZH_CN_TS_FUNCTIONOBJECT_H< / 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< / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.h:42< / div > < / div >
2023-02-16 14:01:59 +00:00
< div class = "ttc" id = "aclassGpgFrontend_1_1ChannelObject_html_a0e13a4bff1cfb679f68a3a2590a3b1b8" > < div class = "ttname" > < a href = "classGpgFrontend_1_1ChannelObject.html#a0e13a4bff1cfb679f68a3a2590a3b1b8" > GpgFrontend::ChannelObject::GetChannel< / a > < / div > < div class = "ttdeci" > int GetChannel() const< / div > < div class = "ttdoc" > Get the Channel object.< / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.cpp:41< / div > < / div >
< div class = "ttc" id = "aclassGpgFrontend_1_1ChannelObject_html_aece9c525c49900734bc1bebf85b644ef" > < div class = "ttname" > < a href = "classGpgFrontend_1_1ChannelObject.html#aece9c525c49900734bc1bebf85b644ef" > GpgFrontend::ChannelObject::GetDefaultChannel< / a > < / div > < div class = "ttdeci" > static int GetDefaultChannel()< / div > < div class = "ttdoc" > Get the Default Channel object.< / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.cpp:43< / div > < / div >
2022-11-26 18:19:17 +00:00
< div class = "ttc" id = "aclassGpgFrontend_1_1ChannelObject_html_aedbf32eddc701e521bd8e790ef208da0" > < div class = "ttname" > < a href = "classGpgFrontend_1_1ChannelObject.html#aedbf32eddc701e521bd8e790ef208da0" > GpgFrontend::ChannelObject::ChannelObject< / a > < / div > < div class = "ttdeci" > ChannelObject() noexcept< / div > < div class = "ttdoc" > Construct a new Default Channel Object object.< / div > < / div >
2023-02-25 08:33:31 +00:00
< 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:150< / div > < / div >
2022-11-26 18:19:17 +00:00
< 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 >
2023-02-25 08:33:31 +00:00
< div class = "ttc" id = "aclassGpgFrontend_1_1SingletonFunctionObject_html_a083807ff8cec58dc0aa732844edaf518" > < div class = "ttname" > < a href = "classGpgFrontend_1_1SingletonFunctionObject.html#a083807ff8cec58dc0aa732844edaf518" > GpgFrontend::SingletonFunctionObject::CreateInstance< / a > < / div > < div class = "ttdeci" > static T & CreateInstance(int channel, std::function< std::unique_ptr< ChannelObject > (void)> factory)< / div > < div class = "ttdoc" > Create a Instance object.< / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.h:215< / div > < / div >
2022-11-26 18:19:17 +00:00
< 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< T > & )=delete< / div > < div class = "ttdoc" > prohibit copy< / div > < / div >
2023-02-25 08:33:31 +00:00
< 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:301< / div > < / div >
< div class = "ttc" id = "aclassGpgFrontend_1_1SingletonFunctionObject_html_a50e2b3794d6553f4231eaec72d9d0a50" > < div class = "ttname" > < a href = "classGpgFrontend_1_1SingletonFunctionObject.html#a50e2b3794d6553f4231eaec72d9d0a50" > GpgFrontend::SingletonFunctionObject::GetDefaultChannel< / a > < / div > < div class = "ttdeci" > static int GetDefaultChannel()< / div > < div class = "ttdoc" > Get the Default Channel object.< / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.h:251< / div > < / div >
< div class = "ttc" id = "aclassGpgFrontend_1_1SingletonFunctionObject_html_a5f2f0474871971f86ff91fb6a2408621" > < div class = "ttname" > < a href = "classGpgFrontend_1_1SingletonFunctionObject.html#a5f2f0474871971f86ff91fb6a2408621" > GpgFrontend::SingletonFunctionObject::GetAllChannelId< / a > < / div > < div class = "ttdeci" > static std::vector< int > GetAllChannelId()< / div > < div class = "ttdoc" > Get all the channel ids.< / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.h:265< / div > < / div >
< div class = "ttc" id = "aclassGpgFrontend_1_1SingletonFunctionObject_html_a70484d7cfe9f9dcbcd5f8bb749250f36" > < div class = "ttname" > < a href = "classGpgFrontend_1_1SingletonFunctionObject.html#a70484d7cfe9f9dcbcd5f8bb749250f36" > GpgFrontend::SingletonFunctionObject::GetInstance< / a > < / div > < div class = "ttdeci" > static T & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)< / div > < div class = "ttdoc" > Get the Instance object.< / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.h:172< / div > < / div >
2022-11-26 18:19:17 +00:00
< 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 & )=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 >
2023-02-25 08:33:31 +00:00
< div class = "ttc" id = "aclassGpgFrontend_1_1SingletonFunctionObject_html_aa99440b9177f5d0c18840f08a40d64b7" > < div class = "ttname" > < a href = "classGpgFrontend_1_1SingletonFunctionObject.html#aa99440b9177f5d0c18840f08a40d64b7" > GpgFrontend::SingletonFunctionObject::GetChannel< / a > < / div > < div class = "ttdeci" > int GetChannel() const< / div > < div class = "ttdoc" > Get the Channel object.< / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.h:258< / div > < / div >
2022-11-26 18:19:17 +00:00
< div class = "ttc" id = "aclassGpgFrontend_1_1SingletonFunctionObject_html_aabb190a60f7a5d4ded43cae16ab8f59e" > < div class = "ttname" > < a href = "classGpgFrontend_1_1SingletonFunctionObject.html#aabb190a60f7a5d4ded43cae16ab8f59e" > GpgFrontend::SingletonFunctionObject::operator=< / a > < / div > < div class = "ttdeci" > SingletonFunctionObject & operator=(const SingletonFunctionObject< T > & )=delete< / div > < div class = "ttdoc" > prohibit copy< / 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 & & )=delete< / div > < div class = "ttdoc" > Construct a new Singleton Function Object object.< / div > < / div >
2023-02-25 08:33:31 +00:00
< 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:240< / div > < / div >
< div class = "ttc" id = "aclassGpgFrontend_1_1SingletonStorageCollection_html" > < div class = "ttname" > < a href = "classGpgFrontend_1_1SingletonStorageCollection.html" > GpgFrontend::SingletonStorageCollection< / a > < / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.h:123< / div > < / div >
2023-02-16 14:01:59 +00:00
< div class = "ttc" id = "aclassGpgFrontend_1_1SingletonStorageCollection_html_a6f933390c54b7f55d5ffb4624074725f" > < div class = "ttname" > < a href = "classGpgFrontend_1_1SingletonStorageCollection.html#a6f933390c54b7f55d5ffb4624074725f" > GpgFrontend::SingletonStorageCollection::GetSingletonStorage< / a > < / div > < div class = "ttdeci" > SingletonStorage * GetSingletonStorage(const std::type_info & )< / div > < div class = "ttdoc" > Get the Singleton Storage object.< / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.cpp:97< / div > < / div >
2023-02-25 08:33:31 +00:00
< div class = "ttc" id = "aclassGpgFrontend_1_1SingletonStorageCollection_html_ab648cb257beb2475eb5fca6453c331f9" > < div class = "ttname" > < a href = "classGpgFrontend_1_1SingletonStorageCollection.html#ab648cb257beb2475eb5fca6453c331f9" > GpgFrontend::SingletonStorageCollection::storages_mutex_< / a > < / div > < div class = "ttdeci" > std::shared_mutex storages_mutex_< / div > < div class = "ttdoc" > mutex for storages_map_< / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.h:141< / div > < / div >
2023-02-16 14:01:59 +00:00
< div class = "ttc" id = "aclassGpgFrontend_1_1SingletonStorageCollection_html_ac56d19e0d4b99e7b8a86a017721f3db1" > < div class = "ttname" > < a href = "classGpgFrontend_1_1SingletonStorageCollection.html#ac56d19e0d4b99e7b8a86a017721f3db1" > GpgFrontend::SingletonStorageCollection::GetInstance< / a > < / div > < div class = "ttdeci" > static SingletonStorageCollection * GetInstance(bool force_refresh)< / div > < div class = "ttdoc" > Get the Instance object.< / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.cpp:122< / div > < / div >
2023-02-25 08:33:31 +00:00
< div class = "ttc" id = "aclassGpgFrontend_1_1SingletonStorage_html" > < div class = "ttname" > < a href = "classGpgFrontend_1_1SingletonStorage.html" > GpgFrontend::SingletonStorage< / a > < / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.h:83< / div > < / div >
< div class = "ttc" id = "aclassGpgFrontend_1_1SingletonStorage_html_a15161d0afafec602018a89266dab5641" > < div class = "ttname" > < a href = "classGpgFrontend_1_1SingletonStorage.html#a15161d0afafec602018a89266dab5641" > GpgFrontend::SingletonStorage::instances_mutex_< / a > < / div > < div class = "ttdeci" > std::shared_mutex instances_mutex_< / div > < div class = "ttdoc" > mutex for _instances_map< / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.h:118< / div > < / div >
2023-02-16 14:01:59 +00:00
< div class = "ttc" id = "aclassGpgFrontend_1_1SingletonStorage_html_a3f09424ebdc097fbdab77564a7d723ea" > < div class = "ttname" > < a href = "classGpgFrontend_1_1SingletonStorage.html#a3f09424ebdc097fbdab77564a7d723ea" > GpgFrontend::SingletonStorage::GetAllChannelId< / a > < / div > < div class = "ttdeci" > std::vector< int > GetAllChannelId()< / div > < div class = "ttdoc" > Get all the channel ids.< / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.cpp:69< / div > < / div >
2023-02-25 08:33:31 +00:00
< div class = "ttc" id = "aclassGpgFrontend_1_1SingletonStorage_html_a6181f2b5af39c6b86de89e1ba9eeff1c" > < div class = "ttname" > < a href = "classGpgFrontend_1_1SingletonStorage.html#a6181f2b5af39c6b86de89e1ba9eeff1c" > GpgFrontend::SingletonStorage::instances_map_< / a > < / div > < div class = "ttdeci" > std::map< int, std::unique_ptr< ChannelObject > > instances_map_< / div > < div class = "ttdoc" > map of singleton instances< / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.h:120< / div > < / div >
2023-02-16 14:01:59 +00:00
< div class = "ttc" id = "aclassGpgFrontend_1_1SingletonStorage_html_adb22cc80a1ab040b6e4bce962625edfd" > < div class = "ttname" > < a href = "classGpgFrontend_1_1SingletonStorage.html#adb22cc80a1ab040b6e4bce962625edfd" > GpgFrontend::SingletonStorage::ReleaseChannel< / a > < / div > < div class = "ttdeci" > void ReleaseChannel(int channel)< / div > < div class = "ttdef" > < b > Definition:< / b > GpgFunctionObject.cpp:45< / div > < / div >
2022-11-26 18:19:17 +00:00
< div class = "ttc" id = "aclassclass_html" > < div class = "ttname" > < a href = "classclass.html" > class< / a > < / div > < div class = "ttdoc" > Executive files related to the basic operations that are provided by GpgBasicOperator.< / div > < / div >
2023-02-16 14:01:59 +00:00
< div class = "ttc" id = "anamespaceGpgFrontend_html" > < div class = "ttname" > < a href = "namespaceGpgFrontend.html" > GpgFrontend< / a > < / div > < div class = "ttdef" > < b > Definition:< / b > CoreCommonUtil.cpp:31< / div > < / div >
2022-11-26 18:19:17 +00:00
< / 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" > < b > GpgFunctionObject.h< / b > < / li >
2022-11-26 18:19:17 +00:00
< 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 >