userver: dynamic_config::VariableSnapshotPtr< Key > Class Template Reference
Loading...
Searching...
No Matches
dynamic_config::VariableSnapshotPtr< Key > Class Template Referencefinal

#include <userver/dynamic_config/source.hpp>

Public Member Functions

 VariableSnapshotPtr (VariableSnapshotPtr &&)=delete
 
VariableSnapshotPtroperator= (VariableSnapshotPtr &&)=delete
 
const VariableOfKey< Key > & operator* () const &
 
const VariableOfKey< Key > & operator* () &&
 
const VariableOfKey< Key > * operator-> () const &
 
const VariableOfKey< Key > * operator-> () &&
 

Friends

class Source
 

Detailed Description

template<typename Key>
class dynamic_config::VariableSnapshotPtr< Key >

Owns a snapshot of a config variable. You may use operator* or operator-> to access the config variable.

VariableSnapshotPtr in only intended to be used locally. Don't store it as a class member or pass it between functions. Use Snapshot for that purpose.

Definition at line 25 of file source.hpp.

Member Function Documentation

◆ operator*() [1/2]

template<typename Key >
const VariableOfKey< Key > & dynamic_config::VariableSnapshotPtr< Key >::operator* ( ) &&
inline

Definition at line 31 of file source.hpp.

◆ operator*() [2/2]

template<typename Key >
const VariableOfKey< Key > & dynamic_config::VariableSnapshotPtr< Key >::operator* ( ) const &
inline

Definition at line 30 of file source.hpp.

◆ operator->() [1/2]

template<typename Key >
const VariableOfKey< Key > * dynamic_config::VariableSnapshotPtr< Key >::operator-> ( ) &&
inline

Definition at line 34 of file source.hpp.

◆ operator->() [2/2]

template<typename Key >
const VariableOfKey< Key > * dynamic_config::VariableSnapshotPtr< Key >::operator-> ( ) const &
inline

Definition at line 33 of file source.hpp.

Friends And Related Symbol Documentation

◆ Source

template<typename Key >
friend class Source
friend

Definition at line 45 of file source.hpp.


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