#include <Arch.h>
Public Types | |
typedef std::set< Arch, CompareByGT< Arch > > | CompatSet |
Reversed arch order, best Arch first. | |
Public Member Functions | |
Arch () | |
Default ctor 'noarch'. | |
Arch (const std::string &rhs) | |
Ctor from string. | |
const std::string & | asString () const |
String representation of Arch. | |
bool | empty () const |
Test for an empty Arch (this is "", not Arch_noarch). | |
bool | compatibleWith (const Arch &targetArch_r) const |
Compatibility relation. | |
int | compare (const Arch &rhs) const |
Arch comparison. | |
Static Public Member Functions | |
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 with 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) |
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) |
Classes | |
struct | CompatEntry |
Holds an architecture ID and it's compatible relation. More... |
Definition at line 34 of file Arch.h.
|
Reversed arch order, best Arch first.
|
|
Default ctor 'noarch'.
Definition at line 361 of file Arch.cc. References _entry. |
|
Ctor from string.
Definition at line 370 of file Arch.cc. References _entry. |
|
Definition at line 379 of file Arch.cc. References _entry. |
|
String representation of Arch.
Definition at line 388 of file Arch.cc. References zypp::Arch::CompatEntry::_archStr, and _entry. Referenced by asString(), empty(), operator<<(), operator==(), and zypp::storage::toXML(). |
|
Test for an empty Arch (this is "", not Arch_noarch).
Definition at line 48 of file Arch.h. References asString(). Referenced by zypp::Resolvable::Impl::Impl(). |
|
Compatibility relation.
Definition at line 396 of file Arch.cc. References _entry, and zypp::Arch::CompatEntry::compatibleWith(). Referenced by zypp::source::susetags::PackagesLangParser::consume(), and zypp::ArchCompatibleWith::operator()(). |
|
Arch comparison. Primary key is the number of compatible Archs, then the string representation. Thus Arch_noarch is the least Arch. Definition at line 404 of file Arch.cc. References _entry, and zypp::Arch::CompatEntry::compare(). Referenced by zypp::NVRA::compare(), and compare(). |
|
Arch comparison (static version).
Definition at line 69 of file Arch.h. References compare(). |
|
Return a set of all Arch's with a targetArch_r.
Definition at line 412 of file Arch.cc. References _entry. |
|
Definition at line 92 of file Arch.h. References asString(), and zypp::str::join(). |
|
stream output. Definition at line 146 of file Arch.h. References asString(). |
|
Definition at line 152 of file Arch.h. References asString(). |
|
Definition at line 156 of file Arch.h. References asString(). |
|
Definition at line 160 of file Arch.h. References asString(). |
|
|
|
|
|
|
|
Definition at line 102 of file Arch.h. Referenced by Arch(), asString(), compare(), compatibleWith(), and compatSet(). |