Ensure BaseHandle class move noexcept (core public-api)
[platform/core/uifw/dali-core.git] / dali / public-api / animation / linear-constrainer.h
index 6a29eec..87473f6 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_LINEAR_CONSTRAINER_H__
-#define __DALI_LINEAR_CONSTRAINER_H__
+#ifndef DALI_LINEAR_CONSTRAINER_H
+#define DALI_LINEAR_CONSTRAINER_H
 
 /*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ namespace Dali
 
 namespace Internal DALI_INTERNAL
 {
-  class LinearConstrainer;
+class LinearConstrainer;
 }
 
 /**
@@ -54,10 +54,9 @@ namespace Internal DALI_INTERNAL
  * target and the source as the actor's position.
  * @SINCE_1_0.0
  */
-class DALI_IMPORT_API LinearConstrainer : public Handle
+class DALI_CORE_API LinearConstrainer : public Handle
 {
 public:
-
   /**
    * @brief Enumeration for the instance of properties belonging to the LinearConstrainer class.
    * @SINCE_1_0.0
@@ -70,8 +69,8 @@ public:
      */
     enum
     {
-      VALUE     = DEFAULT_OBJECT_PROPERTY_START_INDEX,  ///< name "value" type Array of float @SINCE_1_0.0
-      PROGRESS,                                         ///< name "progress" type Array of float @SINCE_1_0.0
+      VALUE = DEFAULT_OBJECT_PROPERTY_START_INDEX, ///< name "value" type Array of float @SINCE_1_0.0
+      PROGRESS,                                    ///< name "progress" type Array of float @SINCE_1_0.0
     };
   };
 
@@ -92,7 +91,7 @@ public:
    * @param[in] handle Handle to an object
    * @return Handle to a LinearConstrainer object or an uninitialized handle
    */
-  static LinearConstrainer DownCast( BaseHandle handle );
+  static LinearConstrainer DownCast(BaseHandle handle);
 
   /**
    * @brief Creates an uninitialized LinearConstrainer handle.
@@ -129,6 +128,23 @@ public:
   LinearConstrainer& operator=(const LinearConstrainer& rhs);
 
   /**
+   * @brief Move constructor.
+   *
+   * @SINCE_1_9.22
+   * @param[in] rhs A reference to the moved handle
+   */
+  LinearConstrainer(LinearConstrainer&& rhs) noexcept;
+
+  /**
+   * @brief Move assignment operator.
+   *
+   * @SINCE_1_9.22
+   * @param[in] rhs A reference to the moved handle
+   * @return A reference to this
+   */
+  LinearConstrainer& operator=(LinearConstrainer&& rhs) noexcept;
+
+  /**
    * @brief Applies the linear constraint to the target property.
    *
    * @SINCE_1_0.0
@@ -137,7 +153,7 @@ public:
    * @param[in] range The range of values in the source property which will be mapped to [0,1]
    * @param[in] wrap Wrapping domain. Source property will be wrapped in the domain [wrap.x,wrap.y] before mapping to [0,1]. See cfloat.h for FLT_MAX
    */
-  void Apply( Dali::Property target, Dali::Property source, const Vector2& range, const Vector2& wrap = Vector2(-FLT_MAX, FLT_MAX) );
+  void Apply(Dali::Property target, Dali::Property source, const Vector2& range, const Vector2& wrap = Vector2(-FLT_MAX, FLT_MAX));
 
   /**
    * @brief Removes the linear constraint in the target object.
@@ -145,7 +161,7 @@ public:
    * @SINCE_1_0.0
    * @param[in] target A handle to an object constrained by the LinearConstrainer
    */
-  void Remove( Dali::Handle& target );
+  void Remove(Dali::Handle& target);
 
 public: // Not intended for application developers
   /// @cond internal
@@ -164,4 +180,4 @@ public: // Not intended for application developers
  */
 } // namespace Dali
 
-#endif // __DALI_LINEAR_CONSTRAINER_H__
+#endif // DALI_LINEAR_CONSTRAINER_H