BasicRepPtr Class Reference
Base class wraping a Rep* and managing reference counting.
More...
#include <Rep.h>
Inheritance diagram for BasicRepPtr:
List of all members.
Detailed Description
Base class wraping a Rep* and managing reference counting.
A BasicRepPtr is explicity constructed from a Rep*. It references Rep while it holds the pointer and adjusts the reference counter on copy and assignment.
It may serve as base for template classes operating on data classes derived from Rep. For example VarPtr.
Constructor & Destructor Documentation
BasicRepPtr::BasicRepPtr |
( |
|
) |
[inline, protected] |
|
BasicRepPtr::BasicRepPtr |
( |
Rep * |
ptr |
) |
[inline, explicit, protected] |
|
BasicRepPtr::BasicRepPtr |
( |
const BasicRepPtr & |
rhs |
) |
[inline, protected] |
|
BasicRepPtr::~BasicRepPtr |
( |
|
) |
[inline, protected] |
|
Member Function Documentation
void BasicRepPtr::_assign |
( |
Rep * |
new_r |
) |
[inline, private] |
|
|
Takes care of reference counter when assigning _ptr a new value. |
BasicRepPtr::operator const void * |
( |
|
) |
const [inline] |
|
|
Allow easy test for NULL. |
Rep* BasicRepPtr::repPtr |
( |
|
) |
const [inline, protected] |
|
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
str, |
|
|
const BasicRepPtr & |
obj |
|
) |
[friend] |
|
|
Print out the Rep object. |
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Fri Feb 24 00:30:02 2006 for liby2util by
1.4.4