[zypp-commit] r9923 - /trunk/libzypp/zypp/PoolQueryResult.h
Author: mlandres Date: Wed Apr 30 23:16:07 2008 New Revision: 9923 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9923&view=rev Log: Add PoolQueryResult::contains Modified: trunk/libzypp/zypp/PoolQueryResult.h Modified: trunk/libzypp/zypp/PoolQueryResult.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/PoolQueryResult.h?rev=9923&r1=9922&r2=9923&view=diff ============================================================================== --- trunk/libzypp/zypp/PoolQueryResult.h (original) +++ trunk/libzypp/zypp/PoolQueryResult.h Wed Apr 30 23:16:07 2008 @@ -120,6 +120,13 @@ const_iterator end() const { return _result.end(); } + /** Test whether some item is in the result set. */ + bool contains(sat::Solvable result_r ) const + { return( _result.find( result_r ) != _result.end() ); } + /** \overload */ + bool contains( const PoolItem & result_r ) const + { return contains( result_r.satSolvable() ); } + public: /** Clear the result. */ void clear() -- 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