Files | |
| file | PtrTypes.h |
| |
Classes | |
| struct | zypp::NullDeleter |
| shared_ptr custom deleter doing nothing. More... | |
| struct | zypp::RW_pointer< _D, _Traits > |
Wrapper for const correct access via Smart pointer types. More... | |
| struct | zypp::RWCOW_pointer< _D, _Traits > |
| RW_pointer supporting 'copy on write' functionality. More... | |
| class | scoped_ptr |
| class | shared_ptr |
| class | weak_ptr |
| class | intrusive_ptr |
Functions | |
| template<class _D, class _Ptr> | |
| std::ostream & | zypp::RW_pointer::operator<< (std::ostream &str, const RW_pointer< _D, _Ptr > &obj) |
| Stream output. | |
| template<class _D, class _Ptr> | |
| bool | zypp::RW_pointer::operator== (const RW_pointer< _D, _Ptr > &lhs, const RW_pointer< _D, _Ptr > &rhs) |
| template<class _D, class _Ptr> | |
| bool | zypp::RW_pointer::operator!= (const RW_pointer< _D, _Ptr > &lhs, const RW_pointer< _D, _Ptr > &rhs) |
| template<class _D> | |
| _D * | zypp::RWCOW_pointer::rwcowClone (const _D *rhs) |
| Clone the underlying object. | |
| template<class _D, class _Ptr> | |
| std::ostream & | zypp::RWCOW_pointer::operator<< (std::ostream &str, const RWCOW_pointer< _D, _Ptr > &obj) |
| Stream output. | |
| template<class _D, class _Ptr> | |
| bool | zypp::RWCOW_pointer::operator== (const RWCOW_pointer< _D, _Ptr > &lhs, const RWCOW_pointer< _D, _Ptr > &rhs) |
| template<class _D, class _Ptr> | |
| bool | zypp::RWCOW_pointer::operator!= (const RWCOW_pointer< _D, _Ptr > &lhs, const RWCOW_pointer< _D, _Ptr > &rhs) |
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.const correct read/write access to the object it refers. | std::ostream & operator<< | ( | std::ostream & | str, | |
| const RW_pointer< _D, _Ptr > & | obj | |||
| ) | [related, inherited] |
Stream output.
Print the _D object the RW_pointer refers, or "NULL" if the pointer is NULL.
Definition at line 323 of file PtrTypes.h.
References zypp::solver::detail::str.
| bool operator== | ( | const RW_pointer< _D, _Ptr > & | lhs, | |
| const RW_pointer< _D, _Ptr > & | rhs | |||
| ) | [related, inherited] |
| bool operator!= | ( | const RW_pointer< _D, _Ptr > & | lhs, | |
| const RW_pointer< _D, _Ptr > & | rhs | |||
| ) | [related, inherited] |
Definition at line 341 of file PtrTypes.h.
| _D * rwcowClone | ( | const _D * | rhs | ) | [related, inherited] |
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 441 of file PtrTypes.h.
Referenced by zypp::RWCOW_pointer< zypp::cache::CacheFSCK::Impl >::assertUnshared().
| std::ostream & operator<< | ( | std::ostream & | str, | |
| const RWCOW_pointer< _D, _Ptr > & | obj | |||
| ) | [related, inherited] |
Stream output.
Print the _D object the RWCOW_pointer refers, or "NULL" if the pointer is NULL.
Definition at line 453 of file PtrTypes.h.
References zypp::solver::detail::str.
| bool operator== | ( | const RWCOW_pointer< _D, _Ptr > & | lhs, | |
| const RWCOW_pointer< _D, _Ptr > & | rhs | |||
| ) | [related, inherited] |
| bool operator!= | ( | const RWCOW_pointer< _D, _Ptr > & | lhs, | |
| const RWCOW_pointer< _D, _Ptr > & | rhs | |||
| ) | [related, inherited] |
Definition at line 471 of file PtrTypes.h.
1.5.3