|
libzypp
17.38.7
|
Smart pointer types. More...
Namespaces | |
| zypp::rw_pointer | |
| Don't forgett to provide versions for PtrType and constPtrType, esp. | |
Classes | |
| struct | zypp::NullDeleter |
| shared_ptr custom deleter doing nothing. More... | |
| struct | zypp::RW_pointer< D, DTraits > |
Wrapper for const correct access via Smart pointer types. More... | |
| struct | zypp::RWCOW_pointer< D, DTraits > |
| RW_pointer supporting 'copy on write' functionality. More... | |
| class | scoped_ptr |
| class | shared_ptr |
| class | weak_ptr |
| class | intrusive_ptr |
Functions | |
| std::string | zypp::str::form (const char *format,...) __attribute__((format(printf |
| Printf style construction of std::string. More... | |
| void | zypp::NullDeleter::operator() (const void *const) const |
| template<typename T , typename... Args> | |
| intrusive_ptr< T > | zypp::make_intrusive (Args &&... __args) |
| template<class D > | |
| std::ostream & | std::operator<< (std::ostream &str, const zypp::shared_ptr< D > &obj) |
| relates: zypp::shared_ptr Stream output. More... | |
| template<> | |
| std::ostream & | std::operator<< (std::ostream &str, const zypp::shared_ptr< void > &obj) |
| template<class D > | |
| std::ostream & | std::dumpOn (std::ostream &str, const zypp::shared_ptr< D > &obj) |
| relates: zypp::shared_ptr Stream output. More... | |
| template<> | |
| std::ostream & | std::dumpOn (std::ostream &str, const zypp::shared_ptr< void > &obj) |
| template<class D > | |
| std::ostream & | std::operator<< (std::ostream &str, const zypp::intrusive_ptr< D > &obj) |
| relates: zypp::intrusive_ptr Stream output. More... | |
| template<class D > | |
| std::ostream & | std::dumpOn (std::ostream &str, const zypp::intrusive_ptr< D > &obj) |
| relates: zypp::intrusive_ptr Stream output. More... | |
| template<class D , class DPtr > | |
| std::ostream & | zypp::operator<< (std::ostream &str, const RW_pointer< D, DPtr > &obj) |
| relates: RW_pointer Stream output. More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator== (const RW_pointer< D, DPtr > &lhs, const RW_pointer< D, DPtr > &rhs) |
| relates: RW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator== (const RW_pointer< D, DPtr > &lhs, const typename DPtr::PtrType &rhs) |
| relates: RW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator== (const typename DPtr::PtrType &lhs, const RW_pointer< D, DPtr > &rhs) |
| relates: RW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator== (const RW_pointer< D, DPtr > &lhs, const typename DPtr::constPtrType &rhs) |
| relates: RW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator== (const typename DPtr::constPtrType &lhs, const RW_pointer< D, DPtr > &rhs) |
| relates: RW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator== (const RW_pointer< D, DPtr > &lhs, std::nullptr_t) |
| relates: RW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator== (std::nullptr_t, const RW_pointer< D, DPtr > &rhs) |
| relates: RW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator!= (const RW_pointer< D, DPtr > &lhs, const RW_pointer< D, DPtr > &rhs) |
| relates: RW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator!= (const RW_pointer< D, DPtr > &lhs, const typename DPtr::PtrType &rhs) |
| relates: RW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator!= (const typename DPtr::PtrType &lhs, const RW_pointer< D, DPtr > &rhs) |
| relates: RW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator!= (const RW_pointer< D, DPtr > &lhs, const typename DPtr::constPtrType &rhs) |
| relates: RW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator!= (const typename DPtr::constPtrType &lhs, const RW_pointer< D, DPtr > &rhs) |
| relates: RW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator!= (const RW_pointer< D, DPtr > &lhs, std::nullptr_t) |
| relates: RW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator!= (std::nullptr_t, const RW_pointer< D, DPtr > &rhs) |
| relates: RW_pointer More... | |
| template<class D > | |
| D * | zypp::rwcowClone (const D *rhs) |
| relates: RWCOW_pointer Clone the underlying object. More... | |
| template<class D , class DPtr > | |
| std::ostream & | zypp::operator<< (std::ostream &str, const RWCOW_pointer< D, DPtr > &obj) |
| relates: RWCOW_pointer Stream output. More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator== (const RWCOW_pointer< D, DPtr > &lhs, const RWCOW_pointer< D, DPtr > &rhs) |
| relates: RWCOW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator== (const RWCOW_pointer< D, DPtr > &lhs, const typename DPtr::PtrType &rhs) |
| relates: RWCOW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator== (const typename DPtr::PtrType &lhs, const RWCOW_pointer< D, DPtr > &rhs) |
| relates: RWCOW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator== (const RWCOW_pointer< D, DPtr > &lhs, const typename DPtr::constPtrType &rhs) |
| relates: RWCOW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator== (const typename DPtr::constPtrType &lhs, const RWCOW_pointer< D, DPtr > &rhs) |
| relates: RWCOW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator== (const RWCOW_pointer< D, DPtr > &lhs, std::nullptr_t) |
| relates: RWCOW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator== (std::nullptr_t, const RWCOW_pointer< D, DPtr > &rhs) |
| relates: RWCOW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator!= (const RWCOW_pointer< D, DPtr > &lhs, const RWCOW_pointer< D, DPtr > &rhs) |
| relates: RWCOW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator!= (const RWCOW_pointer< D, DPtr > &lhs, const typename DPtr::PtrType &rhs) |
| relates: RWCOW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator!= (const typename DPtr::PtrType &lhs, const RWCOW_pointer< D, DPtr > &rhs) |
| relates: RWCOW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator!= (const RWCOW_pointer< D, DPtr > &lhs, const typename DPtr::constPtrType &rhs) |
| relates: RWCOW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator!= (const typename DPtr::constPtrType &lhs, const RWCOW_pointer< D, DPtr > &rhs) |
| relates: RWCOW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator!= (const RWCOW_pointer< D, DPtr > &lhs, std::nullptr_t) |
| relates: RWCOW_pointer More... | |
| template<class D , class DPtr > | |
| bool | zypp::operator!= (std::nullptr_t, const RWCOW_pointer< D, DPtr > &rhs) |
| relates: RWCOW_pointer More... | |
Smart pointer types.
Namespace zypp provides 3 smart pointer types using the boost smart pointer library.
scoped_ptr Simple sole ownership of single objects. Noncopyable.shared_ptr Object ownership shared among multiple pointersweak_ptr Non-owning observers of an object owned by shared_ptr.And zypp::RW_pointer, as wrapper around a smart pointer, poviding const correct read/write access to the object it refers.
| std::string zypp::str::form | ( | const char * | format, |
| ... | |||
| ) |
|
inline |
Definition at line 85 of file PtrTypes.h.
|
inline |
Definition at line 103 of file PtrTypes.h.
|
inline |
relates: zypp::shared_ptr Stream output.
Definition at line 133 of file PtrTypes.h.
|
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 141 of file PtrTypes.h.
|
inline |
relates: zypp::shared_ptr Stream output.
Definition at line 150 of file PtrTypes.h.
|
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 158 of file PtrTypes.h.
|
inline |
relates: zypp::intrusive_ptr Stream output.
Definition at line 163 of file PtrTypes.h.
|
inline |
relates: zypp::intrusive_ptr Stream output.
Definition at line 171 of file PtrTypes.h.
|
inline |
relates: RW_pointer Stream output.
Print the D object the RW_pointer refers, or "NULL" if the pointer is NULL.
Definition at line 379 of file PtrTypes.h.
|
inline |
relates: RW_pointer
Definition at line 388 of file PtrTypes.h.
|
inline |
relates: RW_pointer
Definition at line 392 of file PtrTypes.h.
|
inline |
relates: RW_pointer
Definition at line 396 of file PtrTypes.h.
|
inline |
relates: RW_pointer
Definition at line 400 of file PtrTypes.h.
|
inline |
relates: RW_pointer
Definition at line 404 of file PtrTypes.h.
|
inline |
relates: RW_pointer
Definition at line 408 of file PtrTypes.h.
|
inline |
relates: RW_pointer
Definition at line 412 of file PtrTypes.h.
|
inline |
relates: RW_pointer
Definition at line 418 of file PtrTypes.h.
|
inline |
relates: RW_pointer
Definition at line 422 of file PtrTypes.h.
|
inline |
relates: RW_pointer
Definition at line 426 of file PtrTypes.h.
|
inline |
relates: RW_pointer
Definition at line 430 of file PtrTypes.h.
|
inline |
relates: RW_pointer
Definition at line 434 of file PtrTypes.h.
|
inline |
relates: RW_pointer
Definition at line 438 of file PtrTypes.h.
|
inline |
relates: RW_pointer
Definition at line 442 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer Clone the underlying object.
Calls rhs ->clone(). Being defined as a function outside RWCOW_pointer allows to overload it, in case a specific D does not have clone().
Definition at line 453 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer Stream output.
Print the D object the RWCOW_pointer refers, or "NULL" if the pointer is NULL.
Definition at line 566 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer
Definition at line 575 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer
Definition at line 579 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer
Definition at line 583 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer
Definition at line 587 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer
Definition at line 591 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer
Definition at line 595 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer
Definition at line 599 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer
Definition at line 604 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer
Definition at line 608 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer
Definition at line 612 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer
Definition at line 616 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer
Definition at line 620 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer
Definition at line 624 of file PtrTypes.h.
|
inline |
relates: RWCOW_pointer
Definition at line 628 of file PtrTypes.h.