action_r on each matching Capability in a CapSet.
More...
#include <CapMatchHelper.h>
Public Types | |
| typedef function < bool(const Capability &, const Capability &)> | Action |
Public Member Functions | |
| ForEachMatchInCapSet (const CapSet &set_r, const Action &action_r) | |
| bool | operator() (const Capability &cap_r) const |
Private Attributes | |
| const CapSet & | _set |
| Action | _action |
action_r on each matching Capability in a CapSet.
Functor is provided to ease using forEachMatchIn as action in other algorithms (nested loop over two CapSets).
Definition at line 111 of file CapMatchHelper.h.
| typedef function<bool(const Capability &, const Capability &)> zypp::ForEachMatchInCapSet::Action |
Definition at line 114 of file CapMatchHelper.h.
| zypp::ForEachMatchInCapSet::ForEachMatchInCapSet | ( | const CapSet & | set_r, | |
| const Action & | action_r | |||
| ) | [inline] |
Definition at line 117 of file CapMatchHelper.h.
| bool zypp::ForEachMatchInCapSet::operator() | ( | const Capability & | cap_r | ) | const [inline] |
Definition at line 122 of file CapMatchHelper.h.
References _action, _set, and zypp::forEachMatchIn().
const CapSet& zypp::ForEachMatchInCapSet::_set [private] |
Action zypp::ForEachMatchInCapSet::_action [private] |
1.5.3