#include <config.hpp>
Public Member Functions | |
optional_config_impl ()=default | |
optional_config_impl (T &ref) | |
optional_config_impl (utils::nullopt_t) | |
T & | value () const |
optional_config_impl< T > & | operator= (T &new_ref) |
bool | has_value () const |
operator bool () const | |
operator optional_config_impl< const T > () const | |
T * | ptr () const |
Returns a pointer to the referenced object or nullptr if no reference is held. More... | |
T * | operator-> () const |
T & | operator* () const |
utils::const_clone_t< config_attribute_value, T > & | operator[] (config_key_type key) |
operator utils::optional_reference< T > () const | |
bool | tested () const |
Private Attributes | |
T * | opt_ |
Definition at line 68 of file config.hpp.
|
default |
|
inline |
Definition at line 73 of file config.hpp.
|
inline |
Definition at line 78 of file config.hpp.
|
inline |
Definition at line 100 of file config.hpp.
Referenced by optional_config_impl< T >::operator bool(), and optional_config_impl< const config >::operator utils::optional_reference< const config >().
|
inlineexplicit |
Definition at line 109 of file config.hpp.
References optional_config_impl< T >::has_value().
|
inline |
Definition at line 114 of file config.hpp.
|
inline |
Definition at line 147 of file config.hpp.
|
inline |
Definition at line 135 of file config.hpp.
References optional_config_impl< T >::tested(), and optional_config_impl< T >::value().
|
inline |
Definition at line 129 of file config.hpp.
References optional_config_impl< T >::tested(), and optional_config_impl< T >::value().
|
inline |
Definition at line 94 of file config.hpp.
|
inline |
Definition at line 141 of file config.hpp.
References optional_config_impl< T >::tested(), and optional_config_impl< T >::value().
|
inline |
Returns a pointer to the referenced object or nullptr if no reference is held.
Definition at line 120 of file config.hpp.
References optional_config_impl< T >::value().
|
inline |
Definition at line 151 of file config.hpp.
Referenced by optional_config_impl< T >::operator*(), optional_config_impl< T >::operator->(), and optional_config_impl< T >::operator[]().
|
inline |
Definition at line 83 of file config.hpp.
References optional_config_impl< T >::opt_.
Referenced by optional_config_impl< const config >::operator utils::optional_reference< const config >(), optional_config_impl< T >::operator*(), optional_config_impl< T >::operator->(), optional_config_impl< T >::operator[](), game_config_view::optional_child(), and optional_config_impl< T >::ptr().
|
private |
Definition at line 160 of file config.hpp.
Referenced by optional_config_impl< T >::value().