#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 () |
Private Member Functions | |
| void | assertUnshared () |
Private Attributes | |
| _Ptr | _dptr |
Related Functions | |
| (Note that these are not member functions.) | |
| _D * | rwcowClone (const _D *rhs) |
| Clone the underlying object. | |
| std::ostream & | operator<< (std::ostream &str, const RWCOW_pointer< _D, _Ptr > &obj) |
| Stream output. | |
Write access to the underlying object creates a copy, iff the object is shared.
See RW_pointer.
Definition at line 305 of file PtrTypes.h.
| typedef _Traits::_Ptr zypp::RWCOW_pointer< _D, _Traits >::_Ptr |
Definition at line 307 of file PtrTypes.h.
| typedef _Traits::_constPtr zypp::RWCOW_pointer< _D, _Traits >::_constPtr |
Definition at line 308 of file PtrTypes.h.
| typedef _Ptr::unspecified_bool_type zypp::RWCOW_pointer< _D, _Traits >::unspecified_bool_type |
Definition at line 309 of file PtrTypes.h.
| zypp::RWCOW_pointer< _D, _Traits >::RWCOW_pointer | ( | typename _Ptr::element_type * | dptr = 0 |
) | [inline, explicit] |
Definition at line 312 of file PtrTypes.h.
| zypp::RWCOW_pointer< _D, _Traits >::RWCOW_pointer | ( | _Ptr | dptr | ) | [inline, explicit] |
Definition at line 317 of file PtrTypes.h.
| void zypp::RWCOW_pointer< _D, _Traits >::reset | ( | ) | [inline] |
Definition at line 321 of file PtrTypes.h.
| void zypp::RWCOW_pointer< _D, _Traits >::reset | ( | typename _Ptr::element_type * | dptr | ) | [inline] |
Definition at line 324 of file PtrTypes.h.
| void zypp::RWCOW_pointer< _D, _Traits >::swap | ( | RWCOW_pointer< _D, _Traits > & | rhs | ) | [inline] |
Definition at line 327 of file PtrTypes.h.
| void zypp::RWCOW_pointer< _D, _Traits >::swap | ( | _Ptr & | rhs | ) | [inline] |
Definition at line 330 of file PtrTypes.h.
| zypp::RWCOW_pointer< _D, _Traits >::operator unspecified_bool_type | ( | ) | const [inline] |
Definition at line 333 of file PtrTypes.h.
| const _D& zypp::RWCOW_pointer< _D, _Traits >::operator * | ( | ) | const [inline] |
Definition at line 336 of file PtrTypes.h.
| const _D* zypp::RWCOW_pointer< _D, _Traits >::operator-> | ( | ) | const [inline] |
Definition at line 339 of file PtrTypes.h.
| const _D* zypp::RWCOW_pointer< _D, _Traits >::get | ( | ) | const [inline] |
Definition at line 342 of file PtrTypes.h.
| _D& zypp::RWCOW_pointer< _D, _Traits >::operator * | ( | ) | [inline] |
Definition at line 345 of file PtrTypes.h.
| _D* zypp::RWCOW_pointer< _D, _Traits >::operator-> | ( | ) | [inline] |
Definition at line 348 of file PtrTypes.h.
| _D* zypp::RWCOW_pointer< _D, _Traits >::get | ( | ) | [inline] |
Definition at line 351 of file PtrTypes.h.
| bool zypp::RWCOW_pointer< _D, _Traits >::unique | ( | ) | const [inline] |
Definition at line 355 of file PtrTypes.h.
Referenced by zypp::RWCOW_pointer< zypp::TranslatedText::Impl >::assertUnshared().
| long zypp::RWCOW_pointer< _D, _Traits >::use_count | ( | ) | const [inline] |
Definition at line 358 of file PtrTypes.h.
| _constPtr zypp::RWCOW_pointer< _D, _Traits >::getPtr | ( | ) | const [inline] |
Definition at line 361 of file PtrTypes.h.
| _Ptr zypp::RWCOW_pointer< _D, _Traits >::getPtr | ( | ) | [inline] |
Definition at line 364 of file PtrTypes.h.
| void zypp::RWCOW_pointer< _D, _Traits >::assertUnshared | ( | ) | [inline, private] |
Definition at line 369 of file PtrTypes.h.
Referenced by zypp::RWCOW_pointer< zypp::TranslatedText::Impl >::get(), zypp::RWCOW_pointer< zypp::TranslatedText::Impl >::getPtr(), zypp::RWCOW_pointer< zypp::TranslatedText::Impl >::operator *(), and zypp::RWCOW_pointer< zypp::TranslatedText::Impl >::operator->().
_Ptr zypp::RWCOW_pointer< _D, _Traits >::_dptr [private] |
Definition at line 376 of file PtrTypes.h.
Referenced by zypp::RWCOW_pointer< zypp::TranslatedText::Impl >::assertUnshared(), zypp::RWCOW_pointer< zypp::TranslatedText::Impl >::get(), zypp::RWCOW_pointer< zypp::TranslatedText::Impl >::getPtr(), zypp::RWCOW_pointer< zypp::TranslatedText::Impl >::operator *(), zypp::RWCOW_pointer< zypp::TranslatedText::Impl >::operator unspecified_bool_type(), zypp::RWCOW_pointer< zypp::TranslatedText::Impl >::operator->(), zypp::RWCOW_pointer< zypp::TranslatedText::Impl >::reset(), zypp::RWCOW_pointer< zypp::TranslatedText::Impl >::swap(), zypp::RWCOW_pointer< zypp::TranslatedText::Impl >::unique(), and zypp::RWCOW_pointer< zypp::TranslatedText::Impl >::use_count().
1.5.0