libzypp
10.5.0
|
Architecture. More...
#include <Arch.h>
Classes | |
struct | CompatEntry |
Holds an architecture ID and it's compatible relation. More... | |
Public Types | |
typedef std::set< Arch, CompareByGT< Arch > > | CompatSet |
Reversed arch order, best Arch first. | |
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) | |
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. | |
IdStringType like interface. | |
We can't use the complete IdStringType mixin until _doCompare can be redefined on any level, not just as char*. | |
IdString | idStr () const |
String representation of Arch. | |
const std::string & | asString () const |
const char * | c_str () const |
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. | |
Static Public Member Functions | |
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) |
Private Member Functions | |
Arch (const CompatEntry &) | |
Private Attributes | |
const CompatEntry * | _entry |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const Arch &obj) |
template<> | |
bool | operator() (const zypp::Arch &lhs, const zypp::Arch &rhs) const |
Builtin architecture constants. | |
Defined outside Arch as e.g.
| |
const Arch | Arch_empty |
const Arch | Arch_noarch |
const Arch | Arch_pentium4 |
const Arch | Arch_pentium3 |
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_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_armv7tnhl |
const Arch | Arch_armv7thl |
const Arch | Arch_armv7nhl |
const Arch | Arch_armv7hl |
const Arch | Arch_armv7l |
const Arch | Arch_armv6l |
const Arch | Arch_armv5tejl |
const Arch | Arch_armv5tel |
const Arch | Arch_armv5l |
const Arch | Arch_armv4tl |
const Arch | Arch_armv4l |
const Arch | Arch_armv3l |
const Arch | Arch_sh3 |
const Arch | Arch_sh4 |
const Arch | Arch_sh4a |
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) |
typedef std::set<Arch,CompareByGT<Arch> > zypp::Arch::CompatSet |
zypp::Arch::Arch | ( | IdString::IdType | id_r | ) | [explicit] |
zypp::Arch::Arch | ( | const CompatEntry & | rhs | ) | [private] |
IdString zypp::Arch::idStr | ( | ) | const |
const std::string & zypp::Arch::asString | ( | ) | const |
const char* zypp::Arch::c_str | ( | ) | const [inline] |
bool zypp::Arch::empty | ( | ) | const [inline] |
Test for an empty Arch (this is Arch_epmty, not Arch_noarch ).
unsigned zypp::Arch::size | ( | ) | const [inline] |
IdString::IdType zypp::Arch::id | ( | ) | const [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 |
Compatibility relation.
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;
Arch zypp::Arch::baseArch | ( | ) | const |
int zypp::Arch::compare | ( | const Arch & | rhs | ) | const |
Arch::CompatSet zypp::Arch::compatSet | ( | const Arch & | targetArch_r | ) | [static] |
Return a set of all Arch's compatibleWith a targetArch_r.
Arch_noarch
. Arch::CompatSet cset( Arch::compatSet( Arch_x86_64 ) ); cout << str::join( make_transform_iterator( cset.begin(), std::mem_fun_ref(&Arch::asString) ), make_transform_iterator( cset.end(), std::mem_fun_ref(&Arch::asString) ) ) << endl; // Prints: x86_64 athlon i686 i586 i486 i386 noarch
static std::string zypp::Arch::asString | ( | const CompatSet & | cset | ) | [inline, static] |
const Arch Arch_empty [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.
const Arch Arch_noarch [related] |
const Arch Arch_pentium4 [related] |
const Arch Arch_pentium3 [related] |
const Arch Arch_x86_64 [related] |
const Arch Arch_athlon [related] |
const Arch Arch_s390x [related] |
const Arch Arch_ppc64 [related] |
const Arch Arch_alphaev67 [related] |
const Arch Arch_alphaev6 [related] |
const Arch Arch_alphapca56 [related] |
const Arch Arch_alphaev56 [related] |
const Arch Arch_alphaev5 [related] |
const Arch Arch_alpha [related] |
const Arch Arch_sparc64v [related] |
const Arch Arch_sparc64 [related] |
const Arch Arch_sparcv9v [related] |
const Arch Arch_sparcv9 [related] |
const Arch Arch_sparcv8 [related] |
const Arch Arch_sparc [related] |
const Arch Arch_armv7tnhl [related] |
const Arch Arch_armv7thl [related] |
const Arch Arch_armv7nhl [related] |
const Arch Arch_armv7hl [related] |
const Arch Arch_armv7l [related] |
const Arch Arch_armv6l [related] |
const Arch Arch_armv5tejl [related] |
const Arch Arch_armv5tel [related] |
const Arch Arch_armv5l [related] |
const Arch Arch_armv4tl [related] |
const Arch Arch_armv4l [related] |
const Arch Arch_armv3l [related] |
std::ostream & operator<< | ( | std::ostream & | str, |
const Arch & | obj | ||
) | [related] |
bool operator== | ( | const Arch & | lhs, |
const std::string & | rhs | ||
) | [related] |
bool operator== | ( | const std::string & | lhs, |
const Arch & | rhs | ||
) | [related] |
bool operator!= | ( | const Arch & | lhs, |
const std::string & | rhs | ||
) | [related] |
bool operator!= | ( | const std::string & | lhs, |
const Arch & | rhs | ||
) | [related] |
bool operator() | ( | const zypp::Arch & | lhs, |
const zypp::Arch & | rhs | ||
) | const [related] |
Default order for std::container based Arch::compare.
const CompatEntry* zypp::Arch::_entry [private] |