Go to the documentation of this file.
45 explicit Arch(
const std::string & str_r );
46 explicit Arch(
const char * cstr_r );
57 const std::string &
asString()
const;
138 make_transform_iterator( cset.end(), std::mem_fun_ref(&
Arch::asString) ) );
144 Arch(
const CompatEntry & );
295 {
return str <<
"<arch>" << obj <<
"</arch>"; }
313 {
return !( lhs == rhs ); }
317 {
return !( lhs == rhs ); }
321 {
return !( lhs == rhs ); }
355 {
return lhs.
compare( rhs ) < 0; }
359 #endif // ZYPP_ARCH_H
sat::detail::IdType IdType
bool operator!=(const Arch &lhs, const std::string &rhs)
const Arch Arch_armv5tejl
Holds an architecture ID and it's compatible relation.
bool compatibleWith(const Arch &targetArch_r) const
Compatibility relation.
bool isBuiltIn() const
Whether this is a buitin (or known) architecture.
std::ostream & dumpAsXmlOn(std::ostream &str, const Arch &obj)
XML output.
const Arch Arch_alphaev56
bool operator!=(const std::string &lhs, const Arch &rhs)
bool operator()(const Arch &rhs) const
Call Arch::compatibleWith ( _targetArch ) on rhs.
const Arch Arch_alphapca56
bool operator==(const Arch &lhs, const std::string &rhs)
IdString::IdType id() const
Expert backdoor.
bool empty() const
Test for an empty Arch (this is Arch_epmty, not Arch_noarch ).
bool operator==(const std::string &lhs, const Arch &rhs)
bool operator==(const Arch &lhs, const Arch &rhs)
const CompatEntry * _entry
static CompatSet compatSet(const Arch &targetArch_r)
Return a set of all Arch's compatibleWith a targetArch_r.
Access to the sat-pools string space.
static Arch baseArch(const Arch &targetArch_r)
ArchCompatibleWith(const Arch &targetArch_r)
Ctor taking the target architecture.
Arch()
Default ctor Arc_noarch.
int compare(const Arch &rhs) const
Arch comparison.
Arch _targetArch
The target architecture.
const Arch Arch_armv7tnhl
const Arch Arch_alphaev67
Easy-to use interface to the ZYPP dependency resolver.
std::string join(TIterator begin, TIterator end, const C_Str &sep_r=" ")
Join strings using separator sep_r (defaults to BLANK).
const Arch Arch_empty
This is an empty Arch represented by an empty string.
const char * c_str() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
IdType id() const
Expert backdoor.
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...
unsigned size() const
Size of the string representation.
static std::string asString(const CompatSet &cset)
std::set< Arch, CompareByGT< Arch > > CompatSet
Reversed arch order, best Arch first.
bool operator!=(const Arch &lhs, const Arch &rhs)
static int compare(const Arch &lhs, const Arch &rhs)
Arch comparison (static version).
IdString idStr() const
String representation of Arch.
Functor finding compatible architectures.
String related utilities and Regular expression matching.