Tizen Native API
|
Dali::RefObject Class Reference
Base class for reference counted objects. More...
Inheritance diagram for Dali::RefObject:
Public Member Functions | |
void | Reference () |
Increment the object's reference count. | |
void | Unreference () |
Decrement the object's reference count. | |
int | ReferenceCount () |
Retrieve 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 instrusive pointer, instead of calling Reference() and Unreference() methods directly.
- Since :
- 2.4
Constructor & Destructor Documentation
Dali::RefObject::RefObject | ( | ) | [protected] |
Default constructor.
- Since :
- 2.4
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
- 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
- Parameters:
-
[in] rhs The object to copy
- Returns:
- a reference to this
void Dali::RefObject::Reference | ( | ) |
Increment the object's reference count.
- Since :
- 2.4
int Dali::RefObject::ReferenceCount | ( | ) |
Retrieve the object's reference count.
- Since :
- 2.4
- Returns:
- The reference count
void Dali::RefObject::Unreference | ( | ) |
Decrement the object's reference count.
When the reference count drops to zero, the object will self-destruct.
- Since :
- 2.4