Public Types | |
typedef bit::BitField< uint64_t > | CompatBits |
Bitfield for architecture IDs and compatBits relation. | |
Public Member Functions | |
CompatEntry (const std::string &archStr_r, CompatBits::IntT idBit_r=1) | |
CompatEntry (IdString archStr_r, CompatBits::IntT idBit_r=1) | |
void | addCompatBit (const CompatBits &idBit_r) const |
bool | compatibleWith (const CompatEntry &targetEntry_r) const |
Return whether this is compatible with targetEntry_r. | |
int | compare (const CompatEntry &rhs) const |
compare by score, then archStr. | |
bool | isBuiltIn () const |
IdString::IdType | id () const |
Public Attributes | |
IdString | _idStr |
std::string | _archStr |
CompatBits | _idBit |
CompatBits | _compatBits |
unsigned | _compatScore |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const Arch::CompatEntry &obj) |
bool | operator== (const Arch::CompatEntry &lhs, const Arch::CompatEntry &rhs) |
bool | operator!= (const Arch::CompatEntry &lhs, const Arch::CompatEntry &rhs) |
An architecture is compatibleWith, if it's _idBit is set in _compatBits. noarch has ID 0, non builtin archs ID 1 and have to be treated specialy.
Definition at line 38 of file Arch.cc.
typedef bit::BitField<uint64_t> zypp::Arch::CompatEntry::CompatBits |
zypp::Arch::CompatEntry::CompatEntry | ( | const std::string & | archStr_r, | |
CompatBits::IntT | idBit_r = 1 | |||
) | [inline] |
zypp::Arch::CompatEntry::CompatEntry | ( | IdString | archStr_r, | |
CompatBits::IntT | idBit_r = 1 | |||
) | [inline] |
void zypp::Arch::CompatEntry::addCompatBit | ( | const CompatBits & | idBit_r | ) | const [inline] |
bool zypp::Arch::CompatEntry::compatibleWith | ( | const CompatEntry & | targetEntry_r | ) | const [inline] |
Return whether this
is compatible with targetEntry_r.
Definition at line 74 of file Arch.cc.
References _archStr, _compatBits, _idBit, and zypp::bit::BitField< _IntT >::value().
Referenced by zypp::Arch::compatibleWith().
int zypp::Arch::CompatEntry::compare | ( | const CompatEntry & | rhs | ) | const [inline] |
compare by score, then archStr.
Definition at line 92 of file Arch.cc.
References _archStr, and _compatScore.
Referenced by zypp::Arch::compare().
bool zypp::Arch::CompatEntry::isBuiltIn | ( | ) | const [inline] |
IdString::IdType zypp::Arch::CompatEntry::id | ( | ) | const [inline] |
std::ostream & operator<< | ( | std::ostream & | str, | |
const Arch::CompatEntry & | obj | |||
) | [related] |
Stream output
Definition at line 114 of file Arch.cc.
References _archStr, _compatBits, _compatScore, _idBit, zypp::str::form(), and zypp::str::numstring().
bool operator== | ( | const Arch::CompatEntry & | lhs, | |
const Arch::CompatEntry & | rhs | |||
) | [related] |
bool operator!= | ( | const Arch::CompatEntry & | lhs, | |
const Arch::CompatEntry & | rhs | |||
) | [related] |
std::string zypp::Arch::CompatEntry::_archStr |
Definition at line 106 of file Arch.cc.
Referenced by zypp::Arch::asString(), compare(), compatibleWith(), and operator<<().
Definition at line 107 of file Arch.cc.
Referenced by compatibleWith(), isBuiltIn(), and operator<<().
Definition at line 108 of file Arch.cc.
Referenced by addCompatBit(), compatibleWith(), and operator<<().
unsigned zypp::Arch::CompatEntry::_compatScore [mutable] |