45    explicit Arch( 
const std::string & str_r );
 
   46    explicit Arch( 
const char * cstr_r );
 
   57    const std::string & 
asString() 
const;
 
   72    { 
return idStr().id(); }
 
 
   81    bool isBuiltIn() 
const;
 
   92    bool compatibleWith( 
const Arch & targetArch_r ) 
const;
 
   98    Arch baseArch() 
const;
 
  109    int compare( 
const Arch & rhs ) 
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 & );
 
 
  311  { 
return str << 
"<arch>" << obj <<  
"</arch>"; }
 
 
  329  { 
return !( lhs == rhs ); }
 
 
  333  { 
return !( lhs == rhs ); }
 
 
  337  { 
return !( lhs == rhs ); }
 
 
  371    { 
return lhs.
compare( rhs ) < 0; }
 
 
 
bool operator!=(const Arch &lhs, const std::string &rhs)
std::ostream & dumpAsXmlOn(std::ostream &str, const Arch &obj)
XML output.
bool operator!=(const std::string &lhs, const Arch &rhs)
bool operator==(const std::string &lhs, const Arch &rhs)
const CompatEntry * _entry
const char * c_str() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
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.
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.
IdString idStr() const
String representation of Arch.
IdString::IdType id() const
Expert backdoor.
bool operator==(const Arch &lhs, const Arch &rhs)
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...
const Arch Arch_empty ZYPP_API
This is an empty Arch represented by an empty string.
std::set< Arch, CompareByGT< Arch > > CompatSet
Reversed arch order, best Arch first.
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
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.
const Arch Arch_empty(IdString::Empty)
std::string asString(const Patch::Category &obj)
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.