|
Tizen Native API
6.0
|
Base class for reference counted objects. More...
Inheritance diagram for Dali::RefObject:
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. | |
Detailed Description
Base class for reference counted objects.
Typically this should be used with an intrusive pointer, instead of calling Reference() and Unreference() methods directly.
- Since:
- 2.4, DALi version 1.0.0
Constructor & Destructor Documentation
| Dali::RefObject::RefObject | ( | ) | [protected] |
Default constructor.
- Since:
- 2.4, DALi version 1.0.0
| 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.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] rhs The object to copy
Member Function Documentation
Assignment operator.
The newly copied object will have a reference count of zero.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] rhs The object to copy
- Returns:
- A reference to this
| void Dali::RefObject::Reference | ( | ) |
Increments the object's reference count.
- Since:
- 2.4, DALi version 1.0.0
| uint32_t Dali::RefObject::ReferenceCount | ( | ) |
Retrieves the object's reference count.
- Since:
- 2.4, DALi version 1.0.0
- Returns:
- The reference count
| void Dali::RefObject::Unreference | ( | ) |
Decrements the object's reference count.
When the reference count drops to zero, the object will self-destruct.
- Since:
- 2.4, DALi version 1.0.0