#include <pointer.h>
Public Methods | |
| SmartPointer () | |
| SmartPointer (const SmartPointer &that) | |
| ~SmartPointer () | |
| void | initialize () |
| SmartPointer & | operator= (const SmartPointer &that) |
| void | copyFrom (const SmartPointer &that) |
| int | refcount () const |
| T * | operator-> () const |
| T & | operator * () const |
| void | detach () |
Public Attributes | |
| SmartBlock * | memory |
Protected Methods | |
| void | attach (SmartBlock *that) |
|
|||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
|
|
||||||||||
|
attach assumes that memory == 0, so we must protect it. |
|
||||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
|
|
|||||
|
|
1.2.18