GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgFrontend::SingletonStorageCollection::Impl Class Reference
Collaboration diagram for GpgFrontend::SingletonStorageCollection::Impl:
Collaboration graph

Public Member Functions

auto GetSingletonStorage (const std::type_info &type_id) -> SingletonStorage *
 Get the Singleton Storage object. More...
 

Static Public Member Functions

static auto GetInstance (bool force_refresh) -> SingletonStorageCollection *
 Get the Instance object. More...
 
static void Destroy ()
 Get the Instance object. More...
 

Private Attributes

std::shared_mutex storages_mutex_
 mutex for storages_map_
 
std::map< size_t, SingletonStoragePtr > storages_map_
 

Member Function Documentation

◆ Destroy()

static void GpgFrontend::SingletonStorageCollection::Impl::Destroy ( )
inlinestatic

Get the Instance object.

Returns
SingletonStorageCollection*

◆ GetInstance()

static auto GpgFrontend::SingletonStorageCollection::Impl::GetInstance ( bool  force_refresh) -> SingletonStorageCollection*
inlinestatic

Get the Instance object.

Returns
SingletonStorageCollection*

◆ GetSingletonStorage()

auto GpgFrontend::SingletonStorageCollection::Impl::GetSingletonStorage ( const std::type_info &  type_id) -> SingletonStorage*
inline

Get the Singleton Storage object.

Parameters
singleton_function_object
Returns
SingletonStorage*

References storages_mutex_.


The documentation for this class was generated from the following file: