libzypp 17.37.18
|
Public Member Functions | |
AttachedMediaInfo (ProvideRef parentRef, zypp::media::MediaAccessId mediaId, zypp::MirroredOrigin origin, ProvideMediaSpec mediaSpec, const zypp::Pathname &locPath) | |
zypp::media::MediaAccessId | mediaId () const |
const ProvideMediaSpec & | spec () const |
zypp::Url | url () const |
const zypp::MirroredOrigin & | origin () const |
const std::optional< zypp::Pathname > & | rootPath () const |
ProvideRef | parent () const |
bool | isSameMedium (const zypp::MirroredOrigin &origin, const ProvideMediaSpec &spec) |
Public Member Functions inherited from zypp::base::ReferenceCounted | |
ReferenceCounted () | |
Default ctor. | |
ReferenceCounted (const ReferenceCounted &rhs) | |
Copy ctor. | |
virtual | ~ReferenceCounted () |
Dtor. | |
ReferenceCounted & | operator= (const ReferenceCounted &) |
Assignment. | |
unsigned | refCount () const |
Return reference counter value. | |
void | ref () const |
Add a reference. | |
void | unref () const |
Release a reference. |
Protected Member Functions | |
void | unref_to (unsigned int) const override |
Protected Member Functions inherited from zypp::base::ReferenceCounted | |
virtual std::ostream & | dumpOn (std::ostream &str) const |
Overload to realize std::ostream & operator<<. | |
virtual void | ref_to (unsigned) const |
Trigger derived classes after refCount was increased. | |
virtual void | unref_to (unsigned) const |
Trigger derived classes after refCount was decreased. |
Private Attributes | |
zypp::media::MediaAccessId | _id |
zypp::MirroredOrigin | _origin |
ProvideMediaSpec | _spec |
ProvideRef | _parent |
std::optional< zypp::Pathname > | _localPath |
Additional Inherited Members | |
Static Public Member Functions inherited from zypp::base::ReferenceCounted | |
static void | add_ref (const ReferenceCounted *ptr_r) |
Called by zypp::intrusive_ptr to add a reference. | |
static void | release (const ReferenceCounted *ptr_r) |
Called by zypp::intrusive_ptr to add a reference. | |
Related Symbols inherited from zypp::base::ReferenceCounted | |
void | intrusive_ptr_add_ref (const ReferenceCounted *ptr_r) |
intrusive_ptr hook to add_ref. | |
void | intrusive_ptr_release (const ReferenceCounted *ptr_r) |
intrusive_ptr hook to release. | |
std::ostream & | operator<< (std::ostream &str, const ReferenceCounted &obj) |
Stream output. |
Definition at line 24 of file provide.cc.
zyppng::AttachedMediaInfo::AttachedMediaInfo | ( | ProvideRef | parentRef, |
zypp::media::MediaAccessId | mediaId, | ||
zypp::MirroredOrigin | origin, | ||
ProvideMediaSpec | mediaSpec, | ||
const zypp::Pathname & | locPath ) |
Definition at line 57 of file provide.cc.
zypp::media::MediaAccessId zyppng::AttachedMediaInfo::mediaId | ( | ) | const |
Definition at line 65 of file provide.cc.
const ProvideMediaSpec & zyppng::AttachedMediaInfo::spec | ( | ) | const |
Definition at line 70 of file provide.cc.
zypp::Url zyppng::AttachedMediaInfo::url | ( | ) | const |
Definition at line 75 of file provide.cc.
const zypp::MirroredOrigin & zyppng::AttachedMediaInfo::origin | ( | ) | const |
Definition at line 80 of file provide.cc.
const std::optional< zypp::Pathname > & zyppng::AttachedMediaInfo::rootPath | ( | ) | const |
Definition at line 85 of file provide.cc.
ProvideRef zyppng::AttachedMediaInfo::parent | ( | ) | const |
Definition at line 90 of file provide.cc.
bool zyppng::AttachedMediaInfo::isSameMedium | ( | const zypp::MirroredOrigin & | origin, |
const ProvideMediaSpec & | spec ) |
Returns true if other requests the same medium as this instance
Definition at line 95 of file provide.cc.
|
overrideprotected |
Definition at line 100 of file provide.cc.
|
private |
Definition at line 48 of file provide.cc.
|
private |
Definition at line 49 of file provide.cc.
|
private |
Definition at line 50 of file provide.cc.
|
private |
Definition at line 51 of file provide.cc.
|
private |
Definition at line 52 of file provide.cc.