libzypp  13.10.6
zypp::sat::LookupRepoAttr Class Reference

Lightweight repository attribute value lookup. More...

#include <LookupAttr.h>

Inheritance diagram for zypp::sat::LookupRepoAttr:
zypp::sat::LookupAttr

Public Member Functions

 LookupRepoAttr ()
 Default ctor finds nothing. More...
 
 LookupRepoAttr (SolvAttr attr_r)
 
 LookupRepoAttr (SolvAttr attr_r, Repository repo_r)
 
void setPool ()
 Set search in Pool (all repositories). More...
 
void setRepo (Repository repo_r)
 Set search in one Repository. More...
 
- Public Member Functions inherited from zypp::sat::LookupAttr
 LookupAttr ()
 Default ctor finds nothing. More...
 
 LookupAttr (SolvAttr attr_r, Location=SOLV_ATTR)
 Lookup SolvAttr in Pool (all repositories). More...
 
 LookupAttr (SolvAttr attr_r, SolvAttr parent_r, Location=SOLV_ATTR)
 
 LookupAttr (SolvAttr attr_r, Repository repo_r, Location=SOLV_ATTR)
 Lookup SolvAttr in oneRepository. More...
 
 LookupAttr (SolvAttr attr_r, SolvAttr parent_r, Repository repo_r, Location=SOLV_ATTR)
 
 LookupAttr (SolvAttr attr_r, Solvable solv_r)
 Lookup SolvAttr in one Solvable. More...
 
 LookupAttr (SolvAttr attr_r, SolvAttr parent_r, Solvable solv_r)
 
iterator begin () const
 Iterator to the begin of query results. More...
 
iterator end () const
 Iterator behind the end of query results. More...
 
bool empty () const
 Whether the query is empty. More...
 
size_type size () const
 Ammount of results. More...
 
SolvAttr attr () const
 The SolvAttr to search. More...
 
void setAttr (SolvAttr attr_r)
 Set the SolvAttr to search. More...
 
const StrMatcherstrMatcher () const
 The pattern to match. More...
 
void setStrMatcher (const StrMatcher &matcher_r)
 Set the pattern to match. More...
 
void resetStrMatcher ()
 Reset the pattern to match. More...
 
bool pool () const
 Whether to search in Pool. More...
 
void setPool (Location=SOLV_ATTR)
 Set search in Pool (all repositories). More...
 
Repository repo () const
 Whether to search in one Repository. More...
 
void setRepo (Repository repo_r, Location=SOLV_ATTR)
 Set search in one Repository. More...
 
Solvable solvable () const
 Whether to search in one Solvable. More...
 
void setSolvable (Solvable solv_r)
 Set search in one Solvable. More...
 
SolvAttr parent () const
 Whether to search within a sub-structure (SolvAttr::noAttr if not) More...
 
void setParent (SolvAttr attr_r)
 Set search within a sub-structure (SolvAttr::noAttr for none) More...
 

Additional Inherited Members

- Public Types inherited from zypp::sat::LookupAttr
enum  Location { SOLV_ATTR = 0, REPO_ATTR = -1 }
 Specify the where to look for the attribule. More...
 
typedef MatchException Exception
 
typedef unsigned size_type
 

Detailed Description

Lightweight repository attribute value lookup.

This is just a convenience class that overloads all LookupAttr methods which take a LookupAttr::Location argument and sets it to REPO_ATTR.

* // look for a repo attribute in the pool:
*
* // Equivalent but using LookupRepoAttr:
* sat::LookupRepoAttr q( sat::SolvAttr::repositoryAddedFileProvides );
*
See Also
LookupAttr

Definition at line 260 of file LookupAttr.h.

Constructor & Destructor Documentation

zypp::sat::LookupRepoAttr::LookupRepoAttr ( )
inline

Default ctor finds nothing.

Definition at line 264 of file LookupAttr.h.

zypp::sat::LookupRepoAttr::LookupRepoAttr ( SolvAttr  attr_r)
inlineexplicit

Definition at line 267 of file LookupAttr.h.

zypp::sat::LookupRepoAttr::LookupRepoAttr ( SolvAttr  attr_r,
Repository  repo_r 
)
explicit

Definition at line 283 of file LookupAttr.cc.

Member Function Documentation

void zypp::sat::LookupRepoAttr::setPool ( )
inline

Set search in Pool (all repositories).

Definition at line 275 of file LookupAttr.h.

void zypp::sat::LookupRepoAttr::setRepo ( Repository  repo_r)

Set search in one Repository.

Definition at line 287 of file LookupAttr.cc.


The documentation for this class was generated from the following files: