libzypp
13.10.6
|
Mutable option with initial value also remembering a config value. More...
Public Types | |
typedef _Tp | value_type |
typedef Option< _Tp > | option_type |
Public Types inherited from zypp::Option< _Tp > | |
typedef _Tp | value_type |
Public Member Functions | |
DefaultOption (const value_type &initial_r) | |
void | restoreToDefault () |
Reset value to the current default. More... | |
void | restoreToDefault (const value_type &newval_r) |
Reset value to a new default. More... | |
const value_type & | getDefault () const |
Get the current default value. More... | |
void | setDefault (const value_type &newval_r) |
Set a new default value. More... | |
Public Member Functions inherited from zypp::Option< _Tp > | |
Option (const value_type &initial_r) | |
No default ctor, explicit initialisation! More... | |
const value_type & | get () const |
Get the value. More... | |
operator const value_type & () const | |
Autoconversion to value_type. More... | |
void | set (const value_type &newval_r) |
Set a new value. More... | |
value_type & | ref () |
Non-const reference to set a new value. More... | |
Private Attributes | |
option_type | _default |
Mutable option with initial value also remembering a config value.
Definition at line 250 of file ZConfig.cc.
typedef _Tp zypp::DefaultOption< _Tp >::value_type |
Definition at line 252 of file ZConfig.cc.
typedef Option<_Tp> zypp::DefaultOption< _Tp >::option_type |
Definition at line 253 of file ZConfig.cc.
|
inline |
Definition at line 255 of file ZConfig.cc.
|
inline |
Reset value to the current default.
Definition at line 260 of file ZConfig.cc.
|
inline |
Reset value to a new default.
Definition at line 264 of file ZConfig.cc.
|
inline |
Get the current default value.
Definition at line 268 of file ZConfig.cc.
|
inline |
Set a new default value.
Definition at line 272 of file ZConfig.cc.
|
private |
Definition at line 276 of file ZConfig.cc.