12#ifndef ZYPP_SAT_LOOKUPATTRTOOLS_H
13#define ZYPP_SAT_LOOKUPATTRTOOLS_H
55 template<
class TResult,
class TAttr>
57 TransformIterator<TResult,TAttr>
58 , LookupAttr::iterator
60 , boost::forward_traversal_tag
70 { this->base_reference() = val_r; }
78 { this->base_reference().nextSkipSolvAttr(); }
82 { this->base_reference().nextSkipSolvable(); }
86 { this->base_reference().nextSkipRepo(); }
90 { this->base_reference().skipSolvAttr(); }
94 { this->base_reference().skipSolvable(); }
98 { this->base_reference().skipRepo(); }
105 {
return this->base_reference().inRepo(); }
109 {
return this->base_reference().inSolvable(); }
113 {
return this->base_reference().inSolvAttr(); }
122 return TResult( lit.
asType<TAttr>() );
127 template<
class TResult,
class TAttr>
130 template<
class TResult,
class TAttr>
153 template<
class TResult,
class TAttr>
163 :
_q( attr_r, loc_r )
167 :
_q( attr_r, repo_r, loc_r )
171 :
_q( attr_r, solv_r )
213 template<
class TResult,
class TAttr>
LookupAttr::TransformIterator based container to retrieve list attributes.
iterator find(const TResult &key_r) const
ArrayAttr(SolvAttr attr_r, LookupAttr::Location loc_r=LookupAttr::SOLV_ATTR)
ArrayAttr(SolvAttr attr_r, Solvable solv_r)
ArrayAttr(SolvAttr attr_r, Repository repo_r, LookupAttr::Location loc_r=LookupAttr::SOLV_ATTR)
LookupAttr::TransformIterator< TResult, TAttr > iterator
LookupAttr::size_type size_type
Tp asType() const
Templated return type.
std::ostream & operator<<(std::ostream &str, const ArrayAttr< TResult, TAttr > &obj)
Stream output.
Lightweight attribute value lookup.
iterator end() const
Iterator behind the end of query results.
bool empty() const
Whether the query is empty.
Location
Specify the where to look for the attribule.
@ SOLV_ATTR
Search for solvable attributes (default)
iterator begin() const
Iterator to the begin of query results.
A Solvable object within the sat Pool.
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const FileConflicts &obj)
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
Easy-to use interface to the ZYPP dependency resolver.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.