|
libzypp 17.38.6
|
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) | |
Static Public Member Functions | |
| static Arch | detectSystemArchitecture () |
Determine system architecture evaluating uname and /proc/cpuinfo. | |
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. | |
| Arch (const CompatEntry &) | |
| static std::string | asString (const CompatSet &cset) |
| 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. | |
| using zypp::Arch::CompatSet = std::set<Arch, CompareByGT<Arch>> |
| zypp::Arch::Arch | ( | ) |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
private |
|
static |
| IdString zypp::Arch::idStr | ( | ) | const |
| const std::string & zypp::Arch::asString | ( | ) | const |
|
inlinestatic |
|
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.
| bool zypp::Arch::compatibleWith | ( | const Arch & | targetArch_r | ) | const |
| Arch zypp::Arch::baseArch | ( | ) | const |
|
inlinestatic |
| int zypp::Arch::compare | ( | const Arch & | rhs | ) | const |
|
inlinestatic |
|
static |
Return a set of all Arch's compatibleWith a targetArch_r.
Arch_noarch.
|
private |