libzypp  13.10.6
zypp::Option< _Tp > Struct Template Reference

Mutable option. More...

Inheritance diagram for zypp::Option< _Tp >:
zypp::DefaultOption< _Tp >

Public Types

typedef _Tp value_type
 

Public Member Functions

 Option (const value_type &initial_r)
 No default ctor, explicit initialisation! More...
 
const value_typeget () 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_typeref ()
 Non-const reference to set a new value. More...
 

Private Attributes

value_type _val
 

Detailed Description

template<class _Tp>
struct zypp::Option< _Tp >

Mutable option.

Definition at line 219 of file ZConfig.cc.

Member Typedef Documentation

template<class _Tp>
typedef _Tp zypp::Option< _Tp >::value_type

Definition at line 221 of file ZConfig.cc.

Constructor & Destructor Documentation

template<class _Tp>
zypp::Option< _Tp >::Option ( const value_type initial_r)
inline

No default ctor, explicit initialisation!

Definition at line 224 of file ZConfig.cc.

Member Function Documentation

template<class _Tp>
const value_type& zypp::Option< _Tp >::get ( ) const
inline

Get the value.

Definition at line 229 of file ZConfig.cc.

template<class _Tp>
zypp::Option< _Tp >::operator const value_type & ( ) const
inline

Autoconversion to value_type.

Definition at line 233 of file ZConfig.cc.

template<class _Tp>
void zypp::Option< _Tp >::set ( const value_type newval_r)
inline

Set a new value.

Definition at line 237 of file ZConfig.cc.

template<class _Tp>
value_type& zypp::Option< _Tp >::ref ( )
inline

Non-const reference to set a new value.

Definition at line 241 of file ZConfig.cc.

Member Data Documentation

template<class _Tp>
value_type zypp::Option< _Tp >::_val
private

Definition at line 245 of file ZConfig.cc.


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