X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fcommon%2Flight.h;h=5e2821d17abe93cd911cf11a7a09cb096f6e3dc3;hb=337560e080de3951f07a64da841a86d66ff3355b;hp=8f1e30b33a48ac348e0f1a167eb0a0cb123c18f6;hpb=27619bbc4c1d443e89a6cdd116e544f6d9657fa4;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/common/light.h b/dali/public-api/common/light.h index 8f1e30b..5e2821d 100644 --- a/dali/public-api/common/light.h +++ b/dali/public-api/common/light.h @@ -83,14 +83,36 @@ public: } /** - * @brief Virtual destructor. + * @brief Destructor + * + * This is non-virtual since derived Handle types must not contain data or virtual methods. + */ + ~Light(); + + /** + * @brief This copy constructor is required for (smart) pointer semantics. + * + * @param [in] handle A reference to the copied handle */ - virtual ~Light(); + Light(const Light& handle); /** - * @copydoc Dali::BaseHandle::operator= + * @brief This assignment operator is required for (smart) pointer semantics. + * + * @param [in] rhs A reference to the copied handle + * @return A reference to this + */ + Light& operator=(const Light& rhs); + + /** + * @brief This method is defined to allow assignment of the NULL value, + * and will throw an exception if passed any other value. + * + * Assigning to NULL is an alias for Reset(). + * @param [in] rhs A NULL pointer + * @return A reference to this handle */ - using BaseHandle::operator=; + Light& operator=(BaseHandle::NullType* rhs); /** * @brief Set the light's name.