Add tooltips to user config preferences. clean up combo ordering.
[ardour.git] / libs / audiographer / audiographer / type_utils.h
index 360168d55df417b3bb91a6e71271408404de8d85..4e12937165ed44064214668d85b0ee641a401210 100644 (file)
@@ -1,20 +1,23 @@
 #ifndef AUDIOGRAPHER_TYPE_UTILS_H
 #define AUDIOGRAPHER_TYPE_UTILS_H
 
-#include "audiographer/types.h"
 #include <boost/static_assert.hpp>
 #include <boost/type_traits.hpp>
 #include <memory>
 #include <algorithm>
+#include <cstring>
+
+#include "audiographer/visibility.h"
+#include "audiographer/types.h"
 
 namespace AudioGrapher
 {
 
 /// Non-template base class for TypeUtils
-class TypeUtilsBase
+class LIBAUDIOGRAPHER_API TypeUtilsBase
 {
   protected:
-       
+
        template<typename T, bool b>
        static void do_zero_fill(T * buffer, framecnt_t frames, const boost::integral_constant<bool, b>&)
                { std::uninitialized_fill_n (buffer, frames, T()); }
@@ -26,11 +29,11 @@ class TypeUtilsBase
 
 /// Utilities for initializing, copying, moving, etc. data
 template<typename T = DefaultSampleType>
-class TypeUtils : private TypeUtilsBase
+class /*LIBAUDIOGRAPHER_API*/ TypeUtils : private TypeUtilsBase
 {
        BOOST_STATIC_ASSERT (boost::has_trivial_destructor<T>::value);
-       
-       typedef boost::integral_constant<bool, 
+
+       typedef boost::integral_constant<bool,
                        boost::is_floating_point<T>::value ||
                        boost::is_signed<T>::value> zero_fillable;
   public:
@@ -41,14 +44,14 @@ class TypeUtils : private TypeUtilsBase
          */
        inline static void zero_fill (T * buffer, framecnt_t frames)
                { do_zero_fill(buffer, frames, zero_fillable()); }
-       
+
        /** Copies \a frames frames of data from \a source to \a destination
          * The source and destination may NOT overlap.
          * \n RT safe
          */
        inline static void copy (T const * source, T * destination, framecnt_t frames)
                { std::uninitialized_copy (source, &source[frames], destination); }
-       
+
        /** Moves \a frames frames of data from \a source to \a destination
          * The source and destination may overlap in any way.
          * \n RT safe