libzypp 17.35.9
|
Architecture. More...
#include <zypp/Arch.h>
Classes | |
struct | CompatEntry |
Holds an architecture ID and its compatible relation. More... | |
Public Member Functions | |
Arch () | |
Default ctor Arc_noarch. | |
Arch (IdString::IdType id_r) | |
Ctor taking Arch as string. | |
Arch (const IdString &idstr_r) | |
Arch (const std::string &str_r) | |
Arch (const char *cstr_r) | |
IdStringType like interface. | |
We can't use the complete IdStringType mixin until _doCompare can be redefined on any level, not just as char*. | |
using | CompatSet = std::set<Arch, CompareByGT<Arch>> |
Reversed arch order, best Arch first. | |
const CompatEntry * | _entry |
IdString | idStr () const |
String representation of Arch. | |
const std::string & | asString () const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
const char * | c_str () const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
bool | empty () const |
Test for an empty Arch (this is Arch_epmty, not Arch_noarch ). | |
unsigned | size () const |
Size of the string representation. | |
IdString::IdType | id () const |
Expert backdoor. | |
bool | isBuiltIn () const |
Whether this is a buitin (or known) architecture. | |
bool | compatibleWith (const Arch &targetArch_r) const |
Compatibility relation. | |
Arch | baseArch () const |
int | compare (const Arch &rhs) const |
Arch comparison. | |
static Arch | baseArch (const Arch &targetArch_r) |
static int | compare (const Arch &lhs, const Arch &rhs) |
Arch comparison (static version). | |
static CompatSet | compatSet (const Arch &targetArch_r) |
Return a set of all Arch's compatibleWith a targetArch_r. | |
static std::string | asString (const CompatSet &cset) |
Arch (const CompatEntry &) | |
using zypp::Arch::CompatSet = std::set<Arch, CompareByGT<Arch>> |
|
explicit |
|
private |
IdString zypp::Arch::idStr | ( | ) | const |
const std::string & zypp::Arch::asString | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
bool zypp::Arch::isBuiltIn | ( | ) | const |
Whether this is a buitin (or known) architecture.
Used e.g. in Capability to determine whether some trailing ".string"
is part ot the name or restriction to an architecture.
Compatibility relation.
True
iff this
is compatible with targetArch_r. Arch zypp::Arch::baseArch | ( | ) | const |
int zypp::Arch::compare | ( | const Arch & | rhs | ) | const |
|
static |
Return a set of all Arch's compatibleWith a targetArch_r.
Arch_noarch
.
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
Default order for std::container based Arch::compare.
|
private |