An application wide registry that can store objects of any type.
More...
#include <GlobalRegistry.hpp>
|
| template<typename T > |
| static T | get (const KeyType &key) |
| |
| template<typename T > |
| static void | set (const KeyType &key, const T &obj) |
| |
| template<typename T > |
| static void | set (const KeyType &key, const T &obj, const std::chrono::steady_clock::time_point &expire_at) |
| |
| static void | erase (const KeyType &key) |
| |
| static bool | has (const KeyType &key) |
| |
An application wide registry that can store objects of any type.
Definition at line 33 of file GlobalRegistry.hpp.
◆ Clock
◆ KeyType
◆ UnderlyingRegistry
◆ erase()
| static void Leosac::GlobalRegistry::erase |
( |
const KeyType & |
key | ) |
|
|
inlinestatic |
◆ get()
template<typename T >
| static T Leosac::GlobalRegistry::get |
( |
const KeyType & |
key | ) |
|
|
inlinestatic |
◆ has()
| static bool Leosac::GlobalRegistry::has |
( |
const KeyType & |
key | ) |
|
|
inlinestatic |
◆ set() [1/2]
template<typename T >
| static void Leosac::GlobalRegistry::set |
( |
const KeyType & |
key, |
|
|
const T & |
obj |
|
) |
| |
|
inlinestatic |
◆ set() [2/2]
template<typename T >
| static void Leosac::GlobalRegistry::set |
( |
const KeyType & |
key, |
|
|
const T & |
obj, |
|
|
const std::chrono::steady_clock::time_point & |
expire_at |
|
) |
| |
|
inlinestatic |
◆ mutex_
| std::mutex Leosac::GlobalRegistry::mutex_ |
|
staticprivate |
◆ registry_
The documentation for this class was generated from the following files: