yast2-core
|
Counted '_Tp *'. Support construction/assignment via dynamic_cast from PtrBase<_Bt> More...
#include <Rep.h>
Public Member Functions | |
Ptr (_Tp *ptr=0) | |
Ptr (const Ptr &rhs) | |
Ptr (const PtrBase< _Bt > &rhs) | |
Ptr & | operator= (_Tp *ptr) |
Ptr & | operator= (const Ptr &rhs) |
Ptr & | operator= (const PtrBase< _Bt > &rhs) |
_Tp * | operator-> () const |
_Tp & | operator* () const |
![]() | |
operator const void * () const | |
Static Public Member Functions | |
static Ptr | cast_away_const (constPtr< _Tp, _Bt > rhs) |
Protected Member Functions | |
virtual const Rep * | refbase () const |
virtual _Bt * | base () const |
![]() | |
_Bt * | getBase (const PtrBase &rhs) const |
![]() | |
virtual | ~RepPtrBase () |
Private Attributes | |
RepPtrStore< _Tp, _Bt > | _ptr |
Counted '_Tp *'. Support construction/assignment via dynamic_cast from PtrBase<_Bt>
Constructor. From '_Tp *'. Defaults to NULL.
|
inline |
CopyConstructor. From Ptr<_Tp,_Bt>.
|
inline |
Constructor. From Ptr<..,_Bt>, i.e. pointer to an object that inherits _Bt.
References RepPtrStore< _Tp, _Bt >::tryAssign().
|
inlineprotectedvirtual |
Required by inherited PtrBase.
Implements PtrBase< _Bt >.
References RepPtrStore< _Tp, _Bt >::base().
|
inline |
Access the _Tp object (or SEGV if _ptr is NULL)
|
inline |
Access forwarded to the _Tp object (or SEGV if _ptr is NULL)
Assign from '_Tp *'.
|
inline |
Assign from Ptr<_Tp,_Bt>.
References Ptr< _Tp, _Bt >::_ptr.
|
inline |
Assign from Ptr<..,_Bt>, i.e. pointer to an object that inherits _Bt.
References RepPtrStore< _Tp, _Bt >::tryAssign().
|
inlineprotectedvirtual |
Required by inherited RepPtrBase.
Implements RepPtrBase.
References RepPtrStore< _Tp, _Bt >::refbase().
|
private |
The '_Tp*'.
Referenced by Ptr< _Tp, _Bt >::operator=().