Public Methods | |
ObjectRef (Object *obj) | |
Constructor used by the create() factory method. More... | |
ObjectRef (Abstract *obj) | |
Constructor used by the create() factory method. More... | |
ObjectRef (const ObjectRef &r) | |
Copy constructor for making a local object reference. More... | |
~ObjectRef (void) | |
The normal destructor. | |
const ObjectRef & | operator= (const ObjectRef &r) const |
The const version of the assignment operator. | |
bool | operator== (const ObjectRef &r) const |
Boolean comparison of two objects for equality. | |
bool | operator!= (const ObjectRef &r) const |
Boolean comparison of two objects for inequality. | |
Object * | get () |
A way to get access to the internal pointer. More... | |
const Object * | get () const |
Same as the other get() method but assumes the ObjectRef will not change as a result. |
This class knows how to maintain reference counts.
Definition at line 59 of file RefCount.
|
Constructor used by the create() factory method.
For internal use only. Definition at line 59 of file RefCount.cpp. |
|
Constructor used by the create() factory method.
For internal use only. Definition at line 50 of file RefCount.cpp. |
|
Copy constructor for making a local object reference. This is the constructor most developers will use either directly or indirectly. Definition at line 68 of file RefCount.cpp. |
|
A way to get access to the internal pointer. Needed especially for String. Definition at line 114 of file RefCount.cpp. |