libzypp  17.23.6
zypp::sat::LookupAttr::Impl Class Reference

LookupAttr implememtation. More...

Public Member Functions

 Impl ()
 
 Impl (SolvAttr attr_r, Location loc_r)
 
 Impl (SolvAttr attr_r, Repository repo_r, Location loc_r)
 
 Impl (SolvAttr attr_r, Solvable solv_r)
 
SolvAttr attr () const
 
void setAttr (SolvAttr attr_r)
 
const StrMatcherstrMatcher () const
 
void setStrMatcher (const StrMatcher &matcher_r)
 
bool pool () const
 
void setPool (Location loc_r)
 
Repository repo () const
 
void setRepo (Repository repo_r, Location loc_r)
 
Solvable solvable () const
 
void setSolvable (Solvable solv_r)
 
SolvAttr parent () const
 
void setParent (SolvAttr attr_r)
 
LookupAttr::iterator begin () const
 
LookupAttr::iterator end () const
 

Private Member Functions

Implclone () const
 clone for RWCOW_pointer More...
 

Private Attributes

SolvAttr _attr
 
SolvAttr _parent
 
Repository _repo
 
Solvable _solv
 
StrMatcher _strMatcher
 

Friends

ImplrwcowClone (const Impl *rhs)
 

Detailed Description

LookupAttr implememtation.

Repository and Solvable must not be set at the same time!

Note
When looking in pool or repo, Solvable _solv is somewhat abused to store eiter Id 0 or SOLVID_META, which indicates whether the dataiterator should look into solvable or repository metadata. Remember that all Solvables with an invalid Id, are treated as == Solvable::noSolvable, and in a boolean context evaluate to false. Thus noSolvable may have different Ids.

Definition at line 55 of file LookupAttr.cc.

Constructor & Destructor Documentation

◆ Impl() [1/4]

zypp::sat::LookupAttr::Impl::Impl ( )
inline

Definition at line 58 of file LookupAttr.cc.

◆ Impl() [2/4]

zypp::sat::LookupAttr::Impl::Impl ( SolvAttr  attr_r,
Location  loc_r 
)
inline

Definition at line 61 of file LookupAttr.cc.

◆ Impl() [3/4]

zypp::sat::LookupAttr::Impl::Impl ( SolvAttr  attr_r,
Repository  repo_r,
Location  loc_r 
)
inline

Definition at line 64 of file LookupAttr.cc.

◆ Impl() [4/4]

zypp::sat::LookupAttr::Impl::Impl ( SolvAttr  attr_r,
Solvable  solv_r 
)
inline

Definition at line 67 of file LookupAttr.cc.

Member Function Documentation

◆ attr()

SolvAttr zypp::sat::LookupAttr::Impl::attr ( ) const
inline

Definition at line 72 of file LookupAttr.cc.

◆ setAttr()

void zypp::sat::LookupAttr::Impl::setAttr ( SolvAttr  attr_r)
inline

Definition at line 75 of file LookupAttr.cc.

◆ strMatcher()

const StrMatcher& zypp::sat::LookupAttr::Impl::strMatcher ( ) const
inline

Definition at line 83 of file LookupAttr.cc.

◆ setStrMatcher()

void zypp::sat::LookupAttr::Impl::setStrMatcher ( const StrMatcher matcher_r)
inline

Definition at line 86 of file LookupAttr.cc.

◆ pool()

bool zypp::sat::LookupAttr::Impl::pool ( ) const
inline

Definition at line 93 of file LookupAttr.cc.

◆ setPool()

void zypp::sat::LookupAttr::Impl::setPool ( Location  loc_r)
inline

Definition at line 96 of file LookupAttr.cc.

◆ repo()

Repository zypp::sat::LookupAttr::Impl::repo ( ) const
inline

Definition at line 102 of file LookupAttr.cc.

◆ setRepo()

void zypp::sat::LookupAttr::Impl::setRepo ( Repository  repo_r,
Location  loc_r 
)
inline

Definition at line 105 of file LookupAttr.cc.

◆ solvable()

Solvable zypp::sat::LookupAttr::Impl::solvable ( ) const
inline

Definition at line 111 of file LookupAttr.cc.

◆ setSolvable()

void zypp::sat::LookupAttr::Impl::setSolvable ( Solvable  solv_r)
inline

Definition at line 114 of file LookupAttr.cc.

◆ parent()

SolvAttr zypp::sat::LookupAttr::Impl::parent ( ) const
inline

Definition at line 120 of file LookupAttr.cc.

◆ setParent()

void zypp::sat::LookupAttr::Impl::setParent ( SolvAttr  attr_r)
inline

Definition at line 123 of file LookupAttr.cc.

◆ begin()

LookupAttr::iterator zypp::sat::LookupAttr::Impl::begin ( ) const
inline

Definition at line 127 of file LookupAttr.cc.

◆ end()

LookupAttr::iterator zypp::sat::LookupAttr::Impl::end ( ) const
inline

Definition at line 145 of file LookupAttr.cc.

◆ clone()

Impl* zypp::sat::LookupAttr::Impl::clone ( ) const
inlineprivate

clone for RWCOW_pointer

Definition at line 158 of file LookupAttr.cc.

Friends And Related Function Documentation

◆ rwcowClone

Impl* rwcowClone ( const Impl rhs)
friend

Member Data Documentation

◆ _attr

SolvAttr zypp::sat::LookupAttr::Impl::_attr
private

Definition at line 149 of file LookupAttr.cc.

◆ _parent

SolvAttr zypp::sat::LookupAttr::Impl::_parent
private

Definition at line 150 of file LookupAttr.cc.

◆ _repo

Repository zypp::sat::LookupAttr::Impl::_repo
private

Definition at line 151 of file LookupAttr.cc.

◆ _solv

Solvable zypp::sat::LookupAttr::Impl::_solv
private

Definition at line 152 of file LookupAttr.cc.

◆ _strMatcher

StrMatcher zypp::sat::LookupAttr::Impl::_strMatcher
private

Definition at line 153 of file LookupAttr.cc.


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