libzypp 8.13.6
|
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 AttrMatcher & | attrMatcher () 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 | |
Impl * | clone () const |
clone for RWCOW_pointer | |
Private Attributes | |
SolvAttr | _attr |
SolvAttr | _parent |
Repository | _repo |
Solvable | _solv |
AttrMatcher | _attrMatcher |
Friends | |
Impl * | rwcowClone (const Impl *rhs) |
LookupAttr implememtation.
Repository and Solvable must not be set at the same time!
_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.
zypp::sat::LookupAttr::Impl::Impl | ( | ) | [inline] |
Definition at line 58 of file LookupAttr.cc.
Referenced by clone().
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.
Definition at line 67 of file LookupAttr.cc.
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] |
Definition at line 75 of file LookupAttr.cc.
References _attr, _parent, zypp::sat::SolvAttr::noAttr, and zypp::sat::SolvAttr::parent().
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.
void zypp::sat::LookupAttr::Impl::setPool | ( | Location | loc_r | ) | [inline] |
Definition at line 96 of file LookupAttr.cc.
References _repo, _solv, zypp::Repository::noRepository, zypp::sat::detail::noSolvableId(), and zypp::sat::LookupAttr::REPO_ATTR.
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] |
Definition at line 105 of file LookupAttr.cc.
References _repo, _solv, zypp::sat::detail::noSolvableId(), and zypp::sat::LookupAttr::REPO_ATTR.
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] |
Definition at line 127 of file LookupAttr.cc.
References _attr, _attrMatcher, _parent, _repo, _solv, end(), zypp::sat::AttrMatcher::flags(), zypp::Match::get(), zypp::IdStringType< Derived >::id(), zypp::sat::Solvable::id(), zypp::Repository::id(), zypp::sat::Pool::instance(), zypp::sat::SolvAttr::noAttr, zypp::sat::detail::noRepoId(), zypp::sat::Solvable::repository(), and zypp::sat::AttrMatcher::searchstring().
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] |
SolvAttr zypp::sat::LookupAttr::Impl::_attr [private] |
Definition at line 149 of file LookupAttr.cc.
SolvAttr zypp::sat::LookupAttr::Impl::_parent [private] |
Definition at line 150 of file LookupAttr.cc.
Referenced by begin(), parent(), setAttr(), and setParent().
Repository zypp::sat::LookupAttr::Impl::_repo [private] |
Definition at line 151 of file LookupAttr.cc.
Referenced by begin(), pool(), repo(), setPool(), setRepo(), and setSolvable().
Solvable zypp::sat::LookupAttr::Impl::_solv [private] |
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().