Tizen Native API
4.0
|
Base class to store a weak pointer to an internal DALi object. More...
Public Member Functions | |
WeakHandleBase () | |
Default constructor which provides an uninitialized Dali::WeakHandleBase. | |
WeakHandleBase (Handle &handle) | |
This constructor creates a weak handle of the DALi object. | |
~WeakHandleBase () | |
Destructor to free resources. | |
WeakHandleBase (const WeakHandleBase &handle) | |
Copy constructor. | |
WeakHandleBase & | operator= (const WeakHandleBase &rhs) |
Assignment operator. | |
bool | operator== (const WeakHandleBase &rhs) const |
Equality operator overload. | |
bool | operator!= (const WeakHandleBase &rhs) const |
Inequality operator overload. | |
Handle | GetBaseHandle () const |
Gets the handle to the DALi object. | |
void | Reset () |
Resets this weak handle to not point to any DALi object. |
Base class to store a weak pointer to an internal DALi object.
The handle to the object can be accessed if the object exists, and such access is not reference counted. When the object is deleted, the weak pointer will be set to NULL, and any further attempt to access to a deleted object will return an empty handle.
Default constructor which provides an uninitialized Dali::WeakHandleBase.
Dali::WeakHandleBase::WeakHandleBase | ( | Handle & | handle | ) |
This constructor creates a weak handle of the DALi object.
[in] | handle | A reference to the handle of the DALi object |
Destructor to free resources.
Dali::WeakHandleBase::WeakHandleBase | ( | const WeakHandleBase & | handle | ) |
Copy constructor.
[in] | handle | A reference to the copied WeakHandleBase |
Handle Dali::WeakHandleBase::GetBaseHandle | ( | ) | const |
Gets the handle to the DALi object.
bool Dali::WeakHandleBase::operator!= | ( | const WeakHandleBase & | rhs | ) | const |
Inequality operator overload.
[in] | rhs | A reference to the compared WeakHandleBase |
WeakHandleBase& Dali::WeakHandleBase::operator= | ( | const WeakHandleBase & | rhs | ) |
Assignment operator.
It makes this WeakHandleBase point to the same internal DALi object as the copied WeakHandleBase
[in] | rhs | A reference to the copied WeakHandleBase |
bool Dali::WeakHandleBase::operator== | ( | const WeakHandleBase & | rhs | ) | const |
Equality operator overload.
[in] | rhs | A reference to the compared WeakHandleBase |
void Dali::WeakHandleBase::Reset | ( | ) |
Resets this weak handle to not point to any DALi object.