libzypp
12.16.5
|
RW_pointer supporting 'copy on write' functionality. More...
#include <PtrTypes.h>
Public Types | |
typedef _Traits::_Ptr | _Ptr |
typedef _Traits::_constPtr | _constPtr |
typedef _Ptr::unspecified_bool_type | unspecified_bool_type |
Public Member Functions | |
RWCOW_pointer (typename _Ptr::element_type *dptr=0) | |
RWCOW_pointer (_Ptr dptr) | |
void | reset () |
void | reset (typename _Ptr::element_type *dptr) |
void | swap (RWCOW_pointer &rhs) |
void | swap (_Ptr &rhs) |
operator unspecified_bool_type () 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 |
_constPtr | getPtr () const |
_Ptr | getPtr () |
_constPtr | cgetPtr () |
Private Member Functions | |
void | assertUnshared () |
Private Attributes | |
_Ptr | _dptr |
Related Functions | |
(Note that these are not member functions.) | |
template<class _D > | |
_D * | rwcowClone (const _D *rhs) |
template<class _D , class _Ptr > | |
std::ostream & | operator<< (std::ostream &str, const RWCOW_pointer< _D, _Ptr > &obj) |
template<class _D , class _Ptr > | |
bool | operator== (const RWCOW_pointer< _D, _Ptr > &lhs, const RWCOW_pointer< _D, _Ptr > &rhs) |
template<class _D , class _Ptr > | |
bool | operator== (const RWCOW_pointer< _D, _Ptr > &lhs, const typename _Ptr::_Ptr &rhs) |
template<class _D , class _Ptr > | |
bool | operator== (const typename _Ptr::_Ptr &lhs, const RWCOW_pointer< _D, _Ptr > &rhs) |
template<class _D , class _Ptr > | |
bool | operator== (const RWCOW_pointer< _D, _Ptr > &lhs, const typename _Ptr::_constPtr &rhs) |
template<class _D , class _Ptr > | |
bool | operator== (const typename _Ptr::_constPtr &lhs, const RWCOW_pointer< _D, _Ptr > &rhs) |
template<class _D , class _Ptr > | |
bool | operator!= (const RWCOW_pointer< _D, _Ptr > &lhs, const RWCOW_pointer< _D, _Ptr > &rhs) |
template<class _D , class _Ptr > | |
bool | operator!= (const RWCOW_pointer< _D, _Ptr > &lhs, const typename _Ptr::_Ptr &rhs) |
template<class _D , class _Ptr > | |
bool | operator!= (const typename _Ptr::_Ptr &lhs, const RWCOW_pointer< _D, _Ptr > &rhs) |
template<class _D , class _Ptr > | |
bool | operator!= (const RWCOW_pointer< _D, _Ptr > &lhs, const typename _Ptr::_constPtr &rhs) |
template<class _D , class _Ptr > | |
bool | operator!= (const typename _Ptr::_constPtr &lhs, const RWCOW_pointer< _D, _Ptr > &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 414 of file PtrTypes.h.
typedef _Traits::_Ptr zypp::RWCOW_pointer< _D, _Traits >::_Ptr |
Definition at line 416 of file PtrTypes.h.
typedef _Traits::_constPtr zypp::RWCOW_pointer< _D, _Traits >::_constPtr |
Definition at line 417 of file PtrTypes.h.
typedef _Ptr::unspecified_bool_type zypp::RWCOW_pointer< _D, _Traits >::unspecified_bool_type |
Definition at line 418 of file PtrTypes.h.
|
inlineexplicit |
Definition at line 421 of file PtrTypes.h.
|
inlineexplicit |
Definition at line 426 of file PtrTypes.h.
|
inline |
Definition at line 430 of file PtrTypes.h.
|
inline |
Definition at line 433 of file PtrTypes.h.
|
inline |
Definition at line 436 of file PtrTypes.h.
|
inline |
Definition at line 439 of file PtrTypes.h.
|
inline |
Definition at line 442 of file PtrTypes.h.
|
inline |
Definition at line 445 of file PtrTypes.h.
|
inline |
Definition at line 448 of file PtrTypes.h.
|
inline |
Definition at line 451 of file PtrTypes.h.
|
inline |
Definition at line 454 of file PtrTypes.h.
|
inline |
Definition at line 457 of file PtrTypes.h.
|
inline |
Definition at line 460 of file PtrTypes.h.
|
inline |
Definition at line 464 of file PtrTypes.h.
|
inline |
Definition at line 467 of file PtrTypes.h.
|
inline |
Definition at line 470 of file PtrTypes.h.
|
inline |
Definition at line 473 of file PtrTypes.h.
|
inline |
Definition at line 476 of file PtrTypes.h.
|
inlineprivate |
Definition at line 481 of file PtrTypes.h.
|
private |
Definition at line 488 of file PtrTypes.h.