libzypp  17.10.2
zypp::sat::LookupRepoAttr Class Reference

Lightweight repository attribute value lookup. More...

#include <LookupAttr.h>

Inheritance diagram for zypp::sat::LookupRepoAttr:

Public Member Functions

 LookupRepoAttr ()
 Default ctor finds nothing.
More...
 
 LookupRepoAttr (SolvAttr attr_r)
 
More...
 
 LookupRepoAttr (SolvAttr attr_r, Repository repo_r)
 
More...
 
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...
 

Private Member Functions

Solvable solvable () const
 Whether to search in one Solvable. More...
 
void setSolvable (Solvable solv_r)
 Set search in one Solvable. 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:
See also
LookupAttr

Definition at line 257 of file LookupAttr.h.

Constructor & Destructor Documentation

◆ LookupRepoAttr() [1/3]

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

Default ctor finds nothing.

Definition at line 261 of file LookupAttr.h.

◆ LookupRepoAttr() [2/3]

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


Definition at line 264 of file LookupAttr.h.

◆ LookupRepoAttr() [3/3]

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


Definition at line 283 of file LookupAttr.cc.

Member Function Documentation

◆ setPool()

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

Set search in Pool (all repositories).

Definition at line 272 of file LookupAttr.h.

◆ setRepo()

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

Set search in one Repository.

Definition at line 287 of file LookupAttr.cc.

◆ solvable()

Solvable zypp::sat::LookupAttr::solvable
private

Whether to search in one Solvable.

Definition at line 222 of file LookupAttr.cc.

◆ setSolvable()

void zypp::sat::LookupAttr::setSolvable
private

Set search in one Solvable.

Definition at line 225 of file LookupAttr.cc.


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