yast2-core
|
Common base class for all counted pointer classes. More...
#include <Rep.h>
Public Member Functions | |
operator const void * () const | |
Protected Member Functions | |
virtual | ~RepPtrBase () |
virtual const Rep * | refbase () const =0 |
Friends | |
std::ostream & | operator<< (std::ostream &str, const RepPtrBase &obj) |
Common base class for all counted pointer classes.
Provides stream output operator and conversion to 'const void *' to allow pointer comparison and test for NULL.
See PtrBase and constPtrBase
|
inlineprotectedvirtual |
virtual destructor;
|
inline |
Conversion to 'const void *' to allow pointer comparison and test for NULL.
References refbase().
|
protectedpure virtual |
Derived class must provide the objects 'Rep *'
Implemented in constPtr< _Tp, _Bt >, and Ptr< _Tp, _Bt >.
Referenced by operator const void *(), and operator<<().
|
friend |
Stream output operator for all counted pointer classes.