#include <CapMatch.h>
Public Member Functions | |
CapMatch () | |
CapMatch (bool val_r) | |
Static Public Attributes | |
static const CapMatch | yes |
static const CapMatch | no |
static const CapMatch | irrelevant |
Private Types | |
enum | Result { NOMATCH, MATCH, IRRELEVANT } |
Private Attributes | |
Result | _result |
Friends | |
bool | operator== (const CapMatch &lhs, const CapMatch &rhs) |
bool | operator!= (const CapMatch &lhs, const CapMatch &rhs) |
CapMatch | operator! (const CapMatch &lhs) |
CapMatch | operator&& (const CapMatch &lhs, const CapMatch &rhs) |
CapMatch | operator|| (const CapMatch &lhs, const CapMatch &rhs) |
std::ostream & | operator<< (std::ostream &str, const CapMatch &obj) |
CapMatch::irrelevant denotes a result value that should be ignored. Therfore it behaves neutral when used in ! && ||
expressions.
CapMatch any (CapMatch::irrelevant && any) == any // true (CapMatch::irrelevant || any) == any // true ( !CapMatch::irrelevant ) == CapMatch::irrelevant // true
Definition at line 37 of file CapMatch.h.
enum zypp::CapMatch::Result [private] |
zypp::CapMatch::CapMatch | ( | ) | [inline] |
Definition at line 43 of file CapMatch.h.
zypp::CapMatch::CapMatch | ( | bool | val_r | ) | [inline] |
Definition at line 47 of file CapMatch.h.
Definition at line 55 of file CapMatch.h.
Definition at line 58 of file CapMatch.h.
Definition at line 61 of file CapMatch.h.
Definition at line 68 of file CapMatch.h.
Definition at line 78 of file CapMatch.h.
std::ostream & operator<< | ( | std::ostream & | str, | |
const CapMatch & | obj | |||
) | [friend] |
Stream output
Definition at line 32 of file CapMatch.cc.
const CapMatch zypp::CapMatch::yes [static] |
Definition at line 51 of file CapMatch.h.
Referenced by zypp::Capability::_doMatch(), and zypp::solver::detail::InstallOrder::doesProvide().
const CapMatch zypp::CapMatch::no [static] |
const CapMatch zypp::CapMatch::irrelevant [static] |
Result zypp::CapMatch::_result [private] |