libzypp: zypp/Capability.h Source File

libzypp 17.38.13

Capability.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_CAPABILITY_H
13#define ZYPP_CAPABILITY_H
14
15#include <iosfwd>
16
17#include <zypp-core/Globals.h>
18#include <zypp/sat/detail/PoolMember.h>
19
20#include <zypp/IdString.h>
21#include <zypp/Edition.h>
22#include <zypp/Rel.h>
23#include <zypp/ResTraits.h>
24#include <zypp/ResolverNamespace.h>
25#include <zypp/CapMatch.h>
26
28namespace zypp
29{
30
31 class Capability;
32 class CapDetail;
33 class Arch;
34
35 using CapabilitySet = std::unordered_set<Capability>;
36
38 //
39 // CLASS NAME : Capability
40 //
62 class ZYPP_API Capability: protected sat::detail::PoolMember
63 {
64 public:
65 enum CtorFlag { PARSED, UNPARSED };
66
67 public:
69 Capability() : _id( sat::detail::emptyId ) {}
70
72 explicit Capability( sat::detail::IdType id_r ) : _id( id_r ) {}
73
77
89 explicit Capability( const char * str_r, const ResKind & prefix_r = ResKind(), CtorFlag flag_r = UNPARSED );
91 explicit Capability( const std::string & str_r, const ResKind & prefix_r = ResKind(), CtorFlag flag_r = UNPARSED );
93 Capability( const Arch & arch_r, const char * str_r, const ResKind & prefix_r = ResKind(), CtorFlag flag_r = UNPARSED );
95 Capability( const Arch & arch_r, const std::string & str_r, const ResKind & prefix_r = ResKind(), CtorFlag flag_r = UNPARSED );
96
98 Capability( const char * str_r, CtorFlag flag_r, const ResKind & prefix_r = ResKind() );
100 Capability( const std::string & str_r, CtorFlag flag_r, const ResKind & prefix_r = ResKind() );
102 Capability( const Arch & arch_r, const char * str_r, CtorFlag flag_r, const ResKind & prefix_r = ResKind() );
104 Capability( const Arch & arch_r, const std::string & str_r, CtorFlag flag_r, const ResKind & prefix_r = ResKind() );
106
107
111
112 Capability( const std::string & name_r, const std::string & op_r, const std::string & ed_r, const ResKind & prefix_r = ResKind() );
114 Capability( const std::string & name_r, Rel op_r, const std::string & ed_r, const ResKind & prefix_r = ResKind() );
116 Capability( const std::string & name_r, Rel op_r, const Edition & ed_r, const ResKind & prefix_r = ResKind() );
118
122
123 Capability( const std::string & arch_r, const std::string & name_r, const std::string & op_r, const std::string & ed_r, const ResKind & prefix_r = ResKind() );
125 Capability( const std::string & arch_r, const std::string & name_r, Rel op_r, const std::string & ed_r, const ResKind & prefix_r = ResKind() );
127 Capability( const std::string & arch_r, const std::string & name_r, Rel op_r, const Edition & ed_r, const ResKind & prefix_r = ResKind() );
129 Capability( const Arch & arch_r, const std::string & name_r, const std::string & op_r, const std::string & ed_r, const ResKind & prefix_r = ResKind() );
131 Capability( const Arch & arch_r, const std::string & name_r, Rel op_r, const std::string & ed_r, const ResKind & prefix_r = ResKind() );
133 Capability( const Arch & arch_r, const std::string & name_r, Rel op_r, const Edition & ed_r, const ResKind & prefix_r = ResKind() );
135
141 Capability( ResolverNamespace namespace_r, IdString value_r = IdString::Null );
142 Capability( ResolverNamespace namespace_r, const char * value_r ) : Capability( namespace_r, IdString(value_r) ) {}
143 Capability( ResolverNamespace namespace_r, const std::string & value_r ) : Capability( namespace_r, IdString(value_r) ) {}
145
148
151 enum CapRel
152 {
153 CAP_AND = 16,
154 CAP_OR = 17,
155
156 CAP_COND = 22,
157 CAP_UNLESS = 29,
158 CAP_ELSE = 26,
159
160 CAP_WITH = 18,
161 CAP_WITHOUT = 28,
162
163 CAP_NAMESPACE = 19,
164 CAP_ARCH = 20,
165 };
166
167 Capability( CapRel rel_r, const Capability & lhs_r, const Capability & rhs_r );
169
170 public:
172 static const Capability Null;
173
175 static const Capability Empty;
176
177 public:
179 explicit operator bool() const
180 { return ! empty(); }
181
185 bool empty() const
186 { return( _id == sat::detail::emptyId || _id == sat::detail::noId ); }
187
188 public:
190 const char * c_str() const;
191
193 std::string asString() const
194 { return c_str(); }
195
196 public:
198 CapDetail detail() const;
199
200 public:
211 static CapMatch matches( const Capability & lhs, const Capability & rhs ) { return _doMatch( lhs.id(), rhs.id() ); }
212 static CapMatch matches( const Capability & lhs, const IdString & rhs ) { return _doMatch( lhs.id(), rhs.id() ); }
213 static CapMatch matches( const Capability & lhs, const std::string & rhs ) { return _doMatch( lhs.id(), Capability(rhs).id() ); }
214 static CapMatch matches( const Capability & lhs, const char * rhs ) { return _doMatch( lhs.id(), Capability(rhs).id() );}
215
216 static CapMatch matches( const IdString & lhs, const Capability & rhs ) { return _doMatch( lhs.id(), rhs.id() ); }
217 static CapMatch matches( const IdString & lhs, const IdString & rhs ) { return _doMatch( lhs.id(), rhs.id() ); }
218 static CapMatch matches( const IdString & lhs, const std::string & rhs ) { return _doMatch( lhs.id(), Capability(rhs).id() ); }
219 static CapMatch matches( const IdString & lhs, const char * rhs ) { return _doMatch( lhs.id(), Capability(rhs).id() ); }
220
221 static CapMatch matches( const std::string & lhs, const Capability & rhs ) { return _doMatch( Capability(lhs).id(), rhs.id() );}
222 static CapMatch matches( const std::string & lhs, const IdString & rhs ) { return _doMatch( Capability(lhs).id(), rhs.id() ); }
223 static CapMatch matches( const std::string & lhs, const std::string & rhs ) { return _doMatch( Capability(lhs).id(), Capability(rhs).id() ); }
224 static CapMatch matches( const std::string & lhs, const char * rhs ) { return _doMatch( Capability(lhs).id(), Capability(rhs).id() ); }
225
226 static CapMatch matches( const char * lhs, const Capability & rhs ) { return _doMatch( Capability(lhs).id(), rhs.id() );}
227 static CapMatch matches( const char * lhs, const IdString & rhs ) { return _doMatch( Capability(lhs).id(), rhs.id() ); }
228 static CapMatch matches( const char * lhs, const std::string & rhs ) { return _doMatch( Capability(lhs).id(), Capability(rhs).id() ); }
229 static CapMatch matches( const char * lhs, const char * rhs ) { return _doMatch( Capability(lhs).id(), Capability(rhs).id() ); }
230
231 CapMatch matches( const Capability & rhs ) const { return _doMatch( id(), rhs.id() ); }
232 CapMatch matches( const IdString & rhs ) const { return _doMatch( id(), rhs.id() ); }
233 CapMatch matches( const std::string & rhs ) const { return _doMatch( id(), Capability(rhs).id() ); }
234 CapMatch matches( const char * rhs ) const { return _doMatch( id(), Capability(rhs).id() ); }
236
239 struct Matches
240 {
241 CapMatch operator()( const Capability & lhs, const Capability & rhs ) const
242 { return Capability::matches( lhs, rhs ); }
243 };
244
245 public:
251 static bool isInterestingFileSpec( const IdString & name_r ) { return isInterestingFileSpec( name_r.c_str() ); }
252 static bool isInterestingFileSpec( const std::string & name_r ) { return isInterestingFileSpec( name_r.c_str() ); }
253 static bool isInterestingFileSpec( const char * name_r );
254
255
280 static Capability guessPackageSpec( const std::string & str_r );
285 static Capability guessPackageSpec( const std::string & str_r, bool & rewrote_r );
286
287 public:
289 sat::detail::IdType id() const
290 { return _id; }
291 private:
293 static CapMatch _doMatch( sat::detail::IdType lhs, sat::detail::IdType rhs );
294 private:
295 sat::detail::IdType _id;
296 };
297
298
300 std::ostream & operator<<( std::ostream & str, const Capability & obj ) ZYPP_API;
301
303 std::ostream & dumpOn( std::ostream & str, const Capability & obj ) ZYPP_API;
304
306 std::ostream & operator<<( std::ostream & str, Capability::CapRel obj ) ZYPP_API;
307
309 inline bool operator==( const Capability & lhs, const Capability & rhs )
310 { return lhs.id() == rhs.id(); }
311
313 inline bool operator!=( const Capability & lhs, const Capability & rhs )
314 { return lhs.id() != rhs.id(); }
315
317 inline bool operator<( const Capability & lhs, const Capability & rhs )
318 { return lhs.id() < rhs.id(); }
319
331 struct ZYPP_API dumpCap
332 {
333 dumpCap( Capability cap_r )
334 : _cap { cap_r }
335 {}
336 private:
337 friend std::ostream & operator<<( std::ostream & str, const dumpCap & obj );
338 std::ostream & dumpOn( std::ostream & str ) const;
339 private:
340 std::ostream & _dumpRec( std::ostream & str, Capability cap_r, std::string lvl_r="" ) const;
341 Capability _cap;
342 };
343
344 inline std::ostream & operator<<( std::ostream & str, const dumpCap & obj )
345 { return obj.dumpOn( str ); }
346
348 //
349 // CLASS NAME : CapDetail
350 //
365 class ZYPP_API CapDetail: protected sat::detail::PoolMember
366 {
367 public:
368 enum Kind
369 {
370 NOCAP = 0x00,
371 NAMED = 0x01,
372 VERSIONED = 0x02,
373 EXPRESSION = 0x04
374 };
375
379 enum CapRel
380 {
381 REL_NONE = 0,
382 CAP_AND = Capability::CAP_AND,
383 CAP_OR = Capability::CAP_OR,
384
385 CAP_COND = Capability::CAP_COND,
386 CAP_UNLESS = Capability::CAP_UNLESS,
387 CAP_ELSE = Capability::CAP_ELSE,
388
389 CAP_WITH = Capability::CAP_WITH,
390 CAP_WITHOUT = Capability::CAP_WITHOUT,
391
392 CAP_NAMESPACE = Capability::CAP_NAMESPACE,
393 CAP_ARCH = Capability::CAP_ARCH,
394 };
395
396 public:
397 CapDetail()
398 : _kind( NOCAP ), _lhs( 0 ), _rhs( 0 ), _flag( 0 ), _archIfSimple( 0 )
399 {}
400 explicit CapDetail( const Capability & cap_r )
401 : _kind( NOCAP ), _lhs( cap_r.id() ), _rhs( 0 ), _flag( 0 ), _archIfSimple( 0 )
402 { _init(); }
403 explicit CapDetail( sat::detail::IdType id_r )
404 : _kind( NOCAP ), _lhs( id_r ), _rhs( 0 ), _flag( 0 ), _archIfSimple( 0 )
405 { _init(); }
406
407 public:
408 Kind kind() const { return _kind; }
409 bool isNull() const { return _kind == NOCAP; }
410 bool isNamed() const { return _kind == NAMED; }
411 bool isVersioned() const { return _kind == VERSIONED; }
412 bool isSimple() const { return _kind & (NAMED|VERSIONED); }
413 bool isExpression() const { return _kind == EXPRESSION; }
414
417 bool hasArch() const { return _archIfSimple; }
418 IdString arch() const { return _archIfSimple ? IdString( _archIfSimple ) : IdString(); }
419 IdString name() const { return isSimple() ? IdString( _lhs ) : IdString(); }
420 Rel op() const { return isVersioned() ? Rel( _flag ) : isSimple() ? Rel::ANY : Rel::NONE; }
421 Edition ed() const { return isVersioned() ? Edition( _rhs ) : Edition(); }
423
426 Capability lhs() const { return isExpression() ? Capability( _lhs ) : Capability::Null; }
427 CapRel capRel() const { return isExpression() ? CapRel(_flag) : REL_NONE; }
428 Capability rhs() const { return isExpression() ? Capability( _rhs ) : Capability::Null; }
430
431 private:
432 void _init();
433 private:
434 Kind _kind;
435 sat::detail::IdType _lhs;
436 sat::detail::IdType _rhs;
437 unsigned _flag;
438 sat::detail::IdType _archIfSimple;
439 };
440
441
443 std::ostream & operator<<( std::ostream & str, const CapDetail & obj ) ZYPP_API;
444
446 std::ostream & operator<<( std::ostream & str, CapDetail::Kind obj ) ZYPP_API;
447
449 std::ostream & operator<<( std::ostream & str, CapDetail::CapRel obj ) ZYPP_API;
450
452
453 inline CapDetail Capability::detail() const { return CapDetail( _id ); }
454
456} // namespace zypp
458
459 ZYPP_DEFINE_ID_HASHABLE( ::zypp::Capability );
460
461#endif // ZYPP_CAPABILITY_H
CapMatch.h
Edition.h
Globals.h
Provides API related macros.
ZYPP_DEFINE_ID_HASHABLE
#define ZYPP_DEFINE_ID_HASHABLE(C)
Define hash function for id based classes.
Definition Hash.h:26
IdString.h
PoolMember.h
Rel.h
ResTraits.h
ResolverNamespace.h
bool
zypp::Arch
Architecture.
Definition Arch.h:37
zypp::CapDetail
Helper providing more detailed information about a Capability.
Definition Capability.h:366
zypp::CapDetail::CapDetail
CapDetail(const Capability &cap_r)
Definition Capability.h:400
zypp::CapDetail::CapDetail
CapDetail()
Definition Capability.h:397
zypp::CapDetail::isNamed
bool isNamed() const
Definition Capability.h:410
zypp::CapDetail::Kind
Kind
Definition Capability.h:369
zypp::CapDetail::NAMED
@ NAMED
Definition Capability.h:371
zypp::CapDetail::NOCAP
@ NOCAP
Definition Capability.h:370
zypp::CapDetail::EXPRESSION
@ EXPRESSION
Definition Capability.h:373
zypp::CapDetail::VERSIONED
@ VERSIONED
Definition Capability.h:372
zypp::CapDetail::isSimple
bool isSimple() const
Definition Capability.h:412
zypp::CapDetail::name
IdString name() const
Definition Capability.h:419
zypp::CapDetail::isNull
bool isNull() const
Definition Capability.h:409
zypp::CapDetail::hasArch
bool hasArch() const
Definition Capability.h:417
zypp::CapDetail::CapDetail
CapDetail(sat::detail::IdType id_r)
Definition Capability.h:403
zypp::CapDetail::arch
IdString arch() const
Definition Capability.h:418
zypp::CapDetail::rhs
Capability rhs() const
Definition Capability.h:428
zypp::CapDetail::ed
Edition ed() const
Definition Capability.h:421
zypp::CapDetail::op
Rel op() const
Definition Capability.h:420
zypp::CapDetail::_archIfSimple
sat::detail::IdType _archIfSimple
Definition Capability.h:438
zypp::CapDetail::lhs
Capability lhs() const
Definition Capability.h:426
zypp::CapDetail::kind
Kind kind() const
Definition Capability.h:408
zypp::CapDetail::_init
void _init()
Definition Capability.cc:641
zypp::CapDetail::_kind
Kind _kind
Definition Capability.h:434
zypp::CapDetail::_rhs
sat::detail::IdType _rhs
Definition Capability.h:436
zypp::CapDetail::capRel
CapRel capRel() const
Definition Capability.h:427
zypp::CapDetail::_lhs
sat::detail::IdType _lhs
Definition Capability.h:435
zypp::CapDetail::_flag
unsigned _flag
Definition Capability.h:437
zypp::CapDetail::CapRel
CapRel
Enum values corresponding with libsolv defines.
Definition Capability.h:380
zypp::CapDetail::CAP_OR
@ CAP_OR
or
Definition Capability.h:383
zypp::CapDetail::REL_NONE
@ REL_NONE
Not an expression.
Definition Capability.h:381
zypp::CapDetail::CAP_AND
@ CAP_AND
and
Definition Capability.h:382
zypp::CapDetail::CAP_WITHOUT
@ CAP_WITHOUT
without
Definition Capability.h:390
zypp::CapDetail::CAP_ARCH
@ CAP_ARCH
Used internally.
Definition Capability.h:393
zypp::CapDetail::CAP_ELSE
@ CAP_ELSE
else
Definition Capability.h:387
zypp::CapDetail::CAP_UNLESS
@ CAP_UNLESS
unless
Definition Capability.h:386
zypp::CapDetail::CAP_NAMESPACE
@ CAP_NAMESPACE
Definition Capability.h:392
zypp::CapDetail::CAP_WITH
@ CAP_WITH
with
Definition Capability.h:389
zypp::CapDetail::CAP_COND
@ CAP_COND
if
Definition Capability.h:385
zypp::CapDetail::isVersioned
bool isVersioned() const
Definition Capability.h:411
zypp::CapDetail::isExpression
bool isExpression() const
Definition Capability.h:413
zypp::CapMatch
Tri state Capability match result.
Definition CapMatch.h:39
zypp::Capability
A sat capability.
Definition Capability.h:63
zypp::Capability::matches
static CapMatch matches(const char *lhs, const char *rhs)
Definition Capability.h:229
zypp::Capability::matches
static CapMatch matches(const IdString &lhs, const std::string &rhs)
Definition Capability.h:218
zypp::Capability::Capability
Capability(ResolverNamespace namespace_r, const char *value_r)
Definition Capability.h:142
zypp::Capability::id
sat::detail::IdType id() const
Expert backdoor.
Definition Capability.h:289
zypp::Capability::matches
CapMatch matches(const char *rhs) const
Definition Capability.h:234
zypp::Capability::matches
static CapMatch matches(const char *lhs, const IdString &rhs)
Definition Capability.h:227
zypp::Capability::asString
std::string asString() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition Capability.h:193
zypp::Capability::matches
CapMatch matches(const IdString &rhs) const
Definition Capability.h:232
zypp::Capability::matches
static CapMatch matches(const std::string &lhs, const Capability &rhs)
Definition Capability.h:221
zypp::Capability::matches
static CapMatch matches(const Capability &lhs, const std::string &rhs)
Definition Capability.h:213
zypp::Capability::matches
CapMatch matches(const std::string &rhs) const
Definition Capability.h:233
zypp::Capability::matches
static CapMatch matches(const IdString &lhs, const Capability &rhs)
Definition Capability.h:216
zypp::Capability::Null
static const Capability Null
No or Null Capability ( Id 0 ).
Definition Capability.h:172
zypp::Capability::matches
static CapMatch matches(const IdString &lhs, const char *rhs)
Definition Capability.h:219
zypp::Capability::matches
static CapMatch matches(const Capability &lhs, const Capability &rhs)
Definition Capability.h:211
zypp::Capability::matches
CapMatch matches(const Capability &rhs) const
Definition Capability.h:231
zypp::Capability::_id
sat::detail::IdType _id
Definition Capability.h:295
zypp::Capability::Capability
Capability()
Default ctor, Empty capability.
Definition Capability.h:69
zypp::Capability::empty
bool empty() const
Whether the Capability is empty.
Definition Capability.h:185
zypp::Capability::CapRel
CapRel
Enum values correspond with libsolv defines.
Definition Capability.h:152
zypp::Capability::CAP_OR
@ CAP_OR
or
Definition Capability.h:154
zypp::Capability::CAP_WITH
@ CAP_WITH
with
Definition Capability.h:160
zypp::Capability::CAP_WITHOUT
@ CAP_WITHOUT
without
Definition Capability.h:161
zypp::Capability::CAP_COND
@ CAP_COND
if
Definition Capability.h:156
zypp::Capability::CAP_ELSE
@ CAP_ELSE
else
Definition Capability.h:158
zypp::Capability::CAP_ARCH
@ CAP_ARCH
Used internally.
Definition Capability.h:164
zypp::Capability::CAP_UNLESS
@ CAP_UNLESS
unless
Definition Capability.h:157
zypp::Capability::CAP_NAMESPACE
@ CAP_NAMESPACE
Definition Capability.h:163
zypp::Capability::CAP_AND
@ CAP_AND
and
Definition Capability.h:153
zypp::Capability::detail
CapDetail detail() const
Helper providing more detailed information about a Capability.
Definition Capability.h:453
zypp::Capability::matches
static CapMatch matches(const Capability &lhs, const char *rhs)
Definition Capability.h:214
zypp::Capability::matches
static CapMatch matches(const std::string &lhs, const IdString &rhs)
Definition Capability.h:222
zypp::Capability::c_str
const char * c_str() const
Conversion to const char *.
Definition Capability.cc:447
zypp::Capability::_doMatch
static CapMatch _doMatch(sat::detail::IdType lhs, sat::detail::IdType rhs)
Match two Capabilities.
Definition Capability.cc:459
zypp::Capability::isInterestingFileSpec
static bool isInterestingFileSpec(const IdString &name_r)
Test for a filename that is likely being REQUIRED.
Definition Capability.h:251
zypp::Capability::matches
static CapMatch matches(const Capability &lhs, const IdString &rhs)
Definition Capability.h:212
zypp::Capability::Capability
Capability(ResolverNamespace namespace_r, const std::string &value_r)
Definition Capability.h:143
zypp::Capability::CtorFlag
CtorFlag
Definition Capability.h:65
zypp::Capability::PARSED
@ PARSED
Definition Capability.h:65
zypp::Capability::UNPARSED
@ UNPARSED
Definition Capability.h:65
zypp::Capability::Empty
static const Capability Empty
Empty Capability.
Definition Capability.h:175
zypp::Capability::isInterestingFileSpec
static bool isInterestingFileSpec(const std::string &name_r)
Definition Capability.h:252
zypp::Capability::Capability
Capability(sat::detail::IdType id_r)
Ctor from id.
Definition Capability.h:72
zypp::Capability::matches
static CapMatch matches(const IdString &lhs, const IdString &rhs)
Definition Capability.h:217
zypp::Capability::matches
static CapMatch matches(const char *lhs, const Capability &rhs)
Definition Capability.h:226
zypp::Capability::matches
static CapMatch matches(const char *lhs, const std::string &rhs)
Definition Capability.h:228
zypp::Capability::matches
static CapMatch matches(const std::string &lhs, const char *rhs)
Definition Capability.h:224
zypp::Capability::matches
static CapMatch matches(const std::string &lhs, const std::string &rhs)
Definition Capability.h:223
zypp::Edition
Edition represents [epoch:]version[-release].
Definition Edition.h:60
zypp::IdString
Access to the sat-pools string space.
Definition IdString.h:55
zypp::IdString::c_str
const char * c_str() const
Conversion to const char *.
Definition IdString.cc:51
zypp::IdString::id
IdType id() const
Expert backdoor.
Definition IdString.h:144
zypp::IdString::Null
static const IdString Null
No or Null string ( Id 0 ).
Definition IdString.h:86
zypp::ResKind
Resolvable kinds.
Definition ResKind.h:33
str
String related utilities and Regular expression matching.
zypp::sat::detail::emptyId
static const IdType emptyId(1)
zypp::sat::detail::noId
static const IdType noId(0)
zypp::sat::detail::IdType
int IdType
Generic Id type.
Definition PoolDefines.h:42
zypp::sat
Libsolv interface
zypp::solver::detail
Definition PoolImpl.h:110
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zypp::ResolverNamespace
ResolverNamespace
The resolver's dependency namespaces.
Definition ResolverNamespace.h:25
zypp::operator<
bool operator<(const Capability &lhs, const Capability &rhs)
relates: Capability Arbitrary order.
Definition Capability.h:317
zypp::operator!=
bool operator!=(const Capability &lhs, const Capability &rhs)
relates: Capability
Definition Capability.h:313
zypp::operator==
bool operator==(const Capability &lhs, const Capability &rhs)
relates: Capability
Definition Capability.h:309
zypp::CapabilitySet
std::unordered_set< Capability > CapabilitySet
Definition Capability.h:35
zypp::ZYPP_API
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition Arch.h:173
zypp::dumpOn
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
relates: Capability Detailed stream output
Definition Capability.cc:589
zypp::operator<<
std::ostream & operator<<(std::ostream &str, const Capabilities &obj)
relates: Capabilities Stream output
Definition Capabilities.cc:65
zypp::Capability::Matches
matches functor.
Definition Capability.h:240
zypp::Capability::Matches::operator()
CapMatch operator()(const Capability &lhs, const Capability &rhs) const
Definition Capability.h:241
zypp::Rel
Relational operators.
Definition Rel.h:46
zypp::Rel::NONE
static const Rel NONE
Definition Rel.h:59
zypp::Rel::ANY
static const Rel ANY
Definition Rel.h:58
zypp::dumpCap
relates: Capability IOManip to dump a complex Capability as tree.
Definition Capability.h:332
zypp::dumpCap::_cap
Capability _cap
Definition Capability.h:341
zypp::dumpCap::dumpCap
dumpCap(Capability cap_r)
Definition Capability.h:333
zypp::dumpCap::dumpOn
std::ostream & dumpOn(std::ostream &str) const
Definition Capability.cc:611
zypp::sat::detail::PoolMember
Backlink to the associated PoolImpl.
Definition PoolMember.h:53