|
Tizen Native API
5.0
|
Base class for reference counted objects. More...
Public Member Functions | |
| void | Reference () |
| Increments the object's reference count. | |
| void | Unreference () |
| Decrements the object's reference count. | |
| uint32_t | ReferenceCount () |
| Retrieves the object's reference count. | |
Protected Member Functions | |
| RefObject () | |
| Default constructor. | |
| virtual | ~RefObject () |
| RefObject is intended as a base class. | |
| RefObject (const RefObject &rhs) | |
| Copy constructor. | |
| RefObject & | operator= (const RefObject &rhs) |
| Assignment operator. | |
Base class for reference counted objects.
Typically this should be used with an intrusive pointer, instead of calling Reference() and Unreference() methods directly.
| Dali::RefObject::RefObject | ( | ) | [protected] |
Default constructor.
| virtual Dali::RefObject::~RefObject | ( | ) | [protected, virtual] |
| Dali::RefObject::RefObject | ( | const RefObject & | rhs | ) | [protected] |
Copy constructor.
The newly copied object will have a reference count of zero.
| [in] | rhs | The object to copy |
Assignment operator.
The newly copied object will have a reference count of zero.
| [in] | rhs | The object to copy |
| void Dali::RefObject::Reference | ( | ) |
Increments the object's reference count.
| uint32_t Dali::RefObject::ReferenceCount | ( | ) |
Retrieves the object's reference count.
| void Dali::RefObject::Unreference | ( | ) |
Decrements the object's reference count.
When the reference count drops to zero, the object will self-destruct.