Only include forward declaring iostream header in public API
[platform/core/uifw/dali-core.git] / dali / public-api / math / rect.h
index e51fd88..27a438c 100644 (file)
@@ -291,37 +291,12 @@ inline bool Rect<float>::IsEmpty() const
  * @param [in] rectangle the rectangle to output
  * @return The output stream operator.
  */
-inline std::ostream& operator<< (std::ostream& stream, const Rect<int>& rectangle)
-{
-  return stream << "[" << rectangle.x << ", " << rectangle.y << ", " << rectangle.width << ", " << rectangle.height << "]";
-}
-
-/**
- * @brief Convert the value of the rectangle into a string and insert in to an output stream.
- *
- * @param [in] stream The output stream operator.
- * @param [in] rectangle the rectangle to output
- * @return The output stream operator.
- */
-inline std::ostream& operator<< (std::ostream& stream, const Rect<unsigned int>& rectangle)
-{
-  return stream << "[" << rectangle.x << ", " << rectangle.y << ", " << rectangle.width << ", " << rectangle.height << "]";
-}
-
-/**
- * @brief Convert the value of the rectangle into a string and insert in to an output stream.
- *
- * @param [in] stream The output stream operator.
- * @param [in] rectangle the rectangle to output
- * @return The output stream operator.
- */
-inline std::ostream& operator<< (std::ostream& stream, const Rect<float>& rectangle)
+template< typename T >
+inline std::ostream& operator<< (std::ostream& stream, const Rect<T>& rectangle)
 {
   return stream << "[" << rectangle.x << ", " << rectangle.y << ", " << rectangle.width << ", " << rectangle.height << "]";
 }
 
-
-
 } // namespace Dali
 
 #endif // __DALI_RECT_H__