Tizen 2.4.0 rev3 SDK Public Release
[framework/graphics/dali.git] / dali / public-api / common / type-traits.h
index 6342b3a..14f944b 100644 (file)
@@ -26,30 +26,39 @@ namespace Dali
  */
 
 /**
- * @brief Basic type traits that every type has by default
- * This allows specialisations to not have to repeat all flags
+ * @brief Basic type traits that every type has by default.
+ *
+ * This allows specializations to not have to repeat all flags
  * @since_tizen 2.4
  */
 template <typename Type>
 struct BasicTypes
 {
   /**
-   * This flag tells Dali if a class can be considered POD. If it declares copy constructor and/or destructor, its not considered trivial
+   * @brief This flag tells Dali if a class can be considered POD.
+   *
+   * If it declares copy constructor and/or destructor, its not considered trivial
    * and cannot be copied by using memcpy etc.
+   * @since_tizen 2.4
    */
   enum { IS_TRIVIAL_TYPE = __has_trivial_destructor(Type) && __has_trivial_copy(Type) };
 };
 
 /**
- * @brief Type traits support
+ * @brief Type traits.
+ *
  * An example of overriding a traits flag for a custom type can be done by:
- * <code>
+ *
+ * @code
+ *
  * namespace Dali
  * {
- *   /// Tell DALi that Matrix is POD, even though it has a copy constructor
- *   template <> struct TypeTraits< Matrix > : public BasicTypes< Matrix > { enum { IS_TRIVIAL_TYPE = true }; };
+ *   /// Tell DALi that Dali::Matrix is POD, even though it has a copy constructor
+ *   template <> struct TypeTraits< Dali::Matrix > : public BasicTypes< Dali::Matrix > { enum { IS_TRIVIAL_TYPE = true }; };
  * }
- * </code>
+ *
+ * @endcode
+ *
  * @since_tizen 2.4
  */
 template <typename Type>