libzypp 17.37.10

SolvableType.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
11#ifndef ZYPP_SAT_SOLVABLETYPE_H
12#define ZYPP_SAT_SOLVABLETYPE_H
13
14#include <iosfwd>
15
16#include <zypp/sat/Solvable.h>
17#include <zypp/Repository.h>
18#include <zypp-core/OnMediaLocation>
19#include <zypp/ByteCount.h>
20#include <zypp/CheckSum.h>
21#include <zypp/CpeId.h>
22#include <zypp/Date.h>
23
25 namespace zypp
26{
28 namespace sat
29 {
53 template <class Derived>
54 struct SolvableType
55 {
57 Solvable satSolvable() const { return Solvable(static_cast<const Derived&>(*this)); }
58
59 explicit operator bool() const { return bool(satSolvable()); }
60
61 IdString ident() const { return satSolvable().ident(); }
62
63 ResKind kind() const { return satSolvable().kind(); }
64 bool isKind( const ResKind & kind_r ) const { return satSolvable().isKind( kind_r ); }
65 template<class TRes>
66 bool isKind() const { return satSolvable().template isKind<TRes>(); }
67 template<class TIterator>
68 bool isKind( TIterator begin, TIterator end ) const { return satSolvable().isKind( begin, end ); }
69
70 std::string name() const { return satSolvable().name(); }
71 Edition edition() const { return satSolvable().edition(); }
72 Arch arch() const { return satSolvable().arch(); }
73 IdString vendor() const { return satSolvable().vendor(); }
74
75 Repository repository() const { return satSolvable().repository(); }
76 RepoInfo repoInfo() const { return satSolvable().repoInfo(); }
77
78 bool isSystem() const { return satSolvable().isSystem(); }
79 bool onSystemByUser() const { return satSolvable().onSystemByUser(); }
80 bool onSystemByAuto() const { return satSolvable().onSystemByAuto(); }
81 bool identIsAutoInstalled() const { return satSolvable().identIsAutoInstalled(); }
82 bool multiversionInstall() const { return satSolvable().multiversionInstall(); }
83 bool isNeedreboot() const { return satSolvable().isNeedreboot(); }
84
85 bool isBlacklisted() const { return satSolvable().isBlacklisted(); }
86 bool isRetracted() const { return satSolvable().isRetracted(); }
87 bool isPtf() const { return satSolvable().isPtf(); }
88 bool isPtfMaster() const { return satSolvable().isPtfMaster(); }
89 bool isPtfPackage() const { return satSolvable().isPtfPackage(); }
90
91 Date buildtime() const { return satSolvable().buildtime(); }
92 Date installtime() const { return satSolvable().installtime(); }
93
94 std::string asString() const { return satSolvable().asString(); }
95 std::string asUserString() const { return satSolvable().asUserString(); }
96
97 bool identical( const Solvable & rhs ) const { return satSolvable().identical( rhs ); }
98 template <class RDerived>
99 bool identical( const SolvableType<RDerived> & rhs ) const { return satSolvable().identical( rhs.satSolvable() ); }
100
101 bool sameNVRA( const Solvable &rhs ) const { return satSolvable().sameNVRA( rhs ); }
102 template <class RDerived>
103 bool sameNVRA( const SolvableType<RDerived> & rhs ) const { return satSolvable().sameNVRA( rhs.satSolvable() ); }
104
105 Capabilities dep_provides() const { return satSolvable().dep_provides(); }
106 Capabilities dep_requires() const { return satSolvable().dep_requires(); }
107 Capabilities dep_conflicts() const { return satSolvable().dep_conflicts(); }
108 Capabilities dep_obsoletes() const { return satSolvable().dep_obsoletes(); }
109 Capabilities dep_recommends() const { return satSolvable().dep_recommends(); }
110 Capabilities dep_suggests() const { return satSolvable().dep_suggests(); }
111 Capabilities dep_enhances() const { return satSolvable().dep_enhances(); }
112 Capabilities dep_supplements() const { return satSolvable().dep_supplements(); }
113 Capabilities dep_prerequires() const { return satSolvable().dep_prerequires(); }
114 Capabilities dep( Dep which_r ) const { return satSolvable().dep(which_r); }
115 Capabilities operator[]( Dep which_r ) const { return satSolvable()[which_r]; }
116
117#if __cplusplus < 202002L
118 Capabilities provides() const { return satSolvable().dep_provides(); }
119 Capabilities requires() const { return satSolvable().dep_requires(); }
120 Capabilities conflicts() const { return satSolvable().dep_conflicts(); }
121 Capabilities obsoletes() const { return satSolvable().dep_obsoletes(); }
122 Capabilities recommends() const { return satSolvable().dep_recommends(); }
123 Capabilities suggests() const { return satSolvable().dep_suggests(); }
124 Capabilities enhances() const { return satSolvable().dep_enhances(); }
125 Capabilities supplements() const { return satSolvable().dep_supplements(); }
126 Capabilities prerequires() const { return satSolvable().dep_prerequires(); }
127#endif
128
129
130 CapabilitySet providesNamespace( const std::string & namespace_r ) const { return satSolvable().providesNamespace( namespace_r ); }
131 CapabilitySet valuesOfNamespace( const std::string & namespace_r ) const { return satSolvable().valuesOfNamespace( namespace_r ); }
132
133 bool supportsLocales() const { return satSolvable().supportsLocales(); }
134 bool supportsLocale( const Locale & locale_r ) const { return satSolvable().supportsLocale( locale_r ); }
135 bool supportsLocale( const LocaleSet & locales_r ) const { return satSolvable().supportsLocale( locales_r ); }
136 bool supportsRequestedLocales() const { return satSolvable().supportsRequestedLocales(); }
137 LocaleSet getSupportedLocales() const { return satSolvable().getSupportedLocales(); }
138
139 CpeId cpeId() const { return satSolvable().cpeId(); }
140 unsigned mediaNr() const { return satSolvable().mediaNr(); }
141 ByteCount installSize() const { return satSolvable().installSize(); }
142 ByteCount downloadSize() const { return satSolvable().downloadSize(); }
143 std::string distribution() const { return satSolvable().distribution(); }
144
145 std::string summary( const Locale & lang_r = Locale() ) const { return satSolvable().summary( lang_r ); }
146 std::string description( const Locale & lang_r = Locale() ) const { return satSolvable().description( lang_r ); }
147 std::string insnotify( const Locale & lang_r = Locale() ) const { return satSolvable().insnotify( lang_r ); }
148 std::string delnotify( const Locale & lang_r = Locale() ) const { return satSolvable().delnotify( lang_r ); }
149 std::string licenseToConfirm( const Locale & lang_r = Locale() ) const { return satSolvable().licenseToConfirm( lang_r ); }
150 bool needToAcceptLicense() const { return satSolvable().needToAcceptLicense(); }
151
152 public:
153 std::string lookupStrAttribute( const SolvAttr & attr ) const { return satSolvable().lookupStrAttribute( attr ); }
154 std::string lookupStrAttribute( const SolvAttr & attr, const Locale & lang_r ) const { return satSolvable().lookupStrAttribute( attr, lang_r ); }
155 bool lookupBoolAttribute( const SolvAttr & attr ) const { return satSolvable().lookupBoolAttribute( attr ); }
156 detail::IdType lookupIdAttribute( const SolvAttr & attr ) const { return satSolvable().lookupIdAttribute( attr ); }
157 unsigned long long lookupNumAttribute( const SolvAttr & attr ) const { return satSolvable().lookupNumAttribute( attr ); }
158 unsigned long long lookupNumAttribute( const SolvAttr & attr, unsigned long long notfound_r ) const { return satSolvable().lookupNumAttribute( attr, notfound_r ); }
159 CheckSum lookupCheckSumAttribute( const SolvAttr & attr ) const { return satSolvable().lookupCheckSumAttribute( attr ); }
160 OnMediaLocation lookupLocation() const { return satSolvable().lookupLocation(); }
161 Solvable::IdType id() const { return satSolvable().id(); }
162
163 protected:
164 SolvableType() {}
165 SolvableType( const SolvableType & ) = default;
166 SolvableType &operator=( const SolvableType & ) = default;
167 SolvableType( SolvableType && ) noexcept = default;
168 SolvableType &operator=( SolvableType && ) noexcept = default;
169 ~SolvableType() {}
170 };
171
173 template <class Derived>
174 inline std::ostream & operator<<( std::ostream & str, const SolvableType<Derived> & obj )
175 { return str << obj.satSolvable(); }
176
178 template <class Derived>
179 inline std::ostream & dumpOn( std::ostream & str, const SolvableType<Derived> & obj )
180 { return dumpOn( str, obj.satSolvable() ); }
181
183 template <class LDerived, class RDerived>
184 inline bool operator==( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
185 { return lhs.satSolvable() == rhs.satSolvable(); }
186
187 template <class Derived>
188 inline bool operator==( const SolvableType<Derived> & lhs, const Solvable & rhs )
189 { return lhs.satSolvable() == rhs; }
190
191 template <class Derived>
192 inline bool operator==( const Solvable & lhs, const SolvableType<Derived> & rhs )
193 { return lhs == rhs.satSolvable(); }
194
196 template <class LDerived, class RDerived>
197 inline bool operator!=( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
198 { return lhs.satSolvable() != rhs.satSolvable(); }
199
200 template <class Derived>
201 inline bool operator!=( const SolvableType<Derived> & lhs, const Solvable & rhs )
202 { return lhs.satSolvable() != rhs; }
203
204 template <class Derived>
205 inline bool operator!=( const Solvable & lhs, const SolvableType<Derived> & rhs )
206 { return lhs != rhs.satSolvable(); }
207
209 template <class LDerived, class RDerived>
210 inline bool operator<( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
211 { return lhs.satSolvable() < rhs.satSolvable(); }
212
213 template <class Derived>
214 inline bool operator<( const SolvableType<Derived> & lhs, const Solvable & rhs )
215 { return lhs.satSolvable() < rhs; }
216
217 template <class Derived>
218 inline bool operator<( const Solvable & lhs, const SolvableType<Derived> & rhs )
219 { return lhs < rhs.satSolvable(); }
220
222 template<class TRes, class Derived>
223 inline bool isKind( const SolvableType<Derived> & solvable_r )
224 { return isKind<TRes>( solvable_r.satSolvable() ); }
225
227 template <class LDerived, class RDerived>
228 inline bool identical( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
229 { return identical( lhs.satSolvable(), rhs.satSolvable() ); }
230
231 template <class Derived>
232 inline bool identical( const SolvableType<Derived> & lhs, const Solvable & rhs )
233 { return identical( lhs.satSolvable(), rhs ); }
234
235 template <class Derived>
236 inline bool identical( const Solvable & lhs, const SolvableType<Derived> & rhs )
237 { return identical( lhs, rhs.satSolvable() ); }
238
240 template <class LDerived, class RDerived>
241 inline bool sameNVRA( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
242 { return sameNVRA( lhs.satSolvable(), rhs.satSolvable() ); }
243
244 template <class Derived>
245 inline bool sameNVRA( const SolvableType<Derived> & lhs, const Solvable & rhs )
246 { return sameNVRA( lhs.satSolvable(), rhs ); }
247
248 template <class Derived>
249 inline bool sameNVRA( const Solvable & lhs, const SolvableType<Derived> & rhs )
250 { return sameNVRA( lhs, rhs.satSolvable() ); }
251
252
254 template <class LDerived, class RDerived>
255 inline int compareByN( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
256 { return compareByN( lhs.satSolvable(), rhs.satSolvable() ); }
257
258 template <class Derived>
259 inline bool compareByN( const SolvableType<Derived> & lhs, const Solvable & rhs )
260 { return compareByN( lhs.satSolvable(), rhs ); }
261
262 template <class Derived>
263 inline bool compareByN( const Solvable & lhs, const SolvableType<Derived> & rhs )
264 { return compareByN( lhs, rhs.satSolvable() ); }
265
266
268 template <class LDerived, class RDerived>
269 inline int compareByNVR( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
270 { return compareByNVR( lhs.satSolvable(), rhs.satSolvable() ); }
271
272 template <class Derived>
273 inline bool compareByNVR( const SolvableType<Derived> & lhs, const Solvable & rhs )
274 { return compareByNVR( lhs.satSolvable(), rhs ); }
275
276 template <class Derived>
277 inline bool compareByNVR( const Solvable & lhs, const SolvableType<Derived> & rhs )
278 { return compareByNVR( lhs, rhs.satSolvable() ); }
279
281 template <class LDerived, class RDerived>
282 inline int compareByNVRA( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
283 { return compareByNVRA( lhs.satSolvable(), rhs.satSolvable() ); }
284
285 template <class Derived>
286 inline bool compareByNVRA( const SolvableType<Derived> & lhs, const Solvable & rhs )
287 { return compareByNVRA( lhs.satSolvable(), rhs ); }
288
289 template <class Derived>
290 inline bool compareByNVRA( const Solvable & lhs, const SolvableType<Derived> & rhs )
291 { return compareByNVRA( lhs, rhs.satSolvable() ); }
292
293 } // namespace sat
295} // namespace zypp
297#endif // ZYPP_SAT_SOLVABLETYPE_H
CpeId.h
Repository.h
Solvable.h
bool
zypp::Arch
Architecture.
Definition Arch.h:37
zypp::ByteCount
Store and operate with byte count.
Definition ByteCount.h:32
zypp::Capabilities
Container of Capability (currently read only).
Definition Capabilities.h:36
zypp::CheckSum
Definition CheckSum.h:34
zypp::CpeId
Common Platform Enumearation (2.3) See http://cpe.mitre.org/ for more information on the Common Platf...
Definition CpeId.h:33
zypp::Date
Store and operate on date (time_t).
Definition Date.h:33
zypp::Edition
Edition represents [epoch:]version[-release]
Definition Edition.h:61
zypp::IdString
Access to the sat-pools string space.
Definition IdString.h:44
zypp::Locale
'Language[_Country]' codes.
Definition Locale.h:51
zypp::OnMediaLocation
Describes a resource file located on a medium.
Definition onmedialocation.h:37
zypp::RepoInfo
What is known about a repository.
Definition RepoInfo.h:72
zypp::Repository
Definition Repository.h:40
zypp::ResKind
Resolvable kinds.
Definition ResKind.h:33
zypp::sat::SolvAttr
Solvable attribute keys.
Definition SolvAttr.h:41
zypp::sat::Solvable
A Solvable object within the sat Pool.
Definition Solvable.h:54
zypp::sat::Solvable::id
IdType id() const
Expert backdoor.
Definition Solvable.h:445
zypp::sat::Solvable::isKind
bool isKind(const Solvable &solvable_r)
Test whether a Solvable is of a certain Kind.
Definition Solvable.h:475
zypp::sat::Solvable::isPtfPackage
bool isPtfPackage() const
Subset of isPtf (provides ptfPackageToken).
Definition Solvable.cc:424
zypp::sat::Solvable::isNeedreboot
bool isNeedreboot() const
Whether this solvable triggers the reboot-needed hint if installed/updated.
Definition Solvable.cc:395
zypp::sat::Solvable::identIsAutoInstalled
bool identIsAutoInstalled() const
Whether an installed solvable with the same ident is flagged as AutoInstalled.
Definition Solvable.h:143
zypp::sat::Solvable::lookupLocation
OnMediaLocation lookupLocation() const
returns OnMediaLocation data: This is everything we need to download e.g.
Definition Solvable.cc:225
zypp::sat::Solvable::dep_suggests
Capabilities dep_suggests() const
Definition Solvable.cc:510
zypp::sat::Solvable::dep
Capabilities dep(Dep which_r) const
Return Capabilities selected by Dep constant.
Definition Solvable.h:247
zypp::sat::Solvable::dep_conflicts
Capabilities dep_conflicts() const
Definition Solvable.cc:495
zypp::sat::Solvable::lookupBoolAttribute
bool lookupBoolAttribute(const SolvAttr &attr) const
returns the boolean attribute value for attr or false if it does not exists.
Definition Solvable.cc:171
zypp::sat::Solvable::vendor
IdString vendor() const
The vendor.
Definition Solvable.cc:358
zypp::sat::Solvable::installSize
ByteCount installSize() const
Installed (unpacked) size.
Definition Solvable.cc:719
zypp::sat::Solvable::buildtime
Date buildtime() const
The items build time.
Definition Solvable.cc:437
zypp::sat::Solvable::needToAcceptLicense
bool needToAcceptLicense() const
True except for well known exceptions (i.e show license but no need to accept it).
Definition Solvable.cc:778
zypp::sat::Solvable::kind
ResKind kind() const
The Solvables ResKind.
Definition Solvable.cc:276
zypp::sat::Solvable::providesNamespace
CapabilitySet providesNamespace(const std::string &namespace_r) const
Return the namespaced provides 'namespace([value])[ op edition]' of this Solvable.
Definition Solvable.cc:551
zypp::sat::Solvable::dep_supplements
Capabilities dep_supplements() const
Definition Solvable.cc:520
zypp::sat::Solvable::asString
std::string asString() const
String representation "ident-edition.arch" or "noSolvable".
Definition Solvable.cc:449
zypp::sat::Solvable::distribution
std::string distribution() const
The distribution string.
Definition Solvable.cc:731
zypp::sat::Solvable::mediaNr
unsigned mediaNr() const
Media number the solvable is located on (0 if no media access required).
Definition Solvable.cc:706
zypp::sat::Solvable::isBlacklisted
bool isBlacklisted() const
Whether this solvable is blacklisted (retracted,ptf,...).
Definition Solvable.cc:402
zypp::sat::Solvable::lookupNumAttribute
unsigned long long lookupNumAttribute(const SolvAttr &attr) const
returns the numeric attribute value for attr or 0 if it does not exists.
Definition Solvable.cc:159
zypp::sat::Solvable::dep_enhances
Capabilities dep_enhances() const
Definition Solvable.cc:515
zypp::sat::Solvable::lookupStrAttribute
std::string lookupStrAttribute(const SolvAttr &attr) const
returns the string attribute value for attr or an empty string if it does not exists.
Definition Solvable.cc:131
zypp::sat::Solvable::dep_recommends
Capabilities dep_recommends() const
Definition Solvable.cc:505
zypp::sat::Solvable::multiversionInstall
bool multiversionInstall() const
Whether different versions of this package can be installed at the same time.
Definition Solvable.cc:431
zypp::sat::Solvable::cpeId
CpeId cpeId() const
The solvables CpeId if available.
Definition Solvable.cc:700
zypp::sat::Solvable::installtime
Date installtime() const
The items install time (false if not installed).
Definition Solvable.cc:443
zypp::sat::Solvable::edition
Edition edition() const
The edition (version-release).
Definition Solvable.cc:338
zypp::sat::Solvable::sameNVRA
bool sameNVRA(const Solvable &rhs) const
Test for same name-version-release.arch.
Definition Solvable.h:215
zypp::sat::Solvable::isPtfMaster
bool isPtfMaster() const
Subset of isPtf (provides ptfMasterToken).
Definition Solvable.cc:418
zypp::sat::Solvable::dep_obsoletes
Capabilities dep_obsoletes() const
Definition Solvable.cc:500
zypp::sat::Solvable::getSupportedLocales
LocaleSet getSupportedLocales() const
Return the supported locales.
Definition Solvable.cc:693
zypp::sat::Solvable::supportsRequestedLocales
bool supportsRequestedLocales() const
Whether this Solvable supports at least one requested locale.
Definition Solvable.cc:690
zypp::sat::Solvable::arch
Arch arch() const
The architecture.
Definition Solvable.cc:344
zypp::sat::Solvable::isSystem
bool isSystem() const
Return whether this Solvable belongs to the system repo.
Definition Solvable.cc:374
zypp::sat::Solvable::licenseToConfirm
std::string licenseToConfirm(const Locale &lang_r=Locale()) const
License or agreement to accept before installing the solvable (opt.
Definition Solvable.cc:761
zypp::sat::Solvable::supportsLocales
bool supportsLocales() const
Whether this Solvable claims to support locales.
Definition Solvable.cc:670
zypp::sat::Solvable::asUserString
std::string asUserString() const
String representation "ident-edition.arch(repo)" or "noSolvable".
Definition Solvable.cc:458
zypp::sat::Solvable::summary
std::string summary(const Locale &lang_r=Locale()) const
Short (singleline) text describing the solvable (opt.
Definition Solvable.cc:737
zypp::sat::Solvable::dep_prerequires
Capabilities dep_prerequires() const
Definition Solvable.cc:525
zypp::sat::Solvable::dep_provides
Capabilities dep_provides() const
Definition Solvable.cc:485
zypp::sat::Solvable::lookupIdAttribute
detail::IdType lookupIdAttribute(const SolvAttr &attr) const
returns the id attribute value for attr or detail::noId if it does not exists.
Definition Solvable.cc:177
zypp::sat::Solvable::name
std::string name() const
The name (without any ResKind prefix).
Definition Solvable.cc:330
zypp::sat::Solvable::supportsLocale
bool supportsLocale(const Locale &locale_r) const
Whether this Solvable supports a specific Locale.
Definition Solvable.cc:676
zypp::sat::Solvable::dep_requires
Capabilities dep_requires() const
Definition Solvable.cc:490
zypp::sat::Solvable::downloadSize
ByteCount downloadSize() const
Download size.
Definition Solvable.cc:725
zypp::sat::Solvable::isKind
bool isKind(const ResKind &kind_r) const
Test whether a Solvable is of a certain ResKind.
Definition Solvable.cc:303
zypp::sat::Solvable::onSystemByAuto
bool onSystemByAuto() const
Whether this is known to be automatically installed (as dependency of a user request package).
Definition Solvable.cc:385
zypp::sat::Solvable::delnotify
std::string delnotify(const Locale &lang_r=Locale()) const
UI hint text when selecting the solvable for uninstall (opt.
Definition Solvable.cc:755
zypp::sat::Solvable::valuesOfNamespace
CapabilitySet valuesOfNamespace(const std::string &namespace_r) const
Return 'value[ op edition]' for namespaced provides 'namespace(value)[ op edition]'.
Definition Solvable.cc:565
zypp::sat::Solvable::ident
IdString ident() const
The identifier.
Definition Solvable.cc:270
zypp::sat::Solvable::lookupCheckSumAttribute
CheckSum lookupCheckSumAttribute(const SolvAttr &attr) const
returns the CheckSum attribute value for attr or an empty CheckSum if ir does not exist.
Definition Solvable.cc:183
zypp::sat::Solvable::description
std::string description(const Locale &lang_r=Locale()) const
Long (multiline) text describing the solvable (opt.
Definition Solvable.cc:743
zypp::sat::Solvable::onSystemByUser
bool onSystemByUser() const
Whether this is known to be installed on behalf of a user request.
Definition Solvable.cc:380
zypp::sat::Solvable::repoInfo
RepoInfo repoInfo() const
The repositories RepoInfo.
Definition Solvable.cc:370
zypp::sat::Solvable::repository
Repository repository() const
The Repository this Solvable belongs to.
Definition Solvable.cc:364
zypp::sat::Solvable::isPtf
bool isPtf() const
Whether this solvable belongs to a PTF (provides ptfMasterToken or ptfPackageToken).
Definition Solvable.cc:415
zypp::sat::Solvable::IdType
sat::detail::SolvableIdType IdType
Definition Solvable.h:56
zypp::sat::Solvable::isRetracted
bool isRetracted() const
Whether this solvable is retracted (provides retractedToken).
Definition Solvable.cc:405
zypp::sat::Solvable::insnotify
std::string insnotify(const Locale &lang_r=Locale()) const
UI hint text when selecting the solvable for install (opt.
Definition Solvable.cc:749
zypp::sat::Solvable::identical
bool identical(const Solvable &rhs) const
Test whether two Solvables have the same content.
Definition Solvable.cc:468
str
String related utilities and Regular expression matching.
zypp::sat::detail::IdType
int IdType
Generic Id type.
Definition PoolMember.h:104
zypp::sat
Definition Resolver.h:28
zypp::sat::compareByNVR
bool compareByNVR(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition SolvableType.h:273
zypp::sat::operator!=
bool operator!=(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition SolvableType.h:201
zypp::sat::compareByNVRA
bool compareByNVRA(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition SolvableType.h:286
zypp::sat::dumpOn
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
Definition LocaleSupport.cc:41
zypp::sat::operator<
bool operator<(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition SolvableType.h:214
zypp::sat::compareByN
bool compareByN(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition SolvableType.h:259
zypp::sat::sameNVRA
bool sameNVRA(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition SolvableType.h:245
zypp::sat::identical
bool identical(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition SolvableType.h:232
zypp::sat::operator==
bool operator==(const Map &lhs, const Map &rhs)
Definition Map.cc:125
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
zypp::LocaleSet
std::unordered_set< Locale > LocaleSet
Definition Locale.h:29
zypp::CapabilitySet
std::unordered_set< Capability > CapabilitySet
Definition Capability.h:35
zypp::Dep
Enumeration class of dependency types.
Definition Dep.h:30
zypp::sat::SolvableType
Base class for creating Solvable based types.
Definition SolvableType.h:55
zypp::sat::SolvableType::suggests
Capabilities suggests() const
Definition SolvableType.h:123
zypp::sat::SolvableType::operator==
bool operator==(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
Equal.
Definition SolvableType.h:184
zypp::sat::SolvableType::dep_recommends
Capabilities dep_recommends() const
Definition SolvableType.h:109
zypp::sat::SolvableType::summary
std::string summary(const Locale &lang_r=Locale()) const
Definition SolvableType.h:145
zypp::sat::SolvableType::lookupLocation
OnMediaLocation lookupLocation() const
Definition SolvableType.h:160
zypp::sat::SolvableType::obsoletes
Capabilities obsoletes() const
Definition SolvableType.h:121
zypp::sat::SolvableType::provides
Capabilities provides() const
Definition SolvableType.h:118
zypp::sat::SolvableType::isSystem
bool isSystem() const
Definition SolvableType.h:78
zypp::sat::SolvableType::valuesOfNamespace
CapabilitySet valuesOfNamespace(const std::string &namespace_r) const
Definition SolvableType.h:131
zypp::sat::SolvableType::identical
bool identical(const Solvable &rhs) const
Definition SolvableType.h:97
zypp::sat::SolvableType::dep
Capabilities dep(Dep which_r) const
Definition SolvableType.h:114
zypp::sat::SolvableType::id
Solvable::IdType id() const
Definition SolvableType.h:161
zypp::sat::SolvableType::arch
Arch arch() const
Definition SolvableType.h:72
zypp::sat::SolvableType::dep_conflicts
Capabilities dep_conflicts() const
Definition SolvableType.h:107
zypp::sat::SolvableType::name
std::string name() const
Definition SolvableType.h:70
zypp::sat::SolvableType::lookupCheckSumAttribute
CheckSum lookupCheckSumAttribute(const SolvAttr &attr) const
Definition SolvableType.h:159
zypp::sat::SolvableType::onSystemByUser
bool onSystemByUser() const
Definition SolvableType.h:79
zypp::sat::SolvableType::isKind
bool isKind(const ResKind &kind_r) const
Definition SolvableType.h:64
zypp::sat::SolvableType::dep_obsoletes
Capabilities dep_obsoletes() const
Definition SolvableType.h:108
zypp::sat::SolvableType::operator<<
std::ostream & operator<<(std::ostream &str, const SolvableType< Derived > &obj)
Stream output.
Definition SolvableType.h:174
zypp::sat::SolvableType::supportsLocale
bool supportsLocale(const Locale &locale_r) const
Definition SolvableType.h:134
zypp::sat::SolvableType::supplements
Capabilities supplements() const
Definition SolvableType.h:125
zypp::sat::SolvableType::isBlacklisted
bool isBlacklisted() const
Definition SolvableType.h:85
zypp::sat::SolvableType::asUserString
std::string asUserString() const
Definition SolvableType.h:95
zypp::sat::SolvableType::compareByN
int compareByN(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
Compare according to kind and name.
Definition SolvableType.h:255
zypp::sat::SolvableType::identical
bool identical(const SolvableType< RDerived > &rhs) const
Definition SolvableType.h:99
zypp::sat::SolvableType::distribution
std::string distribution() const
Definition SolvableType.h:143
zypp::sat::SolvableType::dep_enhances
Capabilities dep_enhances() const
Definition SolvableType.h:111
zypp::sat::SolvableType::lookupBoolAttribute
bool lookupBoolAttribute(const SolvAttr &attr) const
Definition SolvableType.h:155
zypp::sat::SolvableType::isPtf
bool isPtf() const
Definition SolvableType.h:87
zypp::sat::SolvableType::cpeId
CpeId cpeId() const
Definition SolvableType.h:139
zypp::sat::SolvableType::sameNVRA
bool sameNVRA(const SolvableType< RDerived > &rhs) const
Definition SolvableType.h:103
zypp::sat::SolvableType::vendor
IdString vendor() const
Definition SolvableType.h:73
zypp::sat::SolvableType::dep_provides
Capabilities dep_provides() const
Definition SolvableType.h:105
zypp::sat::SolvableType::operator!=
bool operator!=(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
NotEqual.
Definition SolvableType.h:197
zypp::sat::SolvableType::onSystemByAuto
bool onSystemByAuto() const
Definition SolvableType.h:80
zypp::sat::SolvableType::SolvableType
SolvableType(SolvableType &&) noexcept=default
zypp::sat::SolvableType::dep_requires
Capabilities dep_requires() const
Definition SolvableType.h:106
zypp::sat::SolvableType::isKind
bool isKind(TIterator begin, TIterator end) const
Definition SolvableType.h:68
zypp::sat::SolvableType::prerequires
Capabilities prerequires() const
Definition SolvableType.h:126
zypp::sat::SolvableType::needToAcceptLicense
bool needToAcceptLicense() const
Definition SolvableType.h:150
zypp::sat::SolvableType::isKind
bool isKind() const
Definition SolvableType.h:66
zypp::sat::SolvableType::supportsRequestedLocales
bool supportsRequestedLocales() const
Definition SolvableType.h:136
zypp::sat::SolvableType::lookupStrAttribute
std::string lookupStrAttribute(const SolvAttr &attr) const
Definition SolvableType.h:153
zypp::sat::SolvableType::repoInfo
RepoInfo repoInfo() const
Definition SolvableType.h:76
zypp::sat::SolvableType::compareByNVRA
int compareByNVRA(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
Compare according to kind, name, edition and arch.
Definition SolvableType.h:282
zypp::sat::SolvableType::compareByNVR
int compareByNVR(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
Compare according to kind, name and edition.
Definition SolvableType.h:269
zypp::sat::SolvableType::satSolvable
Solvable satSolvable() const
Return the corresponding sat::Solvable.
Definition SolvableType.h:57
zypp::sat::SolvableType::delnotify
std::string delnotify(const Locale &lang_r=Locale()) const
Definition SolvableType.h:148
zypp::sat::SolvableType::ident
IdString ident() const
Definition SolvableType.h:61
zypp::sat::SolvableType::asString
std::string asString() const
Definition SolvableType.h:94
zypp::sat::SolvableType::conflicts
Capabilities conflicts() const
Definition SolvableType.h:120
zypp::sat::SolvableType::lookupNumAttribute
unsigned long long lookupNumAttribute(const SolvAttr &attr) const
Definition SolvableType.h:157
zypp::sat::SolvableType::kind
ResKind kind() const
Definition SolvableType.h:63
zypp::sat::SolvableType::sameNVRA
bool sameNVRA(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
Test for same name version release and arch.
Definition SolvableType.h:241
zypp::sat::SolvableType::mediaNr
unsigned mediaNr() const
Definition SolvableType.h:140
zypp::sat::SolvableType::dep_suggests
Capabilities dep_suggests() const
Definition SolvableType.h:110
zypp::sat::SolvableType::enhances
Capabilities enhances() const
Definition SolvableType.h:124
zypp::sat::SolvableType::isKind
bool isKind(const SolvableType< Derived > &solvable_r)
Test whether the Solvable is of a certain ResKind.
Definition SolvableType.h:223
zypp::sat::SolvableType::lookupStrAttribute
std::string lookupStrAttribute(const SolvAttr &attr, const Locale &lang_r) const
Definition SolvableType.h:154
zypp::sat::SolvableType::getSupportedLocales
LocaleSet getSupportedLocales() const
Definition SolvableType.h:137
zypp::sat::SolvableType::downloadSize
ByteCount downloadSize() const
Definition SolvableType.h:142
zypp::sat::SolvableType::installSize
ByteCount installSize() const
Definition SolvableType.h:141
zypp::sat::SolvableType::isNeedreboot
bool isNeedreboot() const
Definition SolvableType.h:83
zypp::sat::SolvableType::supportsLocales
bool supportsLocales() const
Definition SolvableType.h:133
zypp::sat::SolvableType::supportsLocale
bool supportsLocale(const LocaleSet &locales_r) const
Definition SolvableType.h:135
zypp::sat::SolvableType::licenseToConfirm
std::string licenseToConfirm(const Locale &lang_r=Locale()) const
Definition SolvableType.h:149
zypp::sat::SolvableType::repository
Repository repository() const
Definition SolvableType.h:75
zypp::sat::SolvableType::sameNVRA
bool sameNVRA(const Solvable &rhs) const
Definition SolvableType.h:101
zypp::sat::SolvableType::edition
Edition edition() const
Definition SolvableType.h:71
zypp::sat::SolvableType::lookupIdAttribute
detail::IdType lookupIdAttribute(const SolvAttr &attr) const
Definition SolvableType.h:156
zypp::sat::SolvableType::lookupNumAttribute
unsigned long long lookupNumAttribute(const SolvAttr &attr, unsigned long long notfound_r) const
Definition SolvableType.h:158
zypp::sat::SolvableType::operator=
SolvableType & operator=(const SolvableType &)=default
zypp::sat::SolvableType::installtime
Date installtime() const
Definition SolvableType.h:92
zypp::sat::SolvableType::insnotify
std::string insnotify(const Locale &lang_r=Locale()) const
Definition SolvableType.h:147
zypp::sat::SolvableType::dep_prerequires
Capabilities dep_prerequires() const
Definition SolvableType.h:113
zypp::sat::SolvableType::providesNamespace
CapabilitySet providesNamespace(const std::string &namespace_r) const
Definition SolvableType.h:130
zypp::sat::SolvableType::identical
bool identical(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
Test for same content.
Definition SolvableType.h:228
zypp::sat::SolvableType::dep_supplements
Capabilities dep_supplements() const
Definition SolvableType.h:112
zypp::sat::SolvableType::SolvableType
SolvableType(const SolvableType &)=default
zypp::sat::SolvableType::recommends
Capabilities recommends() const
Definition SolvableType.h:122
zypp::sat::SolvableType::isPtfMaster
bool isPtfMaster() const
Definition SolvableType.h:88
zypp::sat::SolvableType::multiversionInstall
bool multiversionInstall() const
Definition SolvableType.h:82
zypp::sat::SolvableType::isPtfPackage
bool isPtfPackage() const
Definition SolvableType.h:89
zypp::sat::SolvableType::buildtime
Date buildtime() const
Definition SolvableType.h:91
zypp::sat::SolvableType::dumpOn
std::ostream & dumpOn(std::ostream &str, const SolvableType< Derived > &obj)
More verbose stream output including dependencies.
Definition SolvableType.h:179
zypp::sat::SolvableType::operator<
bool operator<(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
Less.
Definition SolvableType.h:210
zypp::sat::SolvableType::SolvableType
SolvableType()
Definition SolvableType.h:164
zypp::sat::SolvableType::operator[]
Capabilities operator[](Dep which_r) const
Definition SolvableType.h:115
zypp::sat::SolvableType::identIsAutoInstalled
bool identIsAutoInstalled() const
Definition SolvableType.h:81
zypp::sat::SolvableType::description
std::string description(const Locale &lang_r=Locale()) const
Definition SolvableType.h:146
zypp::sat::SolvableType::isRetracted
bool isRetracted() const
Definition SolvableType.h:86
ByteCount.h
CheckSum.h
Date.h