12 #ifndef ZYPP_POOLQUERYRESULT_H
13 #define ZYPP_POOLQUERYRESULT_H
78 typedef std::tr1::unordered_set<sat::Solvable>
ResultSet;
100 template<
class _QueryResultIter>
103 for_( it, begin_r, end_r )
138 if ( ! query_r.
empty() )
170 if ( &query_r ==
this )
234 #endif // ZYPP_POOLQUERYRESULT_H
PoolQueryResult operator-(const PoolQueryResult &query_r) const
Intersect results.
PoolQueryResult operator-(sat::Solvable result_r) const
A Solvable object within the sat Pool.
bool contains(sat::Solvable result_r) const
Test whether some item is in the result set.
const_iterator begin() const
void clear()
Clear the result.
PoolQueryResult & operator+=(const PoolQuery &query_r)
PoolQueryResult & operator-=(const PoolQuery &query_r)
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
PoolQueryResult & operator+=(const PoolQueryResult &query_r)
Add items to the result.
PoolQueryResult & operator-=(sat::Solvable result_r)
Base class providing common iterator types based on a Solvable iterator.
std::ostream & operator<<(std::ostream &str, const Exception &obj)
PoolQueryResult(_QueryResultIter begin_r, _QueryResultIter end_r)
Ctor adding a range of items for which operator+= is defined.
PoolQueryResult()
Default ctor (empty result)
PoolQueryResult operator+(const PoolQuery &query_r) const
PoolQueryResult & operator+=(sat::Solvable result_r)
PoolQueryResult & operator+=(const PoolItem &result_r)
ResultSet::size_type size_type
PoolQueryResult operator-(const PoolQuery &query_r) const
PoolQueryResult operator+(const PoolQueryResult &query_r) const
Combine results.
std::tr1::unordered_set< sat::Solvable > ResultSet
bool contains(const PoolItem &result_r) const
PoolQueryResult(const PoolItem &result_r)
Ctor adding one PoolItem.
Base class for Exception.
ResultSet::const_iterator const_iterator
size_type size() const
The number of sat::Solvables.
sat::Solvable satSolvable() const
Return the corresponding sat::Solvable.
PoolQueryResult(sat::Solvable result_r)
Ctor adding one sat::Solvable.
Reference to a PoolItem connecting ResObject and ResStatus.
Helper class to collect (not only) PoolQuery results.
const_iterator begin() const
Query result accessers.
const_iterator end() const
An iterator pointing to the end of the query result.
bool empty() const
Whether the result is empty.
const_iterator end() const
PoolQueryResult & operator-=(const PoolQueryResult &query_r)
Remove Items from the result.
PoolQueryResult operator+(sat::Solvable result_r) const
PoolQueryResult(const PoolQuery &query_r)
Ctor adding one PoolQuery result.
PoolQueryResult & operator-=(const PoolItem &result_r)