libzypp  17.25.6
zypp::Option< Tp > Struct Template Reference

Mutable option. More...

Inheritance diagram for zypp::Option< 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 234 of file

Member Typedef Documentation

◆ value_type

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

Definition at line 236 of file

Constructor & Destructor Documentation

◆ Option()

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

No default ctor, explicit initialisation!

Definition at line 239 of file

Member Function Documentation

◆ get()

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

Get the value.

Definition at line 244 of file

◆ operator const value_type &()

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

Autoconversion to value_type.

Definition at line 248 of file

◆ set()

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

Set a new value.

Definition at line 252 of file

◆ ref()

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

Non-const reference to set a new value.

Definition at line 256 of file

Member Data Documentation

◆ _val

template<class Tp >
value_type zypp::Option< Tp >::_val

Definition at line 260 of file

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