#include <refcount.hpp>
Inheritance diagram for GarbageSafePointer:


The GarbageSafePointer is the class which encapsulates a pointer to an GarbageSafe object (constant or non-constant) and notifies the object about creation and disposion of the reference.
Definition at line 88 of file refcount.hpp.
Public Member Functions | |
| GarbageSafePointer () | |
| Default constructor simply creates a NULL pointer. | |
| GarbageSafePointer (const GarbageSafe *pp) | |
| Construct from pointer. | |
| GarbageSafePointer (const GarbageSafePointer &other) | |
| Simply a copy constructor. | |
| ~GarbageSafePointer () | |
| Destructor. | |
| GarbageSafePointer & | operator= (const GarbageSafePointer &other) |
| Assign a value from another GarbageSafePointer. | |
| GarbageSafePointer & | operator= (GarbageSafe *pp) |
| Assign a value of a plain pointer. | |
| GarbageSafe * | GetPtr () const |
| Get the pointer to the referenced object. | |
|
|
Default constructor simply creates a NULL pointer.
Definition at line 92 of file refcount.hpp. |
|
|
Construct from pointer.
Definition at line 95 of file refcount.hpp. References GarbageSafe::AddRef(). |
|
|
Simply a copy constructor.
Definition at line 99 of file refcount.hpp. References GarbageSafe::AddRef(). |
|
|
Destructor.
Definition at line 103 of file refcount.hpp. References GarbageSafe::Unlink(). |
|
|
Assign a value from another GarbageSafePointer. We must increment the counter in this situation Definition at line 108 of file refcount.hpp. References GarbageSafe::AddRef(), and GarbageSafe::Unlink(). Referenced by GenericReference< SExpression >::operator=(). |
|
|
Assign a value of a plain pointer.
Definition at line 117 of file refcount.hpp. References GarbageSafe::AddRef(), and GarbageSafe::Unlink(). |
|
1.4.1