diff --git a/Device/Data/LLData.h b/Device/Data/LLData.h index 34b39a1e30fb4c3002417a2a7afb916ea130646d..8b5838db822de1103431a8bae27a8f2209447c7f 100644 --- a/Device/Data/LLData.h +++ b/Device/Data/LLData.h @@ -12,19 +12,18 @@ // // ************************************************************************************************ -#ifdef SWIG -#error no need to expose this header to Swig -#endif - #ifndef USER_API #ifndef BORNAGAIN_DEVICE_DATA_LLDATA_H #define BORNAGAIN_DEVICE_DATA_LLDATA_H -#include "Base/Vector/EigenCore.h" #include <algorithm> #include <limits> #include <numeric> +#ifndef SWIG +#include "Base/Vector/EigenCore.h" +#endif + //! Template class to store data of any type in multi-dimensional space (low-level). template <class T> @@ -75,6 +74,8 @@ template <> Eigen::Matrix2d LLData<Eigen::Matrix2d>::getZeroElement() const; #endif +#ifndef SWIG + // Global helper functions for arithmetic template <class T> LLData<T> operator+(const LLData<T>& left, const LLData<T>& right); @@ -314,5 +315,7 @@ bool HaveSameDimensions(const LLData<T>& left, const LLData<T>& right) return true; } +#endif // SWIG + #endif // BORNAGAIN_DEVICE_DATA_LLDATA_H #endif // USER_API