removal of unnecessary exports; math & object.. 15 exports less 54/29554/2
authorKimmo Hoikka <kimmo.hoikka@samsung.com>
Wed, 29 Oct 2014 13:39:51 +0000 (13:39 +0000)
committerKimmo Hoikka <kimmo.hoikka@samsung.com>
Wed, 29 Oct 2014 13:42:40 +0000 (06:42 -0700)
[Problem]
[Cause]
[Solution]

Change-Id: I755da8602f1026c874da0d582234a773bb06def5

31 files changed:
dali/public-api/math/angle-axis.h
dali/public-api/math/compile-time-assert.h
dali/public-api/math/compile-time-math.h
dali/public-api/math/degree.h
dali/public-api/math/matrix.h
dali/public-api/math/matrix3.h
dali/public-api/math/quaternion.h
dali/public-api/math/radian.h
dali/public-api/math/random.h
dali/public-api/math/rect.h
dali/public-api/math/vector2.h
dali/public-api/math/vector3.h
dali/public-api/math/vector4.h
dali/public-api/math/viewport.h
dali/public-api/object/base-handle.cpp
dali/public-api/object/base-handle.h
dali/public-api/object/base-object.h
dali/public-api/object/constrainable.h
dali/public-api/object/handle.h
dali/public-api/object/object-registry.h
dali/public-api/object/property-conditions.h
dali/public-api/object/property-index.h
dali/public-api/object/property-input.h
dali/public-api/object/property-notification-declarations.h
dali/public-api/object/property-notification.h
dali/public-api/object/property-types.h
dali/public-api/object/property.h
dali/public-api/object/ref-object.h
dali/public-api/object/type-info.h
dali/public-api/object/type-registry.h
dali/public-api/scripting/scripting.h

index 488f917..245fc05 100644 (file)
@@ -22,7 +22,7 @@
 #include <dali/public-api/math/degree.h>
 #include <dali/public-api/math/vector3.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 struct Radian;
index 8465379..207c86f 100644 (file)
@@ -24,7 +24,7 @@
 // EXTERNAL INCLUDES
 #include <cstddef>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 template <bool x> struct CompileTimeAssertBool;    ///< Bool Template to test condition
index 9d90040..db916be 100644 (file)
@@ -24,7 +24,7 @@
 // INTERNAL INCLUDES
 #include <dali/public-api/common/dali-common.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 /**
  * @brief Compile time template to calculate base to the power of N.
index a973050..4a9f1b8 100644 (file)
@@ -21,7 +21,7 @@
 // INTERNAL INCLUDES
 #include <dali/public-api/common/dali-common.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 struct Radian;
index 2a3a4cf..5e44903 100644 (file)
@@ -24,7 +24,7 @@
 // INTERNAL INCLUDES
 #include <dali/public-api/math/vector4.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 class Quaternion;
 
index 2c8a3bb..8d9aecb 100644 (file)
@@ -22,7 +22,7 @@
 #include <dali/public-api/math/vector3.h>
 #include <dali/public-api/math/matrix.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 class Matrix;
index e298c85..c2d6531 100644 (file)
@@ -27,7 +27,7 @@
 #include <dali/public-api/common/constants.h>
 #include <dali/public-api/math/vector4.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 // Forward declaration
index 0d3bc2d..8f18845 100644 (file)
@@ -21,7 +21,7 @@
 // INTERNAL INCLUDES
 #include <dali/public-api/common/dali-common.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 struct Degree;
index b0eb321..ee9a012 100644 (file)
@@ -21,7 +21,7 @@
 // INTERNAL INCLUDES
 #include <dali/public-api/math/vector4.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 /**
index 3c33d77..44ac5ed 100644 (file)
@@ -24,7 +24,7 @@
 // INTERNAL INCLUDES
 #include <dali/public-api/math/math-utils.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 /**
index eb63cb0..267a8a4 100644 (file)
@@ -25,7 +25,7 @@
 // INTERNAL INCLUDES
 #include <dali/public-api/common/dali-common.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 struct Vector3;
index 75c716f..d37217f 100644 (file)
@@ -25,7 +25,7 @@
 // INTERNAL INCLUDES
 #include <dali/public-api/common/dali-common.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 struct Vector2;
@@ -597,7 +597,7 @@ DALI_IMPORT_API Vector3 FillXYKeepAspectRatio( const Vector3& target, const Vect
  * @param [in] source size
  * @return target scaled inside source
  */
-Vector3 ShrinkInsideKeepAspectRatio( const Vector3& target, const Vector3& source );
+DALI_IMPORT_API Vector3 ShrinkInsideKeepAspectRatio( const Vector3& target, const Vector3& source );
 
 
 } // namespace Dali
index 0665287..473d8a4 100644 (file)
@@ -26,7 +26,7 @@
 // INTERNAL INCLUDES
 #include <dali/public-api/common/dali-common.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 struct Vector2;
 struct Vector3;
index 7b8bb4e..bd1b3b5 100644 (file)
@@ -21,7 +21,7 @@
 // INTERNAL INCLUDES
 #include <dali/public-api/math/rect.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 /**
index 2b0fa4f..02900cc 100644 (file)
@@ -123,9 +123,4 @@ bool BaseHandle::DoConnectSignal( ConnectionTrackerInterface* connectionTracker,
   return GetImplementation(*this).DoConnectSignal( connectionTracker, signalName, functor );
 }
 
-bool operator<(const BaseHandle& lhs, const BaseHandle& rhs)
-{
-  return lhs.GetObjectPtr() < rhs.GetObjectPtr();
-}
-
 } // namespace Dali
index e4e226c..8a300fe 100644 (file)
@@ -28,7 +28,7 @@
 #include <dali/public-api/object/ref-object.h>
 #include <dali/public-api/signals/functor-delegate.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 class BaseObject;
@@ -51,7 +51,7 @@ class TypeInfo;
  * A resource will not be deleted until all its Dali::BaseHandle handles are destroyed, or reset.
  *
  */
-class BaseHandle
+class DALI_IMPORT_API BaseHandle
 {
 public:
 
@@ -248,6 +248,7 @@ private:
 private:
 
   IntrusivePtr<Dali::RefObject> mObjectHandle; ///< Object this handle points at.
+
 };
 
 /**
@@ -258,7 +259,7 @@ private:
  * @return handle pointer to either a valid deriving handle or an uninitialized handle
  */
 template< class T >
-T DownCast( BaseHandle handle )
+inline T DownCast( BaseHandle handle )
 {
   return T::DownCast( handle );
 }
@@ -269,7 +270,7 @@ T DownCast( BaseHandle handle )
  * @brief Equality operator
  */
 template <typename T>
-bool operator==(const BaseHandle& lhs, const T& rhs)
+inline bool operator==(const BaseHandle& lhs, const T& rhs)
 {
   // We depart from the safe bool idiom to allow Dali::BaseHandle derived classes to be compared
   return lhs == static_cast<const BaseHandle&>(rhs);
@@ -279,18 +280,19 @@ bool operator==(const BaseHandle& lhs, const T& rhs)
  * @brief Equality operator
  */
 template <typename T>
-bool operator!=(const BaseHandle& lhs, const T& rhs)
+inline bool operator!=(const BaseHandle& lhs, const T& rhs)
 {
   // We depart from the safe bool idiom to allow Dali::BaseHandle derived classes to be compared
   return lhs != static_cast<const BaseHandle&>(rhs);
 }
 
-// More Operators
-
 /**
  * @brief Less than operator
  */
-bool operator<(const BaseHandle& lhs, const BaseHandle& rhs);
+inline bool operator<(const BaseHandle& lhs, const BaseHandle& rhs)
+{
+  return lhs.GetObjectPtr() < rhs.GetObjectPtr();
+}
 
 } // namespace Dali
 
index ac0d786..1ff613d 100644 (file)
@@ -24,7 +24,7 @@
 #include <dali/public-api/object/property.h>
 #include <dali/public-api/signals/functor-delegate.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 class BaseHandle;
@@ -32,7 +32,7 @@ class BaseHandle;
 /**
  * @brief A base class for objects.
  */
-class BaseObject : public Dali::RefObject
+class DALI_IMPORT_API BaseObject : public Dali::RefObject
 {
 public:
 
index 3a127ea..1d695d5 100644 (file)
@@ -26,7 +26,7 @@
 namespace Dali DALI_IMPORT_API
 {
 
-namespace Internal DALI_INTERNAL
+namespace Internal
 {
 class Object;
 }
@@ -37,7 +37,7 @@ class Constraint;
  * @brief Dali::Constrainable is a handle to an internal property owning Dali object that
  * can have constraints applied to it.
  */
-class Constrainable : public Handle
+class DALI_IMPORT_API Constrainable : public Handle
 {
 public:
 
index 6817a70..a0b9e32 100644 (file)
@@ -29,7 +29,7 @@
 #include <dali/public-api/object/property-notification-declarations.h>
 #include <dali/public-api/object/ref-object.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 class PropertyNotification;
@@ -43,7 +43,7 @@ class Object;
 /**
  * @brief Dali::Handle is a handle to an internal property owning Dali object.
  */
-class Handle : public BaseHandle
+class DALI_IMPORT_API Handle : public BaseHandle
 {
 public:
 
index 9c8034b..38abcda 100644 (file)
@@ -25,7 +25,7 @@
 #include <dali/public-api/object/handle.h>
 #include <dali/public-api/signals/dali-signal-v2.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 namespace Internal DALI_INTERNAL
@@ -49,7 +49,7 @@ class ObjectRegistry;
  * registry.ObjectCreatedSignal().Connect( ObjectCreatedCallbackFunc );
  *
  */
-class ObjectRegistry : public BaseHandle
+class DALI_IMPORT_API ObjectRegistry : public BaseHandle
 {
 public:
 
index e98c68e..711a82e 100644 (file)
@@ -23,7 +23,7 @@
 #include <dali/public-api/object/base-handle.h>
 #include <dali/public-api/object/property.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 namespace Internal DALI_INTERNAL
@@ -34,7 +34,7 @@ class PropertyCondition;
 /**
  * @brief This represents a condition that can be evaluated on a Property::Value.
  */
-class PropertyCondition : public BaseHandle
+class DALI_IMPORT_API PropertyCondition : public BaseHandle
 {
 public:
 
@@ -113,7 +113,7 @@ public:
  * @param[in] arg The argument for the condition
  * @return A property condition function object
  */
-PropertyCondition LessThanCondition(float arg);
+DALI_IMPORT_API PropertyCondition LessThanCondition(float arg);
 
 /**
  * @brief GreaterThanCondition compares whether property is greater than arg.
@@ -127,7 +127,7 @@ PropertyCondition LessThanCondition(float arg);
  * @param[in] arg The argument for the condition
  * @return A property condition function object
  */
-PropertyCondition GreaterThanCondition(float arg);
+DALI_IMPORT_API PropertyCondition GreaterThanCondition(float arg);
 
 /**
  * @brief InsideCondition compares whether property is greater than arg0 and less than arg1.
@@ -142,7 +142,7 @@ PropertyCondition GreaterThanCondition(float arg);
  * @param[in] arg1 The second argument for the condition
  * @return A property condition function object
  */
-PropertyCondition InsideCondition(float arg0, float arg1);
+DALI_IMPORT_API PropertyCondition InsideCondition(float arg0, float arg1);
 
 /**
  * @brief OutsideCondition compares whether property is less than arg0 or greater than arg1.
@@ -157,7 +157,7 @@ PropertyCondition InsideCondition(float arg0, float arg1);
  * @param[in] arg1 The second argument for the condition
  * @return A property condition function object
  */
-PropertyCondition OutsideCondition(float arg0, float arg1);
+DALI_IMPORT_API PropertyCondition OutsideCondition(float arg0, float arg1);
 
 /**
  * @brief Detects when a property changes by stepAmount from initialValue, in both positive and negative directions. This will continue checking for multiples of stepAmount
@@ -171,7 +171,7 @@ PropertyCondition OutsideCondition(float arg0, float arg1);
  * @param[in] initialValue The initial value to step from
  * @return A property condition function object
  */
-PropertyCondition StepCondition(float stepAmount, float initialValue = 0.0f);
+DALI_IMPORT_API PropertyCondition StepCondition(float stepAmount, float initialValue = 0.0f);
 
 /**
  * @brief Receive notifications as a property goes above/below the inputted values. Values must be ordered and can be either ascending or descending
@@ -184,7 +184,7 @@ PropertyCondition StepCondition(float stepAmount, float initialValue = 0.0f);
  * @param[in] steps List of values to receive notifications for as a property crosses them
  * @return A property condition function object
  */
-PropertyCondition VariableStepCondition(const std::vector<float>& steps);
+DALI_IMPORT_API PropertyCondition VariableStepCondition(const std::vector<float>& steps);
 
 } // namespace Dali
 
index 8a68340..d578451 100644 (file)
@@ -21,7 +21,7 @@
 // INTERNAL INCLUDES
 #include <dali/public-api/common/dali-common.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 /**
index bd9f87e..c96bcdb 100644 (file)
@@ -21,7 +21,7 @@
 // INTERNAL INCLUDES
 #include <dali/public-api/object/property.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 struct Vector2;
@@ -34,7 +34,7 @@ class Quaternion;
 /**
  * @brief An abstract interface for receiving property values.
  */
-class PropertyInput
+class DALI_IMPORT_API PropertyInput
 {
 public:
 
index 6cfa758..e047aa9 100644 (file)
@@ -25,7 +25,7 @@
 #include <dali/public-api/common/vector-wrapper.h>
 #include <dali/public-api/signals/dali-signal-v2.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 class PropertyNotification;
index 8246a4e..ef14b7f 100644 (file)
@@ -24,7 +24,7 @@
 #include <dali/public-api/object/property-conditions.h>
 #include <dali/public-api/object/property.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 namespace Internal DALI_INTERNAL
index a38076a..0bfd2d7 100644 (file)
@@ -31,7 +31,7 @@
 #include <dali/public-api/math/rect.h>
 #include <dali/public-api/object/property.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 /**
@@ -46,7 +46,7 @@ namespace PropertyTypes
  * @param [in] type The property type.
  * @return The name of this type.
  */
-const char* GetName(Property::Type type);
+DALI_IMPORT_API const char* GetName(Property::Type type);
 
 /**
  * @brief Retrieve an enumerated property type.
index f7d562c..4e26e54 100644 (file)
@@ -26,7 +26,7 @@
 #include <dali/public-api/common/vector-wrapper.h>
 #include <dali/public-api/common/dali-common.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 class Handle;
@@ -34,7 +34,7 @@ class Handle;
 /**
  * @brief An object + property pair.
  */
-struct Property
+struct DALI_IMPORT_API Property
 {
   /**
    * @brief A valid property index is zero or greater.
index 66dc65d..b9226bd 100644 (file)
@@ -22,7 +22,7 @@
 #include <dali/public-api/common/dali-common.h>
 #include <dali/public-api/common/intrusive-ptr.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 class Value;
@@ -33,7 +33,7 @@ class Value;
  * Typically this should be used with a Boost instrusive pointer,
  * instead of calling Reference() and Unreference() methods directly.
  */
-class RefObject
+class DALI_IMPORT_API RefObject
 {
 public:
 
index 1c28438..603153a 100644 (file)
@@ -22,7 +22,7 @@
 // INTERNAL INCLUDES
 #include <dali/public-api/object/base-handle.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 class ConnectionTrackerInterface;
@@ -39,7 +39,7 @@ namespace Internal DALI_INTERNAL
  *
  * See TypeRegistry for methods of type registration and TypeInfo retrieval.
  */
-class TypeInfo : public BaseHandle
+class DALI_IMPORT_API TypeInfo : public BaseHandle
 {
 public:
   typedef BaseHandle (*CreateFunction)(); ///< Function signature for creating an instance of the associated object type.
index 7945328..e38db99 100644 (file)
@@ -26,7 +26,7 @@
 #include <dali/public-api/object/base-handle.h>
 #include <dali/public-api/object/type-info.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 namespace Internal DALI_INTERNAL
@@ -88,7 +88,7 @@ class TypeRegistry;
  *   separated ie 'next-page'. This maintains consistency with the scripted interface.
  *
  */
-class TypeRegistry : public BaseHandle
+class DALI_IMPORT_API TypeRegistry : public BaseHandle
 {
 public:
   typedef std::vector<std::string> NameContainer; ///< Container of type names
@@ -171,7 +171,7 @@ public: // Not intended for application developers
 /**
  * @brief Register a type from type info.
  */
-class TypeRegistration
+class DALI_IMPORT_API TypeRegistration
 {
 public:
   /**
@@ -222,7 +222,7 @@ private:
 /**
  * @brief Register a signal connector function to a registered type.
  */
-class SignalConnectorType
+class DALI_IMPORT_API SignalConnectorType
 {
 public:
   /**
@@ -238,7 +238,7 @@ public:
 /**
  * @brief Register an action function.
  */
-class TypeAction
+class DALI_IMPORT_API TypeAction
 {
 public:
   /**
@@ -254,7 +254,7 @@ public:
 /**
  * @brief Register a property for the given type.
  */
-class PropertyRegistration
+class DALI_IMPORT_API PropertyRegistration
 {
 public:
 
index ed11bf1..6e801b2 100644 (file)
@@ -26,7 +26,7 @@
 #include <dali/public-api/object/property-map.h>
 #include <dali/public-api/object/property-value.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 class Actor;
@@ -56,7 +56,7 @@ struct StringEnum
  * @param[in] enumString The enum string
  * @return true if the strings are equal as defined above
  */
-bool CompareEnums(const std::string& input, const std::string& enumString);
+DALI_IMPORT_API bool CompareEnums(const std::string& input, const std::string& enumString);
 
 /**
  * @brief Set the value if strings pass a permissive compare.
@@ -142,7 +142,7 @@ std::string GetEnumerationName( T value, const StringEnum< T >* table, unsigned
  * @param[in] value The input string
  * @return The corresponding color-mode.
  */
-ColorMode GetColorMode( const std::string& value );
+DALI_IMPORT_API ColorMode GetColorMode( const std::string& value );
 
 /**
  * @brief Takes a color mode and returns the appropriate string equivalent.
@@ -150,7 +150,7 @@ ColorMode GetColorMode( const std::string& value );
  * @param[in] value The color mode
  * @return The corresponding string.
  */
-std::string GetColorMode( ColorMode value );
+DALI_IMPORT_API std::string GetColorMode( ColorMode value );
 
 /**
  * @brief Takes a string and returns the appropriate position inheritance mode.
@@ -158,7 +158,7 @@ std::string GetColorMode( ColorMode value );
  * @param[in] value The input string
  * @return The corresponding position-inheritance-mode.
  */
-PositionInheritanceMode GetPositionInheritanceMode( const std::string& value );
+DALI_IMPORT_API PositionInheritanceMode GetPositionInheritanceMode( const std::string& value );
 
 /**
  * @brief Takes a position inheritance mode and returns the string equivalent.
@@ -166,7 +166,7 @@ PositionInheritanceMode GetPositionInheritanceMode( const std::string& value );
  * @param[in] value The position-inheritance-mode.
  * @return The corresponding string.
  */
-std::string GetPositionInheritanceMode( PositionInheritanceMode value );
+DALI_IMPORT_API std::string GetPositionInheritanceMode( PositionInheritanceMode value );
 
 /**
  * @brief Takes a string and returns the appropriate draw mode.
@@ -174,7 +174,7 @@ std::string GetPositionInheritanceMode( PositionInheritanceMode value );
  * @param[in] value The input string
  * @return The corresponding draw-mode.
  */
-DrawMode::Type GetDrawMode( const std::string& value );
+DALI_IMPORT_API DrawMode::Type GetDrawMode( const std::string& value );
 
 /**
  * @brief Takes a draw-mode and returns the string equivalent.
@@ -182,7 +182,7 @@ DrawMode::Type GetDrawMode( const std::string& value );
  * @param[in] value The draw-mode.
  * @return The corresponding string.
  */
-std::string GetDrawMode( DrawMode::Type value );
+DALI_IMPORT_API std::string GetDrawMode( DrawMode::Type value );
 
 /**
  * @brief Takes a string and returns the appropriate anchor-point or parent-origin constant.
@@ -190,7 +190,7 @@ std::string GetDrawMode( DrawMode::Type value );
  * @param[in] value The input string
  * @return The corresponding anchor-point or parent-origin constant.
  */
-Vector3 GetAnchorConstant( const std::string& value );
+DALI_IMPORT_API Vector3 GetAnchorConstant( const std::string& value );
 
 /**
  * @brief Creates object with data from the property value map.
@@ -210,7 +210,7 @@ Vector3 GetAnchorConstant( const std::string& value );
  *
  * @return a pointer to a newly created object.
  */
-Image NewImage( const Property::Value& map );
+DALI_IMPORT_API Image NewImage( const Property::Value& map );
 
 /**
  * @brief Creates object with data from the property value map.
@@ -243,7 +243,7 @@ Image NewImage( const Property::Value& map );
  *
  * @return a pointer to a newly created object.
  */
-ShaderEffect NewShaderEffect( const Property::Value& map );
+DALI_IMPORT_API ShaderEffect NewShaderEffect( const Property::Value& map );
 
 /**
  * @brief Creates an actor with the date from the property value map.
@@ -269,7 +269,7 @@ ShaderEffect NewShaderEffect( const Property::Value& map );
  *
  * @return Handle to the newly created actor.
  */
-Actor NewActor( const Property::Map& map );
+DALI_IMPORT_API Actor NewActor( const Property::Map& map );
 
 /**
  * @brief Creates a Property::Map from the actor provided.
@@ -277,7 +277,7 @@ Actor NewActor( const Property::Map& map );
  * @param[in] actor The base-actor from which a Property::Map should be created
  * @param[out] map This map is cleared and a property map of actor and its children is filled in
  */
-void CreatePropertyMap( Actor actor, Property::Map& map );
+DALI_IMPORT_API void CreatePropertyMap( Actor actor, Property::Map& map );
 
 /**
  * @brief Creates a Property::Map from the image provided.
@@ -285,7 +285,7 @@ void CreatePropertyMap( Actor actor, Property::Map& map );
  * @param[in] image The image from which a Property::Map should be created
  * @param[out] map This map is cleared and a property map of the image is filled in
  */
-void CreatePropertyMap( Image image, Property::Map& map );
+DALI_IMPORT_API void CreatePropertyMap( Image image, Property::Map& map );
 
 }