proxygen
|
Classes | |
class | SettingCore |
class | SettingWrapper |
class | SnapshotSettingWrapper |
struct | TypeIdentity |
Typedefs | |
template<class T > | |
using | TypeIdentityT = typename TypeIdentity< T >::type |
Functions | |
if (savedValue) | |
return core | getSlow () |
template<class T > | |
void | set (detail::SettingCore< T > &core, const T &t, StringPiece reason) |
template<class T > | |
std::enable_if_t< std::is_constructible< T, StringPiece >::value, T > | convertOrConstruct (StringPiece newValue) |
template<class T > | |
std::enable_if_t<!std::is_constructible< T, StringPiece >::value, T > | convertOrConstruct (StringPiece newValue) |
void | registerSetting (SettingCoreBase &core) |
auto & | getSavedValuesMutex () |
auto & | getSavedValues () |
SettingCoreBase::Version | nextGlobalVersion () |
void | saveValueForOutstandingSnapshots (SettingCoreBase::Key settingKey, SettingCoreBase::Version version, const BoxedValue &value) |
const BoxedValue *FOLLY_NULLABLE | getSavedValue (SettingCoreBase::Key settingKey, SettingCoreBase::Version at) |
Variables | |
template<class T > | |
auto | savedValue = detail::getSavedValue(core.getKey(), at_) |
std::atomic< SettingCoreBase::Version > | gGlobalVersion_ |
using folly::settings::detail::TypeIdentityT = typedef typename TypeIdentity<T>::type |
Definition at line 89 of file Settings.h.
std::enable_if_t<std::is_constructible<T, StringPiece>::value, T> folly::settings::detail::convertOrConstruct | ( | StringPiece | newValue | ) |
Definition at line 239 of file SettingsImpl.h.
std::enable_if_t<!std::is_constructible<T, StringPiece>::value, T> folly::settings::detail::convertOrConstruct | ( | StringPiece | newValue | ) |
Definition at line 244 of file SettingsImpl.h.
const BoxedValue* FOLLY_NULLABLE folly::settings::detail::getSavedValue | ( | SettingCoreBase::Key | settingKey, |
SettingCoreBase::Version | at | ||
) |
Definition at line 142 of file Settings.cpp.
References folly::test::end(), getSavedValues(), getSavedValuesMutex(), and gGlobalVersion_.
auto& folly::settings::detail::getSavedValues | ( | ) |
Definition at line 117 of file Settings.cpp.
Referenced by getSavedValue(), and saveValueForOutstandingSnapshots().
auto& folly::settings::detail::getSavedValuesMutex | ( | ) |
Definition at line 111 of file Settings.cpp.
Referenced by getSavedValue(), and saveValueForOutstandingSnapshots().
return core folly::settings::detail::getSlow | ( | ) |
folly::settings::detail::if | ( | savedValue | ) |
SettingCoreBase::Version folly::settings::detail::nextGlobalVersion | ( | ) |
Definition at line 125 of file Settings.cpp.
Referenced by folly::settings::detail::SettingCore< T >::set().
void folly::settings::detail::registerSetting | ( | SettingCoreBase & | core | ) |
Definition at line 33 of file Settings.cpp.
References folly::gen::move.
Referenced by folly::settings::detail::SettingCore< T >::SettingCore().
void folly::settings::detail::saveValueForOutstandingSnapshots | ( | SettingCoreBase::Key | settingKey, |
SettingCoreBase::Version | version, | ||
const BoxedValue & | value | ||
) |
Definition at line 129 of file Settings.cpp.
References FOLLY_NULLABLE, getSavedValues(), getSavedValuesMutex(), and folly::value().
Referenced by folly::settings::detail::SettingCore< T >::set().
void folly::settings::detail::set | ( | detail::SettingCore< T > & | core, |
const T & | t, | ||
StringPiece | reason | ||
) |
std::atomic<SettingCoreBase::Version> folly::settings::detail::gGlobalVersion_ |
Definition at line 109 of file Settings.cpp.
Referenced by getSavedValue().
auto folly::settings::detail::savedValue = detail::getSavedValue(core.getKey(), at_) |
Can we store T in a global atomic?
Definition at line 224 of file SettingsImpl.h.
Referenced by if().