#ifndef id134A9223C9F7403B9BC600DCAC4875BC #define id134A9223C9F7403B9BC600DCAC4875BC #include "doorkeeper/implem/configuration.h" #include "vectorwrapper/vectorwrapper.hpp" #include #include #include #if defined(WITH_VECTOR_IOSTREAM) # include #endif namespace vwr { template struct VectorWrapperInfo> { enum { dimensions = D }; typedef dk::CoordinateScalarType scalar_type; typedef std::array vector_type; typedef std::array higher_vector_type; typedef std::array lower_vector_type; static scalar_type& get_at (std::size_t parIndex, vector_type& parVector) { return parVector[parIndex]; } }; template <> struct VectorWrapperInfo> { enum { dimensions = 1 }; typedef dk::CoordinateScalarType scalar_type; typedef std::array vector_type; typedef std::array higher_vector_type; static scalar_type& get_at (std::size_t, vector_type& parVector) { return parVector[0]; } }; #if defined(WITH_VECTOR_IOSTREAM) template std::ostream& operator<< (std::ostream& parStream, const vwr::Vec& parVec) { const int dim = vwr::Vec::dimensions; parStream << '<'; for (int z = 0; z < dim - 1; ++z) { parStream << parVec[z] << ", "; } parStream << parVec[dim - 1] << '>'; return parStream; } #endif } //namespace vwr #endif