libzypp 17.31.23
|
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 (const Pathname &path_r, Flags flags_r=CtorDefault) | |
~Impl () | |
const Pathname & | path () const |
bool | autoCleanup () const |
void | autoCleanup (bool yesno_r) |
![]() | |
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. | |
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. | |
static void | release (const ReferenceCounted *ptr_r) |
Called by zypp::intrusive_ptr to add a reference. | |
![]() | |
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. | |
![]() | |
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. | |
Clean or delete a directory on destruction.
Definition at line 36 of file TmpPath.cc.
Enumerator | |
---|---|
NoOp | |
Autodelete | |
KeepTopdir | |
CtorDefault |
Definition at line 40 of file TmpPath.cc.
|
inline |
Definition at line 51 of file TmpPath.cc.
|
inline |
Definition at line 55 of file TmpPath.cc.
|
inline |
Definition at line 82 of file TmpPath.cc.
|
inline |
Definition at line 85 of file TmpPath.cc.
|
inline |
Definition at line 88 of file TmpPath.cc.
|
private |
Definition at line 92 of file TmpPath.cc.
|
private |
Definition at line 93 of file TmpPath.cc.