libzypp 17.31.23
|
Helper class to collect (not only) PoolQuery results. More...
#include <PoolQueryResult.h>
Public Types | |
typedef std::unordered_set< sat::Solvable > | ResultSet |
typedef ResultSet::size_type | size_type |
typedef ResultSet::const_iterator | const_iterator |
Public Types inherited from zypp::sat::SolvIterMixin< PoolQueryResult, std::unordered_set< sat::Solvable >::const_iterator > | |
typedef size_t | size_type |
typedef std::unordered_set< sat::Solvable >::const_iterator | Solvable_iterator |
typedef transform_iterator< asPoolItem, Solvable_iterator > | PoolItem_iterator |
typedef transform_iterator< ui::asSelectable, UnifiedSolvable_iterator > | Selectable_iterator |
Public Member Functions | |
PoolQueryResult () | |
Default ctor (empty result) | |
PoolQueryResult (sat::Solvable result_r) | |
Ctor adding one sat::Solvable. | |
PoolQueryResult (const PoolItem &result_r) | |
Ctor adding one PoolItem. | |
PoolQueryResult (const PoolQuery &query_r) | |
Ctor adding one PoolQuery result. | |
template<class TQueryResultIter > | |
PoolQueryResult (TQueryResultIter begin_r, TQueryResultIter end_r) | |
Ctor adding a range of items for which operator+= is defined. | |
bool | empty () const |
Whether the result is empty. | |
size_type | size () const |
The number of sat::Solvables. | |
const_iterator | begin () const |
const_iterator | end () const |
bool | contains (sat::Solvable result_r) const |
Test whether some item is in the result set. | |
bool | contains (const PoolItem &result_r) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
void | clear () |
Clear the result. | |
PoolQueryResult & | operator+= (const PoolQueryResult &query_r) |
Add items to the result. | |
PoolQueryResult & | operator+= (const PoolQuery &query_r) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
PoolQueryResult & | operator+= (sat::Solvable result_r) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
PoolQueryResult & | operator+= (const PoolItem &result_r) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
PoolQueryResult & | operator-= (const PoolQueryResult &query_r) |
Remove Items from the result. | |
PoolQueryResult & | operator-= (const PoolQuery &query_r) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
PoolQueryResult & | operator-= (sat::Solvable result_r) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
PoolQueryResult & | operator-= (const PoolItem &result_r) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
PoolQueryResult | operator+ (const PoolQueryResult &query_r) const |
Combine results. | |
PoolQueryResult | operator+ (const PoolQuery &query_r) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
PoolQueryResult | operator+ (sat::Solvable result_r) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
PoolQueryResult | operator- (const PoolQueryResult &query_r) const |
Intersect results. | |
PoolQueryResult | operator- (const PoolQuery &query_r) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
PoolQueryResult | operator- (sat::Solvable result_r) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
Public Member Functions inherited from zypp::sat::SolvIterMixin< PoolQueryResult, std::unordered_set< sat::Solvable >::const_iterator > | |
bool | empty () const |
Whether the collection is epmty. | |
size_type | size () const |
Size of the collection. | |
bool | contains (const TSolv &solv_r) const |
Whether collection contains a specific Solvable. | |
Solvable_iterator | solvableBegin () const |
Solvable_iterator | solvableEnd () const |
Iterable< Solvable_iterator > | solvable () const |
PoolItem_iterator | poolItemBegin () const |
PoolItem_iterator | poolItemEnd () const |
Iterable< PoolItem_iterator > | poolItem () const |
Selectable_iterator | selectableBegin () const |
Selectable_iterator | selectableEnd () const |
Iterable< Selectable_iterator > | selectable () const |
Private Attributes | |
ResultSet | _result |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const PoolQueryResult &obj) |
Stream output. | |
Additional Inherited Members | |
Protected Member Functions inherited from zypp::sat::SolvIterMixin< PoolQueryResult, std::unordered_set< sat::Solvable >::const_iterator > | |
SolvIterMixin () | |
SolvIterMixin (const SolvIterMixin &) | |
~SolvIterMixin () | |
void | operator= (const SolvIterMixin &) |
Helper class to collect (not only) PoolQuery results.
PoolQueryResult maintains a set of sat::Solvable. You can add/remove solvables to/from the set defined by:
value_type
sat::Solvable or PoolItem or PoolQuery or any type that fits operator+=
.The class is a sat::SolvIterMixin, so you can iterate the result not just as sat::Solvable, but also as PoolItem or ui::Selectable.
Definition at line 75 of file PoolQueryResult.h.
typedef std::unordered_set<sat::Solvable> zypp::PoolQueryResult::ResultSet |
Definition at line 78 of file PoolQueryResult.h.
typedef ResultSet::size_type zypp::PoolQueryResult::size_type |
Definition at line 79 of file PoolQueryResult.h.
typedef ResultSet::const_iterator zypp::PoolQueryResult::const_iterator |
Definition at line 80 of file PoolQueryResult.h.
|
inline |
Default ctor (empty result)
Definition at line 84 of file PoolQueryResult.h.
|
inlineexplicit |
Ctor adding one sat::Solvable.
Definition at line 88 of file PoolQueryResult.h.
|
inlineexplicit |
Ctor adding one PoolItem.
Definition at line 92 of file PoolQueryResult.h.
|
inlineexplicit |
Ctor adding one PoolQuery result.
Definition at line 96 of file PoolQueryResult.h.
|
inline |
Ctor adding a range of items for which operator+= is defined.
Definition at line 101 of file PoolQueryResult.h.
|
inline |
Whether the result is empty.
Definition at line 111 of file PoolQueryResult.h.
|
inline |
The number of sat::Solvables.
Definition at line 114 of file PoolQueryResult.h.
|
inline |
Definition at line 117 of file PoolQueryResult.h.
|
inline |
Definition at line 120 of file PoolQueryResult.h.
|
inline |
Test whether some item is in the result set.
Definition at line 124 of file PoolQueryResult.h.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 127 of file PoolQueryResult.h.
|
inline |
Clear the result.
Definition at line 132 of file PoolQueryResult.h.
|
inline |
Add items to the result.
Definition at line 136 of file PoolQueryResult.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 143 of file PoolQueryResult.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 155 of file PoolQueryResult.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 161 of file PoolQueryResult.h.
|
inline |
Remove Items from the result.
Definition at line 168 of file PoolQueryResult.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 178 of file PoolQueryResult.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 190 of file PoolQueryResult.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 196 of file PoolQueryResult.h.
|
inline |
Combine results.
Definition at line 204 of file PoolQueryResult.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 207 of file PoolQueryResult.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 210 of file PoolQueryResult.h.
|
inline |
Intersect results.
Definition at line 214 of file PoolQueryResult.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 217 of file PoolQueryResult.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 220 of file PoolQueryResult.h.
|
related |
Stream output.
Definition at line 28 of file PoolQueryResult.cc.
|
private |
Definition at line 224 of file PoolQueryResult.h.