libzypp
17.35.12
|
Clean or delete a directory on destruction. More...
Public Types | |
enum | Flags { NoOp = 0, Autodelete = 1L << 0, KeepTopdir = 1L << 1, CtorDefault = Autodelete } |
Public Member Functions | |
Impl (Pathname &&path_r, Flags flags_r=CtorDefault) | |
Impl (const Impl &)=delete | |
Impl (Impl &&)=delete | |
Impl & | operator= (const Impl &)=delete |
Impl & | operator= (Impl &&)=delete |
~Impl () override | |
const Pathname & | path () const |
bool | autoCleanup () const |
void | autoCleanup (bool yesno_r) |
![]() | |
ReferenceCounted () | |
Default ctor. More... | |
ReferenceCounted (const ReferenceCounted &rhs) | |
Copy ctor. More... | |
virtual | ~ReferenceCounted () |
Dtor. More... | |
ReferenceCounted & | operator= (const ReferenceCounted &) |
Assignment. More... | |
unsigned | refCount () const |
Return reference counter value. More... | |
void | ref () const |
Add a reference. More... | |
void | unref () const |
Release a reference. More... | |
Private Attributes | |
Pathname | _path |
Flags | _flags |
Additional Inherited Members | |
![]() | |
static void | add_ref (const ReferenceCounted *ptr_r) |
Called by zypp::intrusive_ptr to add a reference. More... | |
static void | release (const ReferenceCounted *ptr_r) |
Called by zypp::intrusive_ptr to add a reference. More... | |
![]() | |
virtual std::ostream & | dumpOn (std::ostream &str) const |
Overload to realize std::ostream & operator<<. More... | |
virtual void | ref_to (unsigned) const |
Trigger derived classes after refCount was increased. More... | |
virtual void | unref_to (unsigned) const |
Trigger derived classes after refCount was decreased. More... | |
![]() | |
void | intrusive_ptr_add_ref (const ReferenceCounted *ptr_r) |
void | intrusive_ptr_release (const ReferenceCounted *ptr_r) |
std::ostream & | operator<< (std::ostream &str, const ReferenceCounted &obj) |
Clean or delete a directory on destruction.
Definition at line 37 of file TmpPath.cc.
Enumerator | |
---|---|
NoOp | |
Autodelete | |
KeepTopdir | |
CtorDefault |
Definition at line 41 of file TmpPath.cc.
|
inline |
Definition at line 51 of file TmpPath.cc.
|
delete |
|
delete |
|
inlineoverride |
Definition at line 59 of file TmpPath.cc.
|
inline |
Definition at line 86 of file TmpPath.cc.
|
inline |
Definition at line 89 of file TmpPath.cc.
|
inline |
Definition at line 92 of file TmpPath.cc.
|
private |
Definition at line 96 of file TmpPath.cc.
|
private |
Definition at line 97 of file TmpPath.cc.