libzypp: zypp/ResPool.h Source File

libzypp 17.38.6

ResPool.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_RESPOOL_H
13#define ZYPP_RESPOOL_H
14
15#include <iosfwd>
16#include <utility>
17
18#include <zypp-core/Globals.h>
19#include <zypp-core/base/Iterator.h>
20
21#include <zypp/pool/PoolTraits.h>
22#include <zypp/PoolItem.h>
23#include <zypp/Filter.h>
24
26namespace zypp
27{
28
29 class SerialNumber;
30 class ResPoolProxy;
31 class Resolver;
32
34 //
35 // CLASS NAME : ResPool
36 //
61 class ZYPP_API ResPool
62 {
63 friend std::ostream & operator<<( std::ostream & str, const ResPool & obj );
64
65 public:
67 using value_type = PoolItem;
68 using size_type = pool::PoolTraits::size_type;
69 using const_iterator = pool::PoolTraits::const_iterator;
70 using repository_iterator = pool::PoolTraits::repository_iterator;
71
72 public:
74 static ResPool instance();
75
77 ResPoolProxy proxy() const;
78
80 Resolver & resolver() const;
81
82 public:
87 const SerialNumber & serial() const;
88
89 public:
91 bool empty() const;
93 size_type size() const;
94
97
98 const_iterator begin() const
99 { return make_filter_begin( pool::ByPoolItem(), store() ); }
100
101 const_iterator end() const
102 { return make_filter_end( pool::ByPoolItem(), store() ); }
103
104
105 public:
111 PoolItem find( const sat::Solvable & slv_r ) const;
113 PoolItem find( const ResObject::constPtr & resolvable_r ) const
114 { return( resolvable_r ? find( resolvable_r->satSolvable() ) : PoolItem() ); }
115
116 public:
119 template<class TFilter>
120 filter_iterator<TFilter,const_iterator> filterBegin( const TFilter & filter_r ) const
121 { return make_filter_begin( filter_r, *this ); }
122
123 template<class TFilter>
124 filter_iterator<TFilter,const_iterator> filterEnd( const TFilter & filter_r ) const
125 { return make_filter_end( filter_r, *this ); }
126
127 template<class TFilter>
128 Iterable<filter_iterator<TFilter,const_iterator> > filter( const TFilter & filter_r ) const
129 { return makeIterable( filterBegin( filter_r ), filterEnd( filter_r ) ); }
130
131
151 filter_iterator<filter::ByStatus,const_iterator> byStatusBegin( const filter::ByStatus & filter_r ) const
152 { return make_filter_begin( filter_r, *this ); }
153
154 filter_iterator<filter::ByStatus,const_iterator> byStatusEnd( const filter::ByStatus & filter_r ) const
155 { return make_filter_end( filter_r, *this ); }
156
157 Iterable<filter_iterator<filter::ByStatus,const_iterator> > byStatus( const filter::ByStatus & filter_r ) const
158 { return makeIterable( byStatusBegin( filter_r ), byStatusEnd( filter_r ) ); }
159
160
161 public:
164 using ByIdent = pool::ByIdent;
165 using byIdent_iterator = pool::PoolTraits::byIdent_iterator;
166
167 byIdent_iterator byIdentBegin( const ByIdent & ident_r ) const
168 {
169 return make_transform_iterator( id2item().equal_range( ident_r.get() ).first,
170 pool::PoolTraits::Id2ItemValueSelector() );
171 }
172
173 byIdent_iterator byIdentBegin( ResKind kind_r, IdString name_r ) const
174 { return byIdentBegin( ByIdent(std::move(kind_r),name_r) ); }
175
176 byIdent_iterator byIdentBegin( ResKind kind_r, const C_Str & name_r ) const
177 { return byIdentBegin( ByIdent(std::move(kind_r),name_r) ); }
178
179 template<class TRes>
180 byIdent_iterator byIdentBegin( IdString name_r ) const
181 { return byIdentBegin( ByIdent(ResTraits<TRes>::kind,name_r) ); }
182
183 template<class TRes>
184 byIdent_iterator byIdentBegin( const C_Str & name_r ) const
185 { return byIdentBegin( ByIdent(ResTraits<TRes>::kind,name_r) ); }
186
188 byIdent_iterator byIdentBegin( const PoolItem & pi_r ) const
189 { return byIdentBegin( ByIdent(pi_r.satSolvable()) ); }
190
191 byIdent_iterator byIdentBegin( sat::Solvable slv_r ) const
192 { return byIdentBegin( ByIdent(slv_r) ); }
193
194 byIdent_iterator byIdentBegin( IdString ident_r ) const
195 { return byIdentBegin( ByIdent(ident_r) ); }
196
197
198 byIdent_iterator byIdentEnd( const ByIdent & ident_r ) const
199 {
200 return make_transform_iterator( id2item().equal_range( ident_r.get() ).second,
201 pool::PoolTraits::Id2ItemValueSelector() );
202 }
203
204 byIdent_iterator byIdentEnd( ResKind kind_r, IdString name_r ) const
205 { return byIdentEnd( ByIdent(std::move(kind_r),name_r) ); }
206
207 byIdent_iterator byIdentEnd( ResKind kind_r, const C_Str & name_r ) const
208 { return byIdentEnd( ByIdent(std::move(kind_r),name_r) ); }
209
210 template<class TRes>
211 byIdent_iterator byIdentEnd( IdString name_r ) const
212 { return byIdentEnd( ByIdent(ResTraits<TRes>::kind,name_r) ); }
213
214 template<class TRes>
215 byIdent_iterator byIdentEnd( const C_Str & name_r ) const
216 { return byIdentEnd( ByIdent(ResTraits<TRes>::kind,name_r) ); }
217
219 byIdent_iterator byIdentEnd( const PoolItem & pi_r ) const
220 { return byIdentEnd( ByIdent(pi_r.satSolvable()) ); }
221
222 byIdent_iterator byIdentEnd( sat::Solvable slv_r ) const
223 { return byIdentEnd( ByIdent(slv_r) ); }
224
225 byIdent_iterator byIdentEnd( IdString ident_r ) const
226 { return byIdentEnd( ByIdent(ident_r) ); }
227
228
229 Iterable<byIdent_iterator> byIdent( const ByIdent & ident_r ) const
230 { return makeIterable( byIdentBegin( ident_r ), byIdentEnd( ident_r ) ); }
231
232 Iterable<byIdent_iterator> byIdent( const ResKind& kind_r, IdString name_r ) const
233 { return makeIterable( byIdentBegin( kind_r, name_r ), byIdentEnd( kind_r, name_r ) ); }
234
235 Iterable<byIdent_iterator> byIdent( const ResKind& kind_r, const C_Str & name_r ) const
236 { return makeIterable( byIdentBegin( kind_r, name_r ), byIdentEnd( kind_r, name_r ) ); }
237
238 template<class TRes>
239 Iterable<byIdent_iterator> byIdent( IdString name_r ) const
240 { return makeIterable( byIdentBegin<TRes>( name_r ), byIdentEnd<TRes>( name_r ) ); }
241
242 template<class TRes>
243 Iterable<byIdent_iterator> byIdent( const C_Str & name_r ) const
244 { return makeIterable( byIdentBegin<TRes>( name_r ), byIdentEnd<TRes>( name_r ) ); }
245
246 Iterable<byIdent_iterator> byIdent( const PoolItem & pi_r ) const
247 { return makeIterable( byIdentBegin( pi_r ), byIdentEnd( pi_r ) ); }
248
249 Iterable<byIdent_iterator> byIdent(sat::Solvable slv_r ) const
250 { return makeIterable( byIdentBegin( slv_r ), byIdentEnd( slv_r ) ); }
251
252 Iterable<byIdent_iterator> byIdent( IdString ident_r ) const
253 { return makeIterable( byIdentBegin( ident_r ), byIdentEnd( ident_r ) ); }
254
255
256 public:
259 using ByKind = filter::ByKind;
260 using byKind_iterator = filter_iterator<ByKind, const_iterator>;
261
262 byKind_iterator byKindBegin( const ResKind & kind_r ) const
263 { return make_filter_begin( ByKind(kind_r), *this ); }
264
265 template<class TRes>
266 byKind_iterator byKindBegin() const
267 { return make_filter_begin( resfilter::byKind<TRes>(), *this ); }
268
269 byKind_iterator byKindEnd( const ResKind & kind_r ) const
270 { return make_filter_end( ByKind(kind_r), *this ); }
271
272 template<class TRes>
273 byKind_iterator byKindEnd() const
274 { return make_filter_end( resfilter::byKind<TRes>(), *this ); }
275
276 Iterable<byKind_iterator> byKind( const ResKind & kind_r ) const
277 { return makeIterable( byKindBegin( kind_r ), byKindEnd( kind_r ) ); }
278
279 template<class TRes>
280 Iterable<byKind_iterator> byKind() const
281 { return makeIterable( byKindBegin<TRes>(), byKindEnd<TRes>() ); }
282
283
284 public:
287 using ByName = zypp::resfilter::ByName;
288 using byName_iterator = filter_iterator<ByName, const_iterator>;
289
290 byName_iterator byNameBegin( const std::string & name_r ) const
291 { return make_filter_begin( ByName(name_r), *this ); }
292
293 byName_iterator byNameEnd( const std::string & name_r ) const
294 { return make_filter_end( ByName(name_r), *this ); }
295
296 Iterable<byName_iterator> byName( const std::string & name_r ) const
297 { return makeIterable( byNameBegin( name_r ), byNameEnd( name_r ) ); }
298
299
300 public:
303
314 class EstablishedStates
315 {
316 public:
317 ~EstablishedStates();
319 using ChangedPseudoInstalled = std::map<PoolItem, ResStatus::ValidateValue>;
321 ChangedPseudoInstalled changedPseudoInstalled() const;
322 private:
323 class Impl;
324 RW_pointer<Impl> _pimpl;
325 private:
326 friend class pool::PoolImpl;
328 EstablishedStates( shared_ptr<Impl> pimpl_r )
329 : _pimpl { std::move(pimpl_r) }
330 {}
331 };
332
333
339 EstablishedStates establishedStates() const;
340
342 using ChangedPseudoInstalled = EstablishedStates::ChangedPseudoInstalled;
343
350 ChangedPseudoInstalled changedPseudoInstalled() const
351 { return establishedStates().changedPseudoInstalled(); }
352
353 public:
357 size_type knownRepositoriesSize() const;
358
359 repository_iterator knownRepositoriesBegin() const;
360
361 repository_iterator knownRepositoriesEnd() const;
362
366 Repository reposFind( const std::string & alias_r ) const;
367
368 Iterable<repository_iterator> knownRepositories() const
369 { return makeIterable( knownRepositoriesBegin(), knownRepositoriesEnd() ); }
370
371
372 public:
397
401 void setRequestedLocales( const LocaleSet & locales_r );
402
406 bool addRequestedLocale( const Locale & locale_r );
407
411 bool eraseRequestedLocale( const Locale & locale_r );
412
416 const LocaleSet & getRequestedLocales() const;
417
419 bool isRequestedLocale( const Locale & locale_r ) const;
420
425 const LocaleSet & getAvailableLocales() const;
426
428 bool isAvailableLocale( const Locale & locale_r ) const;
430
431 public:
439 using HardLockQueries = pool::PoolTraits::HardLockQueries;
440 using hardLockQueries_iterator = pool::PoolTraits::hardLockQueries_iterator;
441
442 bool hardLockQueriesEmpty() const;
443 size_type hardLockQueriesSize() const;
444 hardLockQueries_iterator hardLockQueriesBegin() const;
445 hardLockQueries_iterator hardLockQueriesEnd() const;
446
447 Iterable<hardLockQueries_iterator> hardLockQueries() const
448 { return makeIterable( hardLockQueriesBegin(), hardLockQueriesEnd() ); }
449
454 void setHardLockQueries( const HardLockQueries & newLocks_r );
455
459 void getHardLockQueries( HardLockQueries & activeLocks_r );
461
462 private:
463 const pool::PoolTraits::ItemContainerT & store() const;
464 const pool::PoolTraits::Id2ItemT & id2item() const;
465
466 private:
468 ResPool( pool::PoolTraits::Impl_Ptr impl_r );
470 RW_pointer<pool::PoolTraits::Impl> _pimpl;
471 };
472
473
475 std::ostream & operator<<( std::ostream & str, const ResPool & obj ) ZYPP_API;
476
478} // namespace zypp
480
481#include <zypp/ResPoolProxy.h>
482
483#endif // ZYPP_RESPOOL_H
Filter.h
Globals.h
Provides API related macros.
Iterator.h
PoolItem.h
PoolTraits.h
ResPoolProxy.h
filter_iterator
An iterator over the subset of elements of some sequence which satisfy a given predicate.
shared_ptr
zypp::C_Str
Convenience char* constructible from std::string and char*, it maps (char*)0 to an empty string.
Definition String.h:92
zypp::IdString
Access to the sat-pools string space.
Definition IdString.h:55
zypp::Iterable
Definition Iterable.h:37
zypp::Locale
'Language[_Country]' codes.
Definition Locale.h:51
zypp::PoolItem
Combining sat::Solvable and ResStatus.
Definition PoolItem.h:51
zypp::Repository
Definition Repository.h:40
zypp::ResKind
Resolvable kinds.
Definition ResKind.h:33
zypp::ResObject::constPtr
TraitsType::constPtrType constPtr
Definition ResObject.h:43
zypp::ResPoolProxy
ResPool::instance().proxy();.
Definition ResPoolProxy.h:36
zypp::ResPool::EstablishedStates::Impl
Store initial establish status of pseudo installed items.
Definition PoolImpl.h:118
zypp::ResPool::EstablishedStates::_pimpl
RW_pointer< Impl > _pimpl
Definition ResPool.h:324
zypp::ResPool::EstablishedStates::changedPseudoInstalled
ChangedPseudoInstalled changedPseudoInstalled() const
Return all pseudo installed items whose current state differs from the established one.
Definition PoolImpl.cc:26
zypp::ResPool::EstablishedStates::EstablishedStates
EstablishedStates(shared_ptr< Impl > pimpl_r)
Factory: ResPool::establishedStates.
Definition ResPool.h:328
zypp::ResPool::EstablishedStates::ChangedPseudoInstalled
std::map< PoolItem, ResStatus::ValidateValue > ChangedPseudoInstalled
Map holding pseudo installed items where current and established status differ.
Definition ResPool.h:319
zypp::ResPool
Global ResObject pool.
Definition ResPool.h:62
zypp::ResPool::const_iterator
pool::PoolTraits::const_iterator const_iterator
Definition ResPool.h:69
zypp::ResPool::hardLockQueriesBegin
hardLockQueries_iterator hardLockQueriesBegin() const
Definition ResPool.cc:98
zypp::ResPool::store
const pool::PoolTraits::ItemContainerT & store() const
Definition ResPool.cc:111
zypp::ResPool::hardLockQueriesEmpty
bool hardLockQueriesEmpty() const
Definition ResPool.cc:92
zypp::ResPool::HardLockQueries
pool::PoolTraits::HardLockQueries HardLockQueries
Definition ResPool.h:439
zypp::ResPool::byNameEnd
byName_iterator byNameEnd(const std::string &name_r) const
Definition ResPool.h:293
zypp::ResPool::filterEnd
filter_iterator< TFilter, const_iterator > filterEnd(const TFilter &filter_r) const
Definition ResPool.h:124
zypp::ResPool::ResPool
ResPool(pool::PoolTraits::Impl_Ptr impl_r)
Ctor.
Definition ResPool.cc:49
zypp::ResPool::byIdent_iterator
pool::PoolTraits::byIdent_iterator byIdent_iterator
Definition ResPool.h:165
zypp::ResPool::find
PoolItem find(const sat::Solvable &slv_r) const
Return the corresponding PoolItem.
Definition ResPool.cc:74
zypp::ResPool::byIdent
Iterable< byIdent_iterator > byIdent(IdString name_r) const
Definition ResPool.h:239
zypp::ResPool::instance
static ResPool instance()
Singleton ctor.
Definition ResPool.cc:38
zypp::ResPool::byIdentEnd
byIdent_iterator byIdentEnd(const PoolItem &pi_r) const
Derive name and kind from PoolItem.
Definition ResPool.h:219
zypp::ResPool::byStatusEnd
filter_iterator< filter::ByStatus, const_iterator > byStatusEnd(const filter::ByStatus &filter_r) const
Definition ResPool.h:154
zypp::ResPool::empty
bool empty() const
Definition ResPool.cc:68
zypp::ResPool::knownRepositoriesBegin
repository_iterator knownRepositoriesBegin() const
Definition ResPool.cc:83
zypp::ResPool::byKindEnd
byKind_iterator byKindEnd() const
Definition ResPool.h:273
zypp::ResPool::byIdentEnd
byIdent_iterator byIdentEnd(ResKind kind_r, IdString name_r) const
Definition ResPool.h:204
zypp::ResPool::byIdentBegin
byIdent_iterator byIdentBegin(IdString ident_r) const
Takes a sat::Solvable::ident string.
Definition ResPool.h:194
zypp::ResPool::byKind
Iterable< byKind_iterator > byKind() const
Definition ResPool.h:280
zypp::ResPool::byIdent
Iterable< byIdent_iterator > byIdent(const ResKind &kind_r, const C_Str &name_r) const
Definition ResPool.h:235
zypp::ResPool::ByKind
filter::ByKind ByKind
Definition ResPool.h:259
zypp::ResPool::filter
Iterable< filter_iterator< TFilter, const_iterator > > filter(const TFilter &filter_r) const
Definition ResPool.h:128
zypp::ResPool::byIdentBegin
byIdent_iterator byIdentBegin(IdString name_r) const
Definition ResPool.h:180
zypp::ResPool::resolver
Resolver & resolver() const
The Resolver.
Definition ResPool.cc:62
zypp::ResPool::proxy
ResPoolProxy proxy() const
preliminary
Definition ResPool.cc:59
zypp::ResPool::byIdentBegin
byIdent_iterator byIdentBegin(const PoolItem &pi_r) const
Derive name and kind from PoolItem.
Definition ResPool.h:188
zypp::ResPool::end
const_iterator end() const
Definition ResPool.h:101
zypp::ResPool::filterBegin
filter_iterator< TFilter, const_iterator > filterBegin(const TFilter &filter_r) const
Definition ResPool.h:120
zypp::ResPool::hardLockQueries
Iterable< hardLockQueries_iterator > hardLockQueries() const
Definition ResPool.h:447
zypp::ResPool::byIdentEnd
byIdent_iterator byIdentEnd(IdString ident_r) const
Takes a sat::Solvable::ident string.
Definition ResPool.h:225
zypp::ResPool::changedPseudoInstalled
ChangedPseudoInstalled changedPseudoInstalled() const
Return all pseudo installed items whose current state differs from their initial one.
Definition ResPool.h:350
zypp::ResPool::repository_iterator
pool::PoolTraits::repository_iterator repository_iterator
Definition ResPool.h:70
zypp::ResPool::byIdent
Iterable< byIdent_iterator > byIdent(const C_Str &name_r) const
Definition ResPool.h:243
zypp::ResPool::byKindEnd
byKind_iterator byKindEnd(const ResKind &kind_r) const
Definition ResPool.h:269
zypp::ResPool::byName
Iterable< byName_iterator > byName(const std::string &name_r) const
Definition ResPool.h:296
zypp::ResPool::knownRepositoriesEnd
repository_iterator knownRepositoriesEnd() const
Definition ResPool.cc:86
zypp::ResPool::ByIdent
pool::ByIdent ByIdent
Definition ResPool.h:164
zypp::ResPool::byKindBegin
byKind_iterator byKindBegin() const
Definition ResPool.h:266
zypp::ResPool::byIdentBegin
byIdent_iterator byIdentBegin(const C_Str &name_r) const
Definition ResPool.h:184
zypp::ResPool::byIdent
Iterable< byIdent_iterator > byIdent(const ResKind &kind_r, IdString name_r) const
Definition ResPool.h:232
zypp::ResPool::hardLockQueries_iterator
pool::PoolTraits::hardLockQueries_iterator hardLockQueries_iterator
Definition ResPool.h:440
zypp::ResPool::ByName
zypp::resfilter::ByName ByName
Definition ResPool.h:287
zypp::ResPool::hardLockQueriesSize
size_type hardLockQueriesSize() const
Definition ResPool.cc:95
zypp::ResPool::byNameBegin
byName_iterator byNameBegin(const std::string &name_r) const
Definition ResPool.h:290
zypp::ResPool::id2item
const pool::PoolTraits::Id2ItemT & id2item() const
Definition ResPool.cc:114
zypp::ResPool::byKind_iterator
filter_iterator< ByKind, const_iterator > byKind_iterator
Definition ResPool.h:260
zypp::ResPool::byStatusBegin
filter_iterator< filter::ByStatus, const_iterator > byStatusBegin(const filter::ByStatus &filter_r) const
Definition ResPool.h:151
zypp::ResPool::byIdent
Iterable< byIdent_iterator > byIdent(IdString ident_r) const
Definition ResPool.h:252
zypp::ResPool::establishedStates
EstablishedStates establishedStates() const
Factory for EstablishedStates.
Definition ResPool.cc:77
zypp::ResPool::_pimpl
RW_pointer< pool::PoolTraits::Impl > _pimpl
Access to implementation.
Definition ResPool.h:470
zypp::ResPool::serial
const SerialNumber & serial() const
The pools serial number.
Definition ResPool.cc:65
zypp::ResPool::byIdentEnd
byIdent_iterator byIdentEnd(sat::Solvable slv_r) const
Derive name and kind from sat::Solvable.
Definition ResPool.h:222
zypp::ResPool::byIdent
Iterable< byIdent_iterator > byIdent(sat::Solvable slv_r) const
Definition ResPool.h:249
zypp::ResPool::byIdentBegin
byIdent_iterator byIdentBegin(sat::Solvable slv_r) const
Derive name and kind from sat::Solvable.
Definition ResPool.h:191
zypp::ResPool::size_type
pool::PoolTraits::size_type size_type
Definition ResPool.h:68
zypp::ResPool::byKindBegin
byKind_iterator byKindBegin(const ResKind &kind_r) const
Definition ResPool.h:262
zypp::ResPool::begin
const_iterator begin() const
Definition ResPool.h:98
zypp::ResPool::byKind
Iterable< byKind_iterator > byKind(const ResKind &kind_r) const
Definition ResPool.h:276
zypp::ResPool::byIdent
Iterable< byIdent_iterator > byIdent(const ByIdent &ident_r) const
Definition ResPool.h:229
zypp::ResPool::byIdentEnd
byIdent_iterator byIdentEnd(IdString name_r) const
Definition ResPool.h:211
zypp::ResPool::byIdentBegin
byIdent_iterator byIdentBegin(ResKind kind_r, IdString name_r) const
Definition ResPool.h:173
zypp::ResPool::value_type
PoolItem value_type
PoolItem
Definition ResPool.h:67
zypp::ResPool::byIdentEnd
byIdent_iterator byIdentEnd(const C_Str &name_r) const
Definition ResPool.h:215
zypp::ResPool::find
PoolItem find(const ResObject::constPtr &resolvable_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition ResPool.h:113
zypp::ResPool::byName_iterator
filter_iterator< ByName, const_iterator > byName_iterator
Definition ResPool.h:288
zypp::ResPool::size
size_type size() const
Definition ResPool.cc:71
zypp::ResPool::byIdentBegin
byIdent_iterator byIdentBegin(ResKind kind_r, const C_Str &name_r) const
Definition ResPool.h:176
zypp::ResPool::knownRepositories
Iterable< repository_iterator > knownRepositories() const
Definition ResPool.h:368
zypp::ResPool::byIdentBegin
byIdent_iterator byIdentBegin(const ByIdent &ident_r) const
Definition ResPool.h:167
zypp::ResPool::byIdentEnd
byIdent_iterator byIdentEnd(const ByIdent &ident_r) const
Definition ResPool.h:198
zypp::ResPool::hardLockQueriesEnd
hardLockQueries_iterator hardLockQueriesEnd() const
Definition ResPool.cc:101
zypp::ResPool::ChangedPseudoInstalled
EstablishedStates::ChangedPseudoInstalled ChangedPseudoInstalled
Map holding pseudo installed items where current and established status differ.
Definition ResPool.h:342
zypp::ResPool::byIdentEnd
byIdent_iterator byIdentEnd(ResKind kind_r, const C_Str &name_r) const
Definition ResPool.h:207
zypp::ResPool::byIdent
Iterable< byIdent_iterator > byIdent(const PoolItem &pi_r) const
Definition ResPool.h:246
zypp::ResPool::byStatus
Iterable< filter_iterator< filter::ByStatus, const_iterator > > byStatus(const filter::ByStatus &filter_r) const
Definition ResPool.h:157
zypp::Resolver
Dependency resolver interface.
Definition Resolver.h:45
zypp::SerialNumber
Simple serial number provider.
Definition SerialNumber.h:45
zypp::filter::ByKind
Filter solvables according to their kind.
Definition Filter.h:107
zypp::filter::ByStatus
Filter solvables according to their status.
Definition Filter.h:143
zypp::pool::ByIdent
Main filter selecting PoolItems by name and kind.
Definition ByIdent.h:29
zypp::pool::ByIdent::get
sat::detail::IdType get() const
Definition ByIdent.h:90
zypp::pool::PoolImpl
Definition PoolImpl.h:169
zypp::sat::Solvable
A Solvable object within the sat Pool.
Definition Solvable.h:54
std
Definition ansi.h:855
str
String related utilities and Regular expression matching.
zypp::resfilter::byKind
filter::ByKind byKind()
Definition ResFilters.h:147
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zypp::makeIterable
Iterable< TIterator > makeIterable(TIterator &&begin_r, TIterator &&end_r)
relates: Iterable convenient construction.
Definition Iterable.h:88
zypp::LocaleSet
std::unordered_set< Locale > LocaleSet
Definition Locale.h:29
zypp::make_filter_begin
filter_iterator< TFilter, typename TContainer::const_iterator > make_filter_begin(TFilter f, const TContainer &c)
Convenience to create filter_iterator from container::begin().
Definition Iterator.h:101
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::operator<<
std::ostream & operator<<(std::ostream &str, const Capabilities &obj)
relates: Capabilities Stream output
Definition Capabilities.cc:65
zypp::make_filter_end
filter_iterator< TFilter, typename TContainer::const_iterator > make_filter_end(TFilter f, const TContainer &c)
Convenience to create filter_iterator from container::end().
Definition Iterator.h:117
zypp::RW_pointer
Wrapper for const correct access via Smart pointer types.
Definition PtrTypes.h:293
zypp::ResTraits
ResTraits.
Definition ResTraits.h:80
zypp::pool::ByPoolItem
Pool internal filter skiping invalid/unwanted PoolItems.
Definition PoolTraits.h:41
zypp::pool::PoolTraits::const_iterator
filter_iterator< ByPoolItem, ItemContainerT::const_iterator > const_iterator
Definition PoolTraits.h:73
zypp::pool::PoolTraits::Impl_Ptr
shared_ptr< PoolImpl > Impl_Ptr
Definition PoolTraits.h:89
zypp::pool::PoolTraits::repository_iterator
sat::Pool::RepositoryIterator repository_iterator
list of known Repositories
Definition PoolTraits.h:82
zypp::pool::PoolTraits::Id2ItemT
std::unordered_multimap< sat::detail::IdType, PoolItem > Id2ItemT
ident index
Definition PoolTraits.h:77
zypp::pool::PoolTraits::size_type
ItemContainerT::size_type size_type
Definition PoolTraits.h:74
zypp::pool::PoolTraits::hardLockQueries_iterator
HardLockQueries::const_iterator hardLockQueries_iterator
Definition PoolTraits.h:86
zypp::pool::PoolTraits::ItemContainerT
std::vector< PoolItem > ItemContainerT
pure items
Definition PoolTraits.h:71
zypp::pool::PoolTraits::Id2ItemValueSelector
P_Select2nd< Id2ItemT::value_type > Id2ItemValueSelector
Definition PoolTraits.h:78
zypp::pool::PoolTraits::HardLockQueries
std::list< PoolQuery > HardLockQueries
hard locks from etc/zypp/locks
Definition PoolTraits.h:85
zypp::pool::PoolTraits::byIdent_iterator
transform_iterator< Id2ItemValueSelector, Id2ItemT::const_iterator > byIdent_iterator
Definition PoolTraits.h:79
zypp::resfilter::ByName
Select ResObject by name.
Definition ResFilters.h:152
zypp::sat::SolvableType::satSolvable
Solvable satSolvable() const
Return the corresponding sat::Solvable.
Definition SolvableType.h:57