libzypp
10.5.0
|
Enumeration class of dependency types. More...
#include <Dep.h>
Public Types | |
enum | for_use_in_switch { PROVIDES_e, PREREQUIRES_e, REQUIRES_e, CONFLICTS_e, OBSOLETES_e, RECOMMENDS_e, SUGGESTS_e, ENHANCES_e, SUPPLEMENTS_e } |
Enumarators provided only for use inSwitch statement. More... | |
Public Member Functions | |
Dep (const std::string &strval_r) | |
Ctor from string. | |
const std::string & | asString () const |
String representation of dependency type. | |
for_use_in_switch | inSwitch () const |
Enumarator provided for use in switch statement. | |
Static Public Attributes | |
Dependency types | |
These are the real dependency type contants to use. Don't mind that it's not an enum.
| |
static const Dep | PROVIDES |
static const Dep | PREREQUIRES |
static const Dep | REQUIRES |
static const Dep | CONFLICTS |
static const Dep | OBSOLETES |
static const Dep | RECOMMENDS |
static const Dep | SUGGESTS |
static const Dep | ENHANCES |
static const Dep | SUPPLEMENTS |
Private Member Functions | |
Dep (for_use_in_switch type_r) | |
Ctor to initialize the dependency type contants. | |
Private Attributes | |
for_use_in_switch | _type |
The operator. | |
Friends | |
bool | operator== (const Dep &lhs, const Dep &rhs) |
bool | operator!= (const Dep &lhs, const Dep &rhs) |
bool | operator< (const Dep &lhs, const Dep &rhs) |
Arbitrary order to allow Dep as key in std::container. | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const Dep &obj) |
bool | operator== (const Dep &lhs, const Dep &rhs) |
bool | operator!= (const Dep &lhs, const Dep &rhs) |
bool | operator< (const Dep &lhs, const Dep &rhs) |
zypp::Dep::Dep | ( | const std::string & | strval_r | ) | [explicit] |
zypp::Dep::Dep | ( | for_use_in_switch | type_r | ) | [inline, private] |
const std::string & zypp::Dep::asString | ( | ) | const |
for_use_in_switch zypp::Dep::inSwitch | ( | ) | const [inline] |
Arbitrary order to allow Dep as key in std::container.
std::ostream & operator<< | ( | std::ostream & | str, |
const Dep & | obj | ||
) | [related] |
const Dep zypp::Dep::PROVIDES [static] |
const Dep zypp::Dep::PREREQUIRES [static] |
const Dep zypp::Dep::REQUIRES [static] |
const Dep zypp::Dep::CONFLICTS [static] |
const Dep zypp::Dep::OBSOLETES [static] |
const Dep zypp::Dep::RECOMMENDS [static] |
const Dep zypp::Dep::SUGGESTS [static] |
const Dep zypp::Dep::ENHANCES [static] |
const Dep zypp::Dep::SUPPLEMENTS [static] |
for_use_in_switch zypp::Dep::_type [private] |