zypp::sat::LookupAttr::Impl Class Reference

LookupAttr implememtation. More...

List of all members.

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 AttrMatcherattrMatcher () const
void setAttrMatcher (const AttrMatcher &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

Private Attributes

SolvAttr _attr
SolvAttr _parent
Repository _repo
Solvable _solv
AttrMatcher _attrMatcher

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

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

Definition at line 58 of file LookupAttr.cc.

Referenced by clone().

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

Definition at line 61 of file LookupAttr.cc.

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

Definition at line 64 of file LookupAttr.cc.

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

Definition at line 67 of file LookupAttr.cc.


Member Function Documentation

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

Definition at line 72 of file LookupAttr.cc.

References _attr.

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

const AttrMatcher& zypp::sat::LookupAttr::Impl::attrMatcher (  )  const [inline]

Definition at line 83 of file LookupAttr.cc.

References _attrMatcher.

void zypp::sat::LookupAttr::Impl::setAttrMatcher ( const AttrMatcher matcher_r  )  [inline]

Definition at line 86 of file LookupAttr.cc.

References _attrMatcher, and zypp::sat::AttrMatcher::compile().

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

Definition at line 93 of file LookupAttr.cc.

References _repo, and _solv.

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

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

Definition at line 102 of file LookupAttr.cc.

References _repo.

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

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

Definition at line 111 of file LookupAttr.cc.

References _solv.

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

Definition at line 114 of file LookupAttr.cc.

References _repo, _solv, and zypp::Repository::noRepository.

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

Definition at line 120 of file LookupAttr.cc.

References _parent.

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

Definition at line 123 of file LookupAttr.cc.

References _parent.

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

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

Definition at line 145 of file LookupAttr.cc.

Referenced by begin().

Impl* zypp::sat::LookupAttr::Impl::clone (  )  const [inline, private]

clone for RWCOW_pointer

Definition at line 158 of file LookupAttr.cc.

References Impl().


Friends And Related Function Documentation

Impl* rwcowClone ( const Impl rhs  )  [friend]


Member Data Documentation

Definition at line 149 of file LookupAttr.cc.

Referenced by attr(), begin(), and setAttr().

Definition at line 150 of file LookupAttr.cc.

Referenced by begin(), parent(), setAttr(), and setParent().

Definition at line 151 of file LookupAttr.cc.

Referenced by begin(), pool(), repo(), setPool(), setRepo(), and setSolvable().

Definition at line 152 of file LookupAttr.cc.

Referenced by begin(), pool(), setPool(), setRepo(), setSolvable(), and solvable().

Definition at line 153 of file LookupAttr.cc.

Referenced by attrMatcher(), begin(), and setAttrMatcher().


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

doxygen