#include <CapMatchHelper.h>
Public Types | |
| typedef function< bool(const PoolItem &)> | Action |
Public Member Functions | |
| OncePerPoolItem (const PoolItem &self_r=PoolItem()) | |
| OncePerPoolItem (const Action &action_r, const PoolItem &self_r=PoolItem()) | |
| bool | operator() (const CapAndItem &cai_r) const |
| const std::set< PoolItem > & | collectedItems () const |
Private Attributes | |
| Action | _action |
| PoolItem | _self |
| shared_ptr< std::set< PoolItem > > | _uset |
Additionally you may omit invocation of action_r for a specific PoolItem.
Even if no _action is given, the PoolItems that would have been processed are collected in a std::set, available via collectedItems.
bool consume( const CapAndItem & cai_r ); bool consumePi( const PoolItem & pi_r ); ResPool _pool; PoolItem _pi; // Invoke consume on all PoolItems obsoleted by pi. // Once for each matching Capability, thus the same PoolItem // might be involved mutiple times. forEachPoolItemMatchedBy( _pool, _pi, Dep::OBSOLETES, consume ); // Invoke consume on all PoolItems obsoleted by pi. // Once for each PoolItem, still including _pi in case // it provides a match by itself. forEachPoolItemMatchedBy( _pool, _pi, Dep::OBSOLETES, OncePerPoolItem( consumePi ) ); // Invoke consume on all PoolItems obsoleted by pi. // Once for each PoolItem, omitting invokation for // _pi (in case it obsoletes itself). forEachPoolItemMatchedBy( _pool, _pi, Dep::OBSOLETES, OncePerPoolItem( consumePi, _pi ) );
Definition at line 322 of file CapMatchHelper.h.
|
|
Definition at line 325 of file CapMatchHelper.h. |
|
|
Definition at line 329 of file CapMatchHelper.h. |
|
||||||||||||
|
Definition at line 334 of file CapMatchHelper.h. |
|
|
Definition at line 341 of file CapMatchHelper.h. References _action, _self, _uset, and zypp::CapAndItem::item. |
|
|
Definition at line 354 of file CapMatchHelper.h. References _uset. |
|
|
Definition at line 358 of file CapMatchHelper.h. Referenced by operator()(). |
|
|
Definition at line 359 of file CapMatchHelper.h. Referenced by operator()(). |
|
|
Definition at line 360 of file CapMatchHelper.h. Referenced by collectedItems(), and operator()(). |
1.4.6