libzypp 17.31.23
|
Architecture. More...
#include <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) | |
Related Functions | |
(Note that these are not member functions.) | |
template<> | |
bool | operator() (const zypp::Arch &lhs, const zypp::Arch &rhs) const |
Default order for std::container based Arch::compare. | |
Builtin architecture constants. | |
Defined outside Arch as e.g.
| |
const Arch | Arch_empty |
This is an empty Arch represented by an empty string. | |
const Arch | Arch_noarch |
const Arch | Arch_pentium4 |
const Arch | Arch_pentium3 |
const Arch | Arch_x86_64_v4 |
const Arch | Arch_x86_64_v3 |
const Arch | Arch_x86_64_v2 |
const Arch | Arch_x86_64 |
const Arch | Arch_athlon |
const Arch | Arch_i686 |
const Arch | Arch_i586 |
const Arch | Arch_i486 |
const Arch | Arch_i386 |
const Arch | Arch_s390x |
const Arch | Arch_s390 |
const Arch | Arch_ppc64le |
const Arch | Arch_ppc64p7 |
const Arch | Arch_ppc64 |
const Arch | Arch_ppc |
const Arch | Arch_ia64 |
const Arch | Arch_alphaev67 |
const Arch | Arch_alphaev6 |
const Arch | Arch_alphapca56 |
const Arch | Arch_alphaev56 |
const Arch | Arch_alphaev5 |
const Arch | Arch_alpha |
const Arch | Arch_sparc64v |
const Arch | Arch_sparc64 |
const Arch | Arch_sparcv9v |
const Arch | Arch_sparcv9 |
const Arch | Arch_sparcv8 |
const Arch | Arch_sparc |
const Arch | Arch_aarch64 |
const Arch | Arch_armv7tnhl |
const Arch | Arch_armv7thl |
const Arch | Arch_armv7hnl |
const Arch | Arch_armv7hl |
const Arch | Arch_armv6hl |
const Arch | Arch_armv8hl |
const Arch | Arch_armv8l |
const Arch | Arch_armv7l |
const Arch | Arch_armv6l |
const Arch | Arch_armv5tejl |
const Arch | Arch_armv5tel |
const Arch | Arch_armv5tl |
const Arch | Arch_armv5l |
const Arch | Arch_armv4tl |
const Arch | Arch_armv4l |
const Arch | Arch_armv3l |
const Arch | Arch_riscv64 |
const Arch | Arch_sh3 |
const Arch | Arch_sh4 |
const Arch | Arch_sh4a |
const Arch | Arch_m68k |
const Arch | Arch_mips |
const Arch | Arch_mipsel |
const Arch | Arch_mips64 |
const Arch | Arch_mips64el |
std::ostream & | operator<< (std::ostream &str, const Arch &obj) |
stream output. | |
std::ostream & | dumpAsXmlOn (std::ostream &str, const Arch &obj) |
XML output. | |
Equality based on string value. | |
bool | operator== (const Arch &lhs, const Arch &rhs) |
bool | operator== (const Arch &lhs, const std::string &rhs) |
bool | operator== (const std::string &lhs, const Arch &rhs) |
bool | operator!= (const Arch &lhs, const Arch &rhs) |
bool | operator!= (const Arch &lhs, const std::string &rhs) |
bool | operator!= (const std::string &lhs, const Arch &rhs) |
IdStringType like interface. | |
We can't use the complete IdStringType mixin until _doCompare can be redefined on any level, not just as char*. | |
typedef std::set< Arch, CompareByGT< Arch > > | CompatSet |
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 &) | |
typedef std::set<Arch,CompareByGT<Arch> > zypp::Arch::CompatSet |
|
explicit |
|
private |
IdString zypp::Arch::idStr | ( | ) | const |
const std::string & zypp::Arch::asString | ( | ) | const |
|
inline |
|
inline |
Test for an empty Arch (this is Arch_epmty, not Arch_noarch ).
|
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
.
|
inlinestatic |
|
related |
This is an empty Arch represented by an empty string.
Sometimes used to indicate an any or an unknown Arch. Don't confuse this with Arch_noarch, which is in fact an architecture.
|
related |
|
related |
|
related |
Default order for std::container based Arch::compare.
|
private |