|
libzypp
17.38.8
|
Value proxy returned by LookupAttr::iterator::operator*(). More...
#include <zypp/ng/sat/lookupattr.h>
Public Types | |
| using | size_type = LookupAttr::size_type |
Public Member Functions | |
| LookupAttrValue (detail::CDataiterator *dip, detail::CPool *pool) | |
| template<> | |
| CheckSum | asType () const |
| template<> | |
| int | asType () const |
| template<> | |
| unsigned | asType () const |
| template<> | |
| unsigned long long | asType () const |
| template<> | |
| bool | asType () const |
| template<> | |
| const char * | asType () const |
| template<> | |
| IdString | asType () const |
| template<> | |
| CheckSum | asType () const |
Current position info. | |
| Repository | inRepo () const |
| The current Repository. More... | |
| Solvable | inSolvable () const |
| The current Solvable. More... | |
| SolvAttr | inSolvAttr () const |
| The current SolvAttr. More... | |
Test attribute value type. | |
| detail::IdType | solvAttrType () const |
| The current SolvAttr type. More... | |
| bool | solvAttrNumeric () const |
| Whether this is a numeric attribute (incl. More... | |
| bool | solvAttrString () const |
| Whether this is a string attribute. More... | |
| bool | solvAttrIdString () const |
| Whether this string attribute is available as IdString. More... | |
| bool | solvAttrCheckSum () const |
| Whether this is a CheckSum attribute. More... | |
| bool | solvAttrSubEntry () const |
| Whether this is the entry to a sub-structure (flexarray). More... | |
Iterate sub-structures. | |
These are usable iff solvAttrSubEntry is
| |
| bool | subEmpty () const |
| Whether the sub-structure is empty. More... | |
| size_type | subSize () const |
| Amount of attributes in the sub-structure. More... | |
| LookupAttr::iterator | subBegin () const |
| Iterator to the begin of a sub-structure. More... | |
| LookupAttr::iterator | subEnd () const |
| Iterator behind the end of a sub-structure. More... | |
| LookupAttr::iterator | subFind (const SolvAttr &attr_r) const |
| Iterator pointing to the first occurrence of SolvAttr attr_r in the sub-structure. More... | |
| LookupAttr::iterator | subFind (const zypp::C_Str &attrname_r) const |
Retrieving attribute values. | |
| int | asInt () const |
| Conversion to numeric types. More... | |
| unsigned | asUnsigned () const |
| bool | asBool () const |
| unsigned long long | asUnsignedLL () const |
| const char * | c_str () const |
| Conversion to string types. More... | |
| std::string | asString () const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. If used with non-string types, this method tries to create some appropriate string representation. More... | |
| IdString | idStr () const |
| As IdString. More... | |
| detail::IdType | id () const |
| CheckSum | asCheckSum () const |
| As CheckSum. More... | |
| template<class Tp > | |
| Tp | asType () const |
| Templated return type. More... | |
Private Attributes | |
| detail::CDataiterator * | _dip |
| non-owning — current iterator position More... | |
| detail::CPool * | _pool |
| non-owning — needed for sub-structure DIWrap construction More... | |
Value proxy returned by LookupAttr::iterator::operator*().
Carries a non-owning pointer to the iterator's current detail::CDataiterator position plus the owning detail::CPool*. Valid only as long as the originating iterator has not been incremented or destroyed — the same lifetime rules as std::string_view.
All position info, type tests, value accessors and sub-structure iteration that formerly lived on LookupAttr::iterator are exposed here, so that zyppng::ranges:: algorithms receive a meaningful value type instead of a raw detail::IdType integer.
Definition at line 453 of file lookupattr.h.
Definition at line 456 of file lookupattr.h.
|
inline |
Definition at line 459 of file lookupattr.h.
| Repository zyppng::sat::LookupAttrValue::inRepo | ( | ) | const |
The current Repository.
CLASS NAME : LookupAttr::iterator.
Definition at line 321 of file lookupattr.cc.
| Solvable zyppng::sat::LookupAttrValue::inSolvable | ( | ) | const |
The current Solvable.
Definition at line 324 of file lookupattr.cc.
| SolvAttr zyppng::sat::LookupAttrValue::inSolvAttr | ( | ) | const |
The current SolvAttr.
Definition at line 327 of file lookupattr.cc.
| detail::IdType zyppng::sat::LookupAttrValue::solvAttrType | ( | ) | const |
The current SolvAttr type.
Definition at line 345 of file lookupattr.cc.
| bool zyppng::sat::LookupAttrValue::solvAttrNumeric | ( | ) | const |
| bool zyppng::sat::LookupAttrValue::solvAttrString | ( | ) | const |
Whether this is a string attribute.
Definition at line 360 of file lookupattr.cc.
| bool zyppng::sat::LookupAttrValue::solvAttrIdString | ( | ) | const |
Whether this string attribute is available as IdString.
Definition at line 375 of file lookupattr.cc.
| bool zyppng::sat::LookupAttrValue::solvAttrCheckSum | ( | ) | const |
Whether this is a CheckSum attribute.
Definition at line 388 of file lookupattr.cc.
| bool zyppng::sat::LookupAttrValue::solvAttrSubEntry | ( | ) | const |
Whether this is the entry to a sub-structure (flexarray).
This is the entry to a sequence of attributes. To access them use subBegin and subEnd.
Definition at line 425 of file lookupattr.cc.
| bool zyppng::sat::LookupAttrValue::subEmpty | ( | ) | const |
Whether the sub-structure is empty.
Definition at line 428 of file lookupattr.cc.
| LookupAttr::size_type zyppng::sat::LookupAttrValue::subSize | ( | ) | const |
Amount of attributes in the sub-structure.
Definition at line 431 of file lookupattr.cc.
| LookupAttr::iterator zyppng::sat::LookupAttrValue::subBegin | ( | ) | const |
Iterator to the begin of a sub-structure.
Definition at line 439 of file lookupattr.cc.
| LookupAttr::iterator zyppng::sat::LookupAttrValue::subEnd | ( | ) | const |
Iterator behind the end of a sub-structure.
Definition at line 461 of file lookupattr.cc.
| LookupAttr::iterator zyppng::sat::LookupAttrValue::subFind | ( | const SolvAttr & | attr_r | ) | const |
Iterator pointing to the first occurrence of SolvAttr attr_r in the sub-structure.
If sat::SolvAttr::allAttr is passed, subBegin is returned.
Definition at line 466 of file lookupattr.cc.
| LookupAttr::iterator zyppng::sat::LookupAttrValue::subFind | ( | const zypp::C_Str & | attrname_r | ) | const |
Definition at line 477 of file lookupattr.cc.
| int zyppng::sat::LookupAttrValue::asInt | ( | ) | const |
Conversion to numeric types.
Definition at line 508 of file lookupattr.cc.
| unsigned zyppng::sat::LookupAttrValue::asUnsigned | ( | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 523 of file lookupattr.cc.
| bool zyppng::sat::LookupAttrValue::asBool | ( | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 541 of file lookupattr.cc.
| unsigned long long zyppng::sat::LookupAttrValue::asUnsignedLL | ( | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 526 of file lookupattr.cc.
| const char * zyppng::sat::LookupAttrValue::c_str | ( | ) | const |
Conversion to string types.
Definition at line 545 of file lookupattr.cc.
| std::string zyppng::sat::LookupAttrValue::asString | ( | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. If used with non-string types, this method tries to create some appropriate string representation.
Definition at line 575 of file lookupattr.cc.
| IdString zyppng::sat::LookupAttrValue::idStr | ( | ) | const |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 575 of file lookupattr.h.
| CheckSum zyppng::sat::LookupAttrValue::asCheckSum | ( | ) | const |
As CheckSum.
Definition at line 645 of file lookupattr.cc.
|
inline |
Templated return type.
Per default assumes an Id based type, so try to construct it from the Id.
Should be specialized for supported types above.
Definition at line 587 of file lookupattr.h.
| CheckSum zyppng::sat::LookupAttrValue::asType | ( | ) | const |
Definition at line 750 of file lookupattr.cc.
|
inline |
Definition at line 596 of file lookupattr.h.
|
inline |
Definition at line 597 of file lookupattr.h.
|
inline |
Definition at line 598 of file lookupattr.h.
|
inline |
Definition at line 599 of file lookupattr.h.
|
inline |
Definition at line 600 of file lookupattr.h.
|
inline |
Definition at line 602 of file lookupattr.h.
| CheckSum zyppng::sat::LookupAttrValue::asType | ( | ) | const |
|
private |
non-owning — current iterator position
Definition at line 591 of file lookupattr.h.
|
private |
non-owning — needed for sub-structure DIWrap construction
Definition at line 592 of file lookupattr.h.