Public Methods | |
| Storage_ () | |
| Default ctor, inits to empty. | |
| Storage_ (const T_ *Dptr) | |
| Init with an already available data object. More... | |
| Storage_ (const Storage_ &S) | |
| Copy ctor, implements deep copy. | |
| ~Storage_ () | |
| destructor: deletes stored object, too. | |
Public Attributes | |
| T_* | Dataptr |
| int | Refcount |
Implements deep and shallow copy
Definition at line 41 of file Refstorage.hh.
|
|
Default ctor, inits to empty.
Definition at line 48 of file Refstorage.hh. |
|
|
Init with an already available data object. Ideally, this data object has to be allocated dynamically like 'Storage_(new T_(params...))' and ownership is taken by Refstorage_<T_>::Storage_ so that de-allocation will be performed by it. Definition at line 57 of file Refstorage.hh. |
|
|
Copy ctor, implements deep copy.
Definition at line 60 of file Refstorage.hh. |
|
|
destructor: deletes stored object, too.
Definition at line 65 of file Refstorage.hh. |
|
|
Definition at line 44 of file Refstorage.hh. |
|
|
Definition at line 45 of file Refstorage.hh. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001