Implemented the Handle assignment operators properly
[platform/core/uifw/dali-core.git] / dali / public-api / dynamics / dynamics-world.h
index 8cc957c..58e0511 100644 (file)
@@ -118,9 +118,29 @@ public:
   ~DynamicsWorld();
 
   /**
-   * @copydoc Dali::BaseHandle::operator=
+   * @brief This copy constructor is required for (smart) pointer semantics.
+   *
+   * @param [in] handle A reference to the copied handle
+   */
+  DynamicsWorld(const DynamicsWorld& handle);
+
+  /**
+   * @brief This assignment operator is required for (smart) pointer semantics.
+   *
+   * @param [in] rhs  A reference to the copied handle
+   * @return A reference to this
+   */
+  DynamicsWorld& operator=(const DynamicsWorld& 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=;
+  DynamicsWorld& operator=(BaseHandle::NullType* rhs);
 
 // Methods that modify the simulation
 public: