[zypp-commit] r7063 - /trunk/libzypp/zypp/CapMatchHelper.h
Author: mlandres Date: Fri Aug 31 19:48:04 2007 New Revision: 7063 URL: http://svn.opensuse.org/viewcvs/zypp?rev=7063&view=rev Log: Added "bool hasMatches( const CapSet & lhs_r, const Capability & rhs_r )" to thest whther the CapSet contains at least one match for rhs_r Modified: trunk/libzypp/zypp/CapMatchHelper.h Modified: trunk/libzypp/zypp/CapMatchHelper.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/CapMatchHelper.h?rev=7063&r1=7062&r2=7063&view=diff ============================================================================== --- trunk/libzypp/zypp/CapMatchHelper.h (original) +++ trunk/libzypp/zypp/CapMatchHelper.h Fri Aug 31 19:48:04 2007 @@ -146,9 +146,19 @@ { bool operator()( const Capability &, const Capability & ) const { return false; } + bool operator()( const Capability & ) const + { return false; } }; } + /** Return \c true if the CapSet contains at least one Capabilitiy + * that matches. + */ + inline bool hasMatches( const CapSet & lhs_r, const Capability & rhs_r ) + { + return( forEachMatchIn( lhs_r, rhs_r, capmatch_detail::AlwaysFalse() ) < 0 ); + } + /** Return \c true if the CapSets contain at least one pair of * Capabilities that match. */ -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
mlandres@svn.opensuse.org