GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
Public Member Functions | |
void | ReleaseChannel (int channel) |
ChannelObject * | FindObjectInChannel (int channel) |
std::vector< int > | GetAllChannelId () |
Get all the channel ids. More... | |
ChannelObject * | SetObjectInChannel (int channel, std::unique_ptr< ChannelObject > p_obj) |
Set a new object in channel object. More... | |
Private Attributes | |
std::shared_mutex | instances_mutex_ |
mutex for _instances_map | |
std::map< int, std::unique_ptr< ChannelObject > > | instances_map_ |
map of singleton instances | |
GpgFrontend::ChannelObject * GpgFrontend::SingletonStorage::FindObjectInChannel | ( | int | channel | ) |
channel |
std::vector< int > GpgFrontend::SingletonStorage::GetAllChannelId | ( | ) |
Get all the channel ids.
Referenced by GpgFrontend::SingletonFunctionObject< GpgContext >::GetAllChannelId().
void GpgFrontend::SingletonStorage::ReleaseChannel | ( | int | channel | ) |
channel |
Referenced by GpgFrontend::SingletonFunctionObject< GpgContext >::ReleaseChannel().
GpgFrontend::ChannelObject * GpgFrontend::SingletonStorage::SetObjectInChannel | ( | int | channel, |
std::unique_ptr< ChannelObject > | p_obj | ||
) |
Set a new object in channel object.
channel | |
p_obj |
References GpgFrontend::ChannelObject::SetChannel().