20#include <zypp/base/String.h>
21#include <zypp/base/Iterator.h>
45 explicit Arch(
const std::string & str_r );
46 explicit Arch(
const char * cstr_r );
57 const std::string &
asString()
const;
140 return str::join( make_transform_iterator( cset.begin(), std::mem_fn( memfn ) ),
141 make_transform_iterator( cset.end(), std::mem_fn( memfn ) ) );
147 Arch(
const CompatEntry & );
308 {
return str <<
"<arch>" << obj <<
"</arch>"; }
326 {
return !( lhs == rhs ); }
330 {
return !( lhs == rhs ); }
334 {
return !( lhs == rhs ); }
368 {
return lhs.
compare( rhs ) < 0; }
const Arch Arch_x86_64_v2
bool operator!=(const Arch &lhs, const std::string &rhs)
std::ostream & dumpAsXmlOn(std::ostream &str, const Arch &obj)
XML output.
const Arch Arch_x86_64_v3
bool operator!=(const std::string &lhs, const Arch &rhs)
const Arch Arch_armv5tejl
bool operator==(const std::string &lhs, const Arch &rhs)
const CompatEntry * _entry
std::set< Arch, CompareByGT< Arch > > CompatSet
Reversed arch order, best Arch first.
const char * c_str() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
const Arch Arch_alphaev67
static std::string asString(const CompatSet &cset)
static int compare(const Arch &lhs, const Arch &rhs)
Arch comparison (static version).
bool empty() const
Test for an empty Arch (this is Arch_epmty, not Arch_noarch ).
bool operator!=(const Arch &lhs, const Arch &rhs)
int compare(const Arch &rhs) const
Arch comparison.
const Arch Arch_empty
This is an empty Arch represented by an empty string.
Arch()
Default ctor Arc_noarch.
bool operator==(const Arch &lhs, const std::string &rhs)
static CompatSet compatSet(const Arch &targetArch_r)
Return a set of all Arch's compatibleWith a targetArch_r.
unsigned size() const
Size of the string representation.
bool isBuiltIn() const
Whether this is a buitin (or known) architecture.
IdString idStr() const
String representation of Arch.
const Arch Arch_armv7tnhl
IdString::IdType id() const
Expert backdoor.
bool operator==(const Arch &lhs, const Arch &rhs)
const Arch Arch_alphapca56
const Arch Arch_x86_64_v4
const Arch Arch_alphaev56
std::ostream & operator<<(std::ostream &str, const Arch &obj)
stream output.
const std::string & asString() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool compatibleWith(const Arch &targetArch_r) const
Compatibility relation.
static Arch baseArch(const Arch &targetArch_r)
Access to the sat-pools string space.
sat::detail::IdType IdType
IdType id() const
Expert backdoor.
String related utilities and Regular expression matching.
std::string join(TIterator begin, TIterator end, const C_Str &sep_r=" ")
Join strings using separator sep_r (defaults to BLANK).
Easy-to use interface to the ZYPP dependency resolver.
Functor finding compatible architectures.
Arch _targetArch
The target architecture.
ArchCompatibleWith(const Arch &targetArch_r)
Ctor taking the target architecture.
bool operator()(const Arch &rhs) const
Call Arch::compatibleWith ( _targetArch ) on rhs.
Holds an architecture ID and its compatible relation.