#include <MediaPriority.h>
Public Types | |
typedef int | value_type |
Public Member Functions | |
MediaPriority () | |
Default ctor. | |
MediaPriority (value_type val_r) | |
Copy ctor. | |
MediaPriority (const std::string &scheme_r) | |
Ctor from scheme string. | |
MediaPriority (const Url &url_r) | |
Ctor from scheme string defined by Url. | |
MediaPriority & | operator= (value_type rhs) |
Assign. | |
MediaPriority & | operator= (const std::string &scheme_r) |
Assign priority of scheme string. | |
MediaPriority & | operator= (const Url &url_r) |
Assign priority of scheme string defined by Url. | |
value_type & | get () |
Conversion to value_type. | |
const value_type & | get () const |
Explicit. | |
operator value_type & () | |
Implicit. | |
operator const value_type & () const | |
Implicit. | |
Private Attributes | |
value_type | _val |
The class is simple. Constructable and assignable from Url or scheme string. Implicit convertible into a numic value_type.
if ( MediaPriority("cd") \< MediaPriority("ftp") ) ...
Definition at line 43 of file MediaPriority.h.
typedef int zypp::media::MediaPriority::value_type |
Definition at line 46 of file MediaPriority.h.
zypp::media::MediaPriority::MediaPriority | ( | ) | [inline] |
Default ctor.
Least priority 0
.
Definition at line 50 of file MediaPriority.h.
Referenced by operator=().
zypp::media::MediaPriority::MediaPriority | ( | value_type | val_r | ) | [inline] |
zypp::media::MediaPriority::MediaPriority | ( | const std::string & | scheme_r | ) |
zypp::media::MediaPriority::MediaPriority | ( | const Url & | url_r | ) |
MediaPriority& zypp::media::MediaPriority::operator= | ( | value_type | rhs | ) | [inline] |
MediaPriority& zypp::media::MediaPriority::operator= | ( | const std::string & | scheme_r | ) | [inline] |
Assign priority of scheme string.
Definition at line 71 of file MediaPriority.h.
References _val, and MediaPriority().
MediaPriority& zypp::media::MediaPriority::operator= | ( | const Url & | url_r | ) | [inline] |
Assign priority of scheme string defined by Url.
Definition at line 75 of file MediaPriority.h.
References _val, and MediaPriority().
value_type& zypp::media::MediaPriority::get | ( | ) | [inline] |
const value_type& zypp::media::MediaPriority::get | ( | ) | const [inline] |
zypp::media::MediaPriority::operator value_type & | ( | ) | [inline] |
zypp::media::MediaPriority::operator const value_type & | ( | ) | const [inline] |
value_type zypp::media::MediaPriority::_val [private] |