zypp::ForEachMatchInCapSet Class Reference
[Find matching Capabilities.]

Functor invoking action_r on each matching Capability in a CapSet. More...

#include <CapMatchHelper.h>

List of all members.

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


Detailed Description

Functor invoking 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.


Member Typedef Documentation

typedef function<bool(const Capability &, const Capability &)> zypp::ForEachMatchInCapSet::Action

Definition at line 114 of file CapMatchHelper.h.


Constructor & Destructor Documentation

zypp::ForEachMatchInCapSet::ForEachMatchInCapSet ( const CapSet set_r,
const Action action_r 
) [inline]

Definition at line 117 of file CapMatchHelper.h.


Member Function Documentation

bool zypp::ForEachMatchInCapSet::operator() ( const Capability cap_r  )  const [inline]

Definition at line 122 of file CapMatchHelper.h.

References _action, _set, and zypp::forEachMatchIn().


Member Data Documentation

const CapSet& zypp::ForEachMatchInCapSet::_set [private]

Definition at line 129 of file CapMatchHelper.h.

Referenced by operator()().

Action zypp::ForEachMatchInCapSet::_action [private]

Definition at line 130 of file CapMatchHelper.h.

Referenced by operator()().


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 19:23:14 2007 for libzypp by  doxygen 1.5.3