The storage for a snapshot of configs. More...
#include <userver/dynamic_config/snapshot.hpp>
Public Member Functions | |
Snapshot (const Snapshot &) | |
Snapshot & | operator= (const Snapshot &) |
Snapshot (Snapshot &&) noexcept | |
Snapshot & | operator= (Snapshot &&) noexcept |
template<typename Key > | |
const VariableOfKey< Key > & | operator[] (Key key) const & |
Used to access individual configs in the type-safe config map. | |
template<typename Key > | |
const VariableOfKey< Key > & | operator[] (Key) && |
Used to access individual configs in the type-safe config map. | |
template<typename T > | |
const T & | Get () const & |
Deprecated, use config[key] instead. | |
template<typename T > | |
const T & | Get () && |
Deprecated, use config[key] instead. | |
Friends | |
class | Source |
The storage for a snapshot of configs.
When a config update comes in via new DocsMap
, configs of all the registered types are constructed and stored in Config
. After that the DocsMap
is dropped.
Config types are automatically registered if they are accessed with Get
somewhere in the program.
Definition at line 42 of file snapshot.hpp.
|
inline |
Deprecated, use config[key]
instead.
Definition at line 72 of file snapshot.hpp.
|
inline |
Deprecated, use config[key]
instead.
Definition at line 66 of file snapshot.hpp.
|
inline |
Used to access individual configs in the type-safe config map.
Definition at line 54 of file snapshot.hpp.
|
inline |
Used to access individual configs in the type-safe config map.
Definition at line 60 of file snapshot.hpp.
|
friend |
Definition at line 82 of file snapshot.hpp.