12 #ifndef ZYPP_SAT_LOOKUPATTRTOOLS_H 13 #define ZYPP_SAT_LOOKUPATTRTOOLS_H 57 template<
class TResult,
class TAttr>
58 class LookupAttr::TransformIterator :
public boost::iterator_adaptor<
59 TransformIterator<TResult,TAttr>
60 , LookupAttr::iterator
62 , boost::forward_traversal_tag
72 { this->base_reference() = val_r; }
80 { this->base_reference().nextSkipSolvAttr(); }
84 { this->base_reference().nextSkipSolvable(); }
88 { this->base_reference().nextSkipRepo(); }
92 { this->base_reference().skipSolvAttr(); }
96 { this->base_reference().skipSolvable(); }
100 { this->base_reference().skipRepo(); }
107 {
return this->base_reference().inRepo(); }
111 {
return this->base_reference().inSolvable(); }
115 {
return this->base_reference().inSolvAttr(); }
124 return TResult( lit.
asType<TAttr>() );
129 template<
class TResult,
class TAttr>
132 template<
class TResult,
class TAttr>
133 std::ostream & operator<<( std::ostream & str, const ArrayAttr<TResult,TAttr> & obj );
155 template<
class TResult,
class TAttr>
165 :
_q(
std::move(attr_r), loc_r )
169 :
_q(
std::move(attr_r), repo_r, loc_r )
173 :
_q(
std::move(attr_r), solv_r )
215 template<
class TResult,
class TAttr>
216 inline std::ostream & operator<<( std::ostream & str, const ArrayAttr<TResult,TAttr> & obj )
225 #endif // ZYPP_SAT_LOOKUPATTRTOOLS_H A Solvable object within the sat Pool.
Lightweight attribute value lookup.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
String related utilities and Regular expression matching.
Search for solvable attributes (default)
LookupAttr::TransformIterator based container to retrieve list attributes.
ArrayAttr(SolvAttr attr_r, LookupAttr::Location loc_r=LookupAttr::SOLV_ATTR)
ArrayAttr(SolvAttr attr_r, Solvable solv_r)
iterator end() const
Iterator behind the end of query results.
Tp asType() const
Templated return type.
iterator find(const TResult &key_r) const
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
ArrayAttr(SolvAttr attr_r, Repository repo_r, LookupAttr::Location loc_r=LookupAttr::SOLV_ATTR)
LookupAttr::size_type size_type
LookupAttr::TransformIterator< TResult, TAttr > iterator
Easy-to use interface to the ZYPP dependency resolver.
Location
Specify the where to look for the attribule.
bool empty() const
Whether the query is empty.
iterator begin() const
Iterator to the begin of query results.