Architecture.
More...
#include <zypp/Arch.h>
Architecture.
Definition at line 36 of file Arch.h.
◆ CompatSet
Reversed arch order, best Arch first.
Definition at line 122 of file Arch.h.
◆ Arch() [1/6]
Default ctor Arc_noarch.
Definition at line 681 of file Arch.cc.
◆ Arch() [2/6]
◆ Arch() [3/6]
| zypp::Arch::Arch |
( |
const IdString & | idstr_r | ) |
|
|
explicit |
◆ Arch() [4/6]
| zypp::Arch::Arch |
( |
const std::string & | str_r | ) |
|
|
explicit |
◆ Arch() [5/6]
| zypp::Arch::Arch |
( |
const char * | cstr_r | ) |
|
|
explicit |
◆ Arch() [6/6]
◆ detectSystemArchitecture()
| Arch zypp::Arch::detectSystemArchitecture |
( |
| ) |
|
|
static |
Determine system architecture evaluating uname and /proc/cpuinfo.
Definition at line 701 of file Arch.cc.
◆ idStr()
String representation of Arch.
Definition at line 716 of file Arch.cc.
◆ asString() [1/2]
| const std::string & zypp::Arch::asString |
( |
| ) |
const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 724 of file Arch.cc.
◆ c_str()
| const char * zypp::Arch::c_str |
( |
| ) |
const |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 64 of file Arch.h.
◆ empty()
| bool zypp::Arch::empty |
( |
| ) |
const |
|
inline |
Test for an empty Arch (this is Arch_epmty, not Arch_noarch ).
Definition at line 68 of file Arch.h.
◆ size()
| unsigned zypp::Arch::size |
( |
| ) |
const |
|
inline |
Size of the string representation.
Definition at line 72 of file Arch.h.
◆ id()
Expert backdoor.
Definition at line 76 of file Arch.h.
◆ isBuiltIn()
| 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.
Definition at line 732 of file Arch.cc.
◆ compatibleWith()
| bool zypp::Arch::compatibleWith |
( |
const Arch & | targetArch_r | ) |
const |
Compatibility relation.
- Returns
True iff this is compatible with targetArch_r. Arch_noarch.compatibleWith( ... ) ==> always true;
Arch_i686.compatibleWith( Arch_x86_64 ) ==> true;
Arch_x86_64.compatibleWith( Arch_i686 ) ==> false;
Definition at line 740 of file Arch.cc.
◆ baseArch() [1/2]
| Arch zypp::Arch::baseArch |
( |
| ) |
const |
- Returns
- the arch before noarch if it's not a multilib arch (e.g. x86_64,sparc64v,sparc64,ppc64,s390x).
Definition at line 748 of file Arch.cc.
◆ baseArch() [2/2]
| Arch zypp::Arch::baseArch |
( |
const Arch & | targetArch_r | ) |
|
|
inlinestatic |
◆ compare() [1/2]
| int zypp::Arch::compare |
( |
const Arch & | rhs | ) |
const |
Arch comparison.
Compatible architectures are treated as less (i.e. i686>i386>noarch). So Arch_noarch is the least Arch. Equivalent architectures (compatible in both directions) are ordered arbitrary.
Definition at line 785 of file Arch.cc.
◆ compare() [2/2]
| int zypp::Arch::compare |
( |
const Arch & | lhs, |
|
|
const Arch & | rhs ) |
|
inlinestatic |
Arch comparison (static version).
Definition at line 117 of file Arch.h.
◆ compatSet()
Return a set of all Arch's compatibleWith a targetArch_r.
- Note
- The set is ordered according to compare, thus iterating will start at targetArch_r and end with
Arch_noarch.
<< endl;
static CompatSet compatSet(const Arch &targetArch_r)
Return a set of all Arch's compatibleWith a targetArch_r.
const std::string & asString() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::set< Arch, CompareByGT< Arch > > CompatSet
Reversed arch order, best Arch first.
std::string join(TIterator begin, TIterator end, const C_Str &sep_r=" ")
Join strings using separator sep_r (defaults to BLANK).
Definition at line 793 of file Arch.cc.
◆ asString() [2/2]
| std::string zypp::Arch::asString |
( |
const CompatSet & | cset | ) |
|
|
inlinestatic |
◆ _entry
The documentation for this class was generated from the following files: