|
libzypp 17.38.7
|
VendorAttr implementation. More...
Public Member Functions | |
| Impl () | |
| Ctor. | |
| void | addVendorList (VendorList &&vendorList_r) |
| Add a new equivalent vendor set. | |
| bool | equivalent (IdString lVendor, IdString rVendor) const |
| Return whether two vendor strings should be treated as equivalent. | |
| bool | relaxedEquivalent (IdString lVendor, IdString rVendor) const |
| Return whether two vendor strings should be treated as equivalent or are (suse/opensuse). | |
| unsigned | foreachVendorList (const std::function< bool(VendorList)> &fnc_r) const |
Private Types | |
| using | VendorGroupMap = std::map<std::string,unsigned> |
| using | VendorMatchEntry = DefaultIntegral<unsigned int, 0> |
| using | VendorMatch = std::unordered_map<IdString, VendorMatchEntry> |
Private Member Functions | |
| void | vendorMatchIdReset () |
| Reset vendor match cache if _vendorGroupMap was changed. | |
| unsigned | vendorMatchId (IdString vendor) const |
| Helper mapping a vendor string to its eqivalence class ID. | |
| Impl * | clone () const |
| clone for RWCOW_pointer | |
Private Attributes | |
| VendorGroupMap | _vendorGroupMap |
| Vendor group definition. Equivalent groups share the same ID. | |
| unsigned | _vendorGroupId = 0 |
| Highest group ID in use (incremented). | |
| VendorMatch | _vendorMatch |
| Cache mapping vendor strings to equivalence class ID. | |
| unsigned | _nextId = 0 |
| Least equivalence class ID in use (decremented). | |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const Impl &obj) |
| relates: VendorAttr::Impl Stream output | |
| Impl * | rwcowClone (const Impl *rhs) |
VendorAttr implementation.
Definition at line 40 of file VendorAttr.cc.
|
private |
Definition at line 97 of file VendorAttr.cc.
|
private |
Definition at line 102 of file VendorAttr.cc.
|
private |
Definition at line 103 of file VendorAttr.cc.
|
inline |
Ctor.
bsc#1030686: The legacy default equivalence of 'suse' and 'opensuse' has been removed. bnc#812608: No prefix compare in opensuse namespace, so just create a class for 'suse*'
Definition at line 50 of file VendorAttr.cc.
| void zypp::VendorAttr::Impl::addVendorList | ( | VendorList && | vendorList_r | ) |
Add a new equivalent vendor set.
Definition at line 173 of file VendorAttr.cc.
Return whether two vendor strings should be treated as equivalent.
Definition at line 58 of file VendorAttr.cc.
Return whether two vendor strings should be treated as equivalent or are (suse/opensuse).
Definition at line 62 of file VendorAttr.cc.
|
inline |
Definition at line 78 of file VendorAttr.cc.
|
inlineprivate |
Reset vendor match cache if _vendorGroupMap was changed.
Definition at line 108 of file VendorAttr.cc.
|
private |
Helper mapping a vendor string to its eqivalence class ID.
Definition at line 130 of file VendorAttr.cc.
|
inlineprivate |
clone for RWCOW_pointer
Definition at line 126 of file VendorAttr.cc.
|
friend |
relates: VendorAttr::Impl Stream output
Definition at line 215 of file VendorAttr.cc.
|
private |
Vendor group definition. Equivalent groups share the same ID.
Definition at line 98 of file VendorAttr.cc.
|
private |
Highest group ID in use (incremented).
Definition at line 99 of file VendorAttr.cc.
|
mutableprivate |
Cache mapping vendor strings to equivalence class ID.
Definition at line 104 of file VendorAttr.cc.
|
mutableprivate |
Least equivalence class ID in use (decremented).
Definition at line 105 of file VendorAttr.cc.