BaseObject& BaseHandle::GetBaseObject()
{
- DALI_ASSERT_ALWAYS( mObjectHandle.Get() && "BaseHandle is empty" );
-
return static_cast<BaseObject&>(*mObjectHandle);
}
const BaseObject& BaseHandle::GetBaseObject() const
{
- DALI_ASSERT_ALWAYS(mObjectHandle.Get() && "BaseHandle is empty" );
-
return static_cast<const BaseObject&>(*mObjectHandle);
}
* @brief Retrieve the internal Dali resource.
*
* This is useful for checking the reference count of the internal resource.
- * This method will assert, if the Dali::BaseHandle has not been initialized.
+ * This method will not check the validity of the handle so the caller is expected to check it by using if (handle)
* @return The BaseObject which is referenced by the BaseHandle.
*/
BaseObject& GetBaseObject();
* @brief Retrieve the internal Dali resource.
*
* This is useful for checking the reference count of the internal resource.
- * This method will assert, if the Dali::BaseHandle has not been initialized.
+ * This method will not check the validity of the handle so the caller is expected to check it by using if (handle)
* @return The BaseObject which is referenced by the BaseHandle.
*/
const BaseObject& GetBaseObject() const;