libzypp 17.31.23
|
RW_pointer supporting 'copy on write' functionality. More...
#include <base/PtrTypes.h>
Public Types | |
typedef DTraits::PtrType | PtrType |
typedef DTraits::constPtrType | constPtrType |
Public Member Functions | |
RWCOW_pointer () | |
RWCOW_pointer (std::nullptr_t) | |
RWCOW_pointer (typename PtrType::element_type *dptr) | |
RWCOW_pointer (PtrType dptr) | |
RWCOW_pointer & | operator= (std::nullptr_t) |
void | reset () |
void | reset (typename PtrType::element_type *dptr) |
void | swap (RWCOW_pointer &rhs) |
void | swap (PtrType &rhs) |
operator bool () const | |
const D & | operator* () const |
const D * | operator-> () const |
const D * | get () const |
D & | operator* () |
D * | operator-> () |
D * | get () |
bool | unique () const |
long | use_count () const |
constPtrType | getPtr () const |
PtrType | getPtr () |
constPtrType | cgetPtr () |
Private Member Functions | |
void | assertUnshared () |
Private Attributes | |
PtrType | _dptr |
Related Functions | |
(Note that these are not member functions.) | |
template<class D > | |
D * | rwcowClone (const D *rhs) |
Clone the underlying object. | |
template<class D , class DPtr > | |
std::ostream & | operator<< (std::ostream &str, const RWCOW_pointer< D, DPtr > &obj) |
Stream output. | |
template<class D , class DPtr > | |
bool | operator== (const RWCOW_pointer< D, DPtr > &lhs, const RWCOW_pointer< D, DPtr > &rhs) |
template<class D , class DPtr > | |
bool | operator== (const RWCOW_pointer< D, DPtr > &lhs, const typename DPtr::PtrType &rhs) |
template<class D , class DPtr > | |
bool | operator== (const typename DPtr::PtrType &lhs, const RWCOW_pointer< D, DPtr > &rhs) |
template<class D , class DPtr > | |
bool | operator== (const RWCOW_pointer< D, DPtr > &lhs, const typename DPtr::constPtrType &rhs) |
template<class D , class DPtr > | |
bool | operator== (const typename DPtr::constPtrType &lhs, const RWCOW_pointer< D, DPtr > &rhs) |
template<class D , class DPtr > | |
bool | operator== (const RWCOW_pointer< D, DPtr > &lhs, std::nullptr_t) |
template<class D , class DPtr > | |
bool | operator== (std::nullptr_t, const RWCOW_pointer< D, DPtr > &rhs) |
template<class D , class DPtr > | |
bool | operator!= (const RWCOW_pointer< D, DPtr > &lhs, const RWCOW_pointer< D, DPtr > &rhs) |
template<class D , class DPtr > | |
bool | operator!= (const RWCOW_pointer< D, DPtr > &lhs, const typename DPtr::PtrType &rhs) |
template<class D , class DPtr > | |
bool | operator!= (const typename DPtr::PtrType &lhs, const RWCOW_pointer< D, DPtr > &rhs) |
template<class D , class DPtr > | |
bool | operator!= (const RWCOW_pointer< D, DPtr > &lhs, const typename DPtr::constPtrType &rhs) |
template<class D , class DPtr > | |
bool | operator!= (const typename DPtr::constPtrType &lhs, const RWCOW_pointer< D, DPtr > &rhs) |
template<class D , class DPtr > | |
bool | operator!= (const RWCOW_pointer< D, DPtr > &lhs, std::nullptr_t) |
template<class D , class DPtr > | |
bool | operator!= (std::nullptr_t, const RWCOW_pointer< D, DPtr > &rhs) |
RW_pointer supporting 'copy on write' functionality.
Write access to the underlying object creates a copy, iff the object is shared.
See RW_pointer.
Definition at line 458 of file PtrTypes.h.
typedef DTraits::PtrType zypp::RWCOW_pointer< D, DTraits >::PtrType |
Definition at line 460 of file PtrTypes.h.
typedef DTraits::constPtrType zypp::RWCOW_pointer< D, DTraits >::constPtrType |
Definition at line 461 of file PtrTypes.h.
|
inline |
Definition at line 463 of file PtrTypes.h.
|
inline |
Definition at line 466 of file PtrTypes.h.
|
inlineexplicit |
Definition at line 470 of file PtrTypes.h.
|
inlineexplicit |
Definition at line 475 of file PtrTypes.h.
|
inline |
Definition at line 479 of file PtrTypes.h.
|
inline |
Definition at line 482 of file PtrTypes.h.
|
inline |
Definition at line 485 of file PtrTypes.h.
|
inline |
Definition at line 488 of file PtrTypes.h.
|
inline |
Definition at line 491 of file PtrTypes.h.
|
inlineexplicit |
Definition at line 494 of file PtrTypes.h.
|
inline |
Definition at line 497 of file PtrTypes.h.
|
inline |
Definition at line 500 of file PtrTypes.h.
|
inline |
Definition at line 503 of file PtrTypes.h.
|
inline |
Definition at line 506 of file PtrTypes.h.
|
inline |
Definition at line 509 of file PtrTypes.h.
|
inline |
Definition at line 512 of file PtrTypes.h.
|
inline |
Definition at line 516 of file PtrTypes.h.
|
inline |
Definition at line 519 of file PtrTypes.h.
|
inline |
Definition at line 522 of file PtrTypes.h.
|
inline |
Definition at line 525 of file PtrTypes.h.
|
inline |
Definition at line 528 of file PtrTypes.h.
|
inlineprivate |
Definition at line 533 of file PtrTypes.h.
|
related |
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 443 of file PtrTypes.h.
|
related |
Stream output.
Print the D
object the RWCOW_pointer refers, or "NULL"
if the pointer is NULL
.
Definition at line 550 of file PtrTypes.h.
|
related |
Definition at line 559 of file PtrTypes.h.
|
related |
Definition at line 563 of file PtrTypes.h.
|
related |
Definition at line 567 of file PtrTypes.h.
|
related |
Definition at line 571 of file PtrTypes.h.
|
related |
Definition at line 575 of file PtrTypes.h.
|
related |
Definition at line 579 of file PtrTypes.h.
|
related |
Definition at line 583 of file PtrTypes.h.
|
related |
Definition at line 588 of file PtrTypes.h.
|
related |
Definition at line 592 of file PtrTypes.h.
|
related |
Definition at line 596 of file PtrTypes.h.
|
related |
Definition at line 600 of file PtrTypes.h.
|
related |
Definition at line 604 of file PtrTypes.h.
|
related |
Definition at line 608 of file PtrTypes.h.
|
related |
Definition at line 612 of file PtrTypes.h.
|
private |
Definition at line 540 of file PtrTypes.h.