zypp::Arch::CompatEntry Struct Reference

Holds an architecture ID and it's compatible relation. More...

List of all members.

Public Types

typedef bit::BitField< uint16_t > CompatBits
 Bitfield for architecture IDs and compatBits relation.

Public Member Functions

 CompatEntry (const std::string &archStr_r, CompatBits::IntT idBit_r=CompatBits::IntT(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.

Public Attributes

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)


Detailed Description

Holds an architecture ID and it's compatible relation.

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 35 of file Arch.cc.


Member Typedef Documentation

typedef bit::BitField<uint16_t> zypp::Arch::CompatEntry::CompatBits
 

Bitfield for architecture IDs and compatBits relation.

Note:
Need one bit for each builtin Arch.

Definition at line 40 of file Arch.cc.


Constructor & Destructor Documentation

zypp::Arch::CompatEntry::CompatEntry const std::string &  archStr_r,
CompatBits::IntT  idBit_r = CompatBits::IntT(1)
[inline]
 

Definition at line 42 of file Arch.cc.


Member Function Documentation

void zypp::Arch::CompatEntry::addCompatBit const CompatBits idBit_r  )  const [inline]
 

Definition at line 50 of file Arch.cc.

References _compatBits, and _compatScore.

bool zypp::Arch::CompatEntry::compatibleWith const CompatEntry targetEntry_r  )  const [inline]
 

Return whether this is compatible with targetEntry_r.

Definition at line 60 of file Arch.cc.

References _archStr, _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 78 of file Arch.cc.

References _archStr, and _compatScore.

Referenced by zypp::Arch::compare().


Friends And Related Function Documentation

std::ostream & operator<< std::ostream &  str,
const Arch::CompatEntry obj
[related]
 

Stream output

Definition at line 93 of file Arch.cc.

References _archStr, _compatBits, _compatScore, and _idBit.

bool operator< const Arch::CompatEntry lhs,
const Arch::CompatEntry rhs
[related]
 

ComaptSet ordering.

Note:
This is purely based on _archStr, as required by class ComaptSet.

Definition at line 102 of file Arch.cc.

References _archStr.


Member Data Documentation

std::string zypp::Arch::CompatEntry::_archStr
 

Definition at line 85 of file Arch.cc.

Referenced by zypp::Arch::asString(), compare(), compatibleWith(), operator<(), and operator<<().

CompatBits zypp::Arch::CompatEntry::_idBit
 

Definition at line 86 of file Arch.cc.

Referenced by compatibleWith(), and operator<<().

CompatBits zypp::Arch::CompatEntry::_compatBits [mutable]
 

Definition at line 87 of file Arch.cc.

Referenced by addCompatBit(), and operator<<().

unsigned zypp::Arch::CompatEntry::_compatScore [mutable]
 

Definition at line 88 of file Arch.cc.

Referenced by addCompatBit(), compare(), and operator<<().


The documentation for this struct was generated from the following file:
Generated on Thu Jul 6 00:07:30 2006 for zypp by  doxygen 1.4.6