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