zypp::Option< _Tp > Struct Template Reference

Mutable option. More...

Inheritance diagram for zypp::Option< _Tp >:
[legend]

List of all members.

Public Types

typedef _Tp value_type

Public Member Functions

 Option (const value_type &initial_r)
 No default ctor, explicit initialisation!
const value_typeget () const
 Get the value.
 operator const value_type & () const
 Autoconversion to value_type.
void set (const value_type &newval_r)
 Set a new value.
value_typeref ()
 Non-const reference to set a new value.

Private Attributes

value_type _val

Detailed Description

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

Mutable option.

Definition at line 176 of file ZConfig.cc.


Member Typedef Documentation

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

Constructor & Destructor Documentation

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

No default ctor, explicit initialisation!

Definition at line 181 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 186 of file ZConfig.cc.

Referenced by zypp::DefaultOption< bool >::getDefault(), and zypp::DefaultOption< bool >::restoreToDefault().

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

Autoconversion to value_type.

Definition at line 190 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 194 of file ZConfig.cc.

Referenced by zypp::ZConfig::Impl::Impl(), and zypp::DefaultOption< bool >::setDefault().

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

Non-const reference to set a new value.

Definition at line 198 of file ZConfig.cc.


Member Data Documentation

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

The documentation for this struct was generated from the following file:
Generated on Fri Mar 2 09:46:12 2012 for libzypp by  doxygen 1.6.3