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 & );
272 {
return str <<
"<arch>" << obj <<
"</arch>"; }
290 {
return !( lhs == rhs ); }
294 {
return !( lhs == rhs ); }
298 {
return !( lhs == rhs ); }
329 {
return lhs.
compare( rhs ) < 0; }
333 #endif // ZYPP_ARCH_H
bool operator!=(const std::string &lhs, const Arch &rhs)
static int compare(const Arch &lhs, const Arch &rhs)
Arch comparison (static version).
bool compatibleWith(const Arch &targetArch_r) const
Compatibility relation.
const std::string & asString() const
const Arch Arch_armv5tejl
bool operator!=(const Arch &lhs, const Arch &rhs)
bool operator==(const std::string &lhs, const Arch &rhs)
std::ostream & operator<<(std::ostream &str, const Arch &obj)
IdType id() const
Expert backdoor.
IdString::IdType id() const
Expert backdoor.
std::set< Arch, CompareByGT< Arch > > CompatSet
Reversed arch order, best Arch first.
const Arch Arch_alphaev67
bool operator()(const Arch &rhs) const
Call Arch::compatibleWith ( _targetArch ) on rhs.
IdString idStr() const
String representation of Arch.
Access to the sat-pools string space.
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 CompatEntry * _entry
static std::string asString(const CompatSet &cset)
const Arch Arch_armv7tnhl
bool operator==(const Arch &lhs, const std::string &rhs)
std::string join(_Iterator begin, _Iterator end, const C_Str &sep_r=" ")
Join strings using separator sep_r (defaults to BLANK).
const Arch Arch_alphaev56
sat::detail::IdType IdType
static CompatSet compatSet(const Arch &targetArch_r)
Return a set of all Arch's compatibleWith a targetArch_r.
bool operator!=(const Arch &lhs, const std::string &rhs)
const char * c_str() const
static Arch baseArch(const Arch &targetArch_r)
ArchCompatibleWith(const Arch &targetArch_r)
Ctor taking the target architecture.
Arch()
Default ctor Arc_noarch.
bool isBuiltIn() const
Whether this is a buitin (or known) architecture.
const Arch Arch_alphapca56
Arch _targetArch
The target architecture.
unsigned size() const
Size of the string representation.
std::ostream & dumpAsXmlOn(std::ostream &str, const Arch &obj)
Functor finding compatible architectures.
Holds an architecture ID and it's compatible relation.