Index: branches/2015Q3/devel/mdds/Makefile =================================================================== --- branches/2015Q3/devel/mdds/Makefile (revision 393928) +++ branches/2015Q3/devel/mdds/Makefile (revision 393929) @@ -1,30 +1,31 @@ # $FreeBSD$ PORTNAME= mdds PORTVERSION= 0.12.0 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://kohei.us/files/mdds/src/ DISTNAME= ${PORTNAME}_${PORTVERSION} MAINTAINER= office@FreeBSD.org COMMENT= Multi-dimensional data index algorithm LICENSE= MIT PROJECTHOST= multidimalgorithm USES= tar:bzip2 NO_BUILD= yes do-configure: @${SED} -e 's|@prefix@|${PREFIX}|' \ -e 's|@includedir@|$${prefix}/include|' \ -e 's|@VERSION@|${PORTVERSION}|' \ ${WRKSRC}/misc/mdds.pc.in > ${WRKSRC}/misc/mdds.pc do-install: cd ${WRKSRC} && ${COPYTREE_SHARE} include ${STAGEDIR}${PREFIX} ${INSTALL_DATA} ${WRKSRC}/misc/mdds.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig .include Index: branches/2015Q3/devel/mdds/files/patch-include_mdds_flat__segment__tree.hpp =================================================================== --- branches/2015Q3/devel/mdds/files/patch-include_mdds_flat__segment__tree.hpp (nonexistent) +++ branches/2015Q3/devel/mdds/files/patch-include_mdds_flat__segment__tree.hpp (revision 393929) @@ -0,0 +1,10 @@ +--- include/mdds/flat_segment_tree.hpp.orig 2015-06-11 23:53:55 UTC ++++ include/mdds/flat_segment_tree.hpp +@@ -32,7 +32,6 @@ + #include + #include + #include +-#include + + #include "mdds/node.hpp" + #include "mdds/flat_segment_tree_itr.hpp" Property changes on: branches/2015Q3/devel/mdds/files/patch-include_mdds_flat__segment__tree.hpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: branches/2015Q3/devel/mdds/files/patch-include_mdds_flat__segment__tree__def.inl =================================================================== --- branches/2015Q3/devel/mdds/files/patch-include_mdds_flat__segment__tree__def.inl (nonexistent) +++ branches/2015Q3/devel/mdds/files/patch-include_mdds_flat__segment__tree__def.inl (revision 393929) @@ -0,0 +1,11 @@ +--- include/mdds/flat_segment_tree_def.inl.orig 2015-06-11 23:53:55 UTC ++++ include/mdds/flat_segment_tree_def.inl +@@ -46,7 +46,7 @@ flat_segment_tree<_Key, _Value>::flat_se + // We don't ever use the value of the right leaf node, but we need the + // value to be always the same, to make it easier to check for + // equality. +- m_right_leaf->value_leaf.value = ::std::numeric_limits::max(); ++ m_right_leaf->value_leaf.value = init_val; + } + + template Property changes on: branches/2015Q3/devel/mdds/files/patch-include_mdds_flat__segment__tree__def.inl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: branches/2015Q3/devel/mdds/files/patch-include_mdds_mixed__type__matrix__def.inl =================================================================== --- branches/2015Q3/devel/mdds/files/patch-include_mdds_mixed__type__matrix__def.inl (nonexistent) +++ branches/2015Q3/devel/mdds/files/patch-include_mdds_mixed__type__matrix__def.inl (revision 393929) @@ -0,0 +1,13 @@ +--- include/mdds/mixed_type_matrix_def.inl.orig 2015-06-11 23:53:55 UTC ++++ include/mdds/mixed_type_matrix_def.inl +@@ -220,8 +220,8 @@ void mixed_type_matrix<_String,_Flag>::a + // assignment to self. + return; + +- size_t row_count = ::std::min(mp_storage->rows(), r.mp_storage->rows()); +- size_t col_count = ::std::min(mp_storage->cols(), r.mp_storage->cols()); ++ size_t row_count = (::std::min)(mp_storage->rows(), r.mp_storage->rows()); ++ size_t col_count = (::std::min)(mp_storage->cols(), r.mp_storage->cols()); + for (size_t i = 0; i < row_count; ++i) + for (size_t j = 0; j < col_count; ++j) + mp_storage->get_element(i, j) = r.mp_storage->get_element(i, j); Property changes on: branches/2015Q3/devel/mdds/files/patch-include_mdds_mixed__type__matrix__def.inl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: branches/2015Q3/devel/mdds/files/patch-include_mdds_mixed__type__matrix__storage__filled__linear.inl =================================================================== --- branches/2015Q3/devel/mdds/files/patch-include_mdds_mixed__type__matrix__storage__filled__linear.inl (nonexistent) +++ branches/2015Q3/devel/mdds/files/patch-include_mdds_mixed__type__matrix__storage__filled__linear.inl (revision 393929) @@ -0,0 +1,24 @@ +--- include/mdds/mixed_type_matrix_storage_filled_linear.inl.orig 2015-06-11 23:53:55 UTC ++++ include/mdds/mixed_type_matrix_storage_filled_linear.inl +@@ -354,8 +354,8 @@ public: + } + + array_type new_array(new_size, &m_init_elem); +- size_t min_rows = ::std::min(row, m_rows); +- size_t min_cols = ::std::min(col, m_cols); ++ size_t min_rows = (::std::min)(row, m_rows); ++ size_t min_cols = (::std::min)(col, m_cols); + for (size_t i = 0; i < min_rows; ++i) + { + for (size_t j = 0; j < min_cols; ++j) +@@ -614,8 +614,8 @@ public: + } + + array_type new_array(new_size, element(0.0)); +- size_t min_rows = ::std::min(row, m_rows); +- size_t min_cols = ::std::min(col, m_cols); ++ size_t min_rows = (::std::min)(row, m_rows); ++ size_t min_cols = (::std::min)(col, m_cols); + for (size_t i = 0; i < min_rows; ++i) + { + for (size_t j = 0; j < min_cols; ++j) Property changes on: branches/2015Q3/devel/mdds/files/patch-include_mdds_mixed__type__matrix__storage__filled__linear.inl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: branches/2015Q3/devel/mdds/files/patch-include_mdds_multi__type__vector__itr.hpp =================================================================== --- branches/2015Q3/devel/mdds/files/patch-include_mdds_multi__type__vector__itr.hpp (nonexistent) +++ branches/2015Q3/devel/mdds/files/patch-include_mdds_multi__type__vector__itr.hpp (revision 393929) @@ -0,0 +1,83 @@ +--- include/mdds/multi_type_vector_itr.hpp.orig 2015-06-11 23:53:55 UTC ++++ include/mdds/multi_type_vector_itr.hpp +@@ -139,14 +139,15 @@ protected: + typedef typename parent_type::size_type size_type; + typedef iterator_value_node node; + +- iterator_common_base() : m_cur_node(0, 0) {} ++ iterator_common_base() : m_cur_node(0, 0), m_singular(true) {} + + iterator_common_base( + const base_iterator_type& pos, const base_iterator_type& end, + size_type start_pos, size_type block_index) : + m_cur_node(start_pos, block_index), + m_pos(pos), +- m_end(end) ++ m_end(end), ++ m_singular(false) + { + if (m_pos != m_end) + update_node(); +@@ -154,9 +155,13 @@ protected: + + iterator_common_base(const iterator_common_base& other) : + m_cur_node(other.m_cur_node), +- m_pos(other.m_pos), +- m_end(other.m_end) ++ m_singular(other.m_singular) + { ++ if (!m_singular) ++ { ++ m_pos = other.m_pos; ++ m_end = other.m_end; ++ } + } + + void update_node() +@@ -196,6 +201,7 @@ protected: + node m_cur_node; + base_iterator_type m_pos; + base_iterator_type m_end; ++ bool m_singular; + + public: + bool operator== (const iterator_common_base& other) const +@@ -218,16 +224,34 @@ public: + iterator_common_base& operator= (const iterator_common_base& other) + { + m_cur_node = other.m_cur_node; +- m_pos = other.m_pos; +- m_end = other.m_end; ++ m_singular = other.m_singular; ++ if (!m_singular) ++ { ++ m_pos = other.m_pos; ++ m_end = other.m_end; ++ } + return *this; + } + + void swap(iterator_common_base& other) + { + m_cur_node.swap(other.m_cur_node); +- std::swap(m_pos, other.m_pos); +- std::swap(m_end, other.m_end); ++ std::swap(m_singular, other.m_singular); ++ if (!(m_singular || other.m_singular)) ++ { ++ std::swap(m_pos, other.m_pos); ++ std::swap(m_end, other.m_end); ++ } ++ else if (!m_singular) ++ { ++ m_pos = other.m_pos; ++ m_end = other.m_end; ++ } ++ else if (!other.m_singular) ++ { ++ other.m_pos = m_pos; ++ other.m_end = m_end; ++ } + } + + const node& get_node() const { return m_cur_node; } Property changes on: branches/2015Q3/devel/mdds/files/patch-include_mdds_multi__type__vector__itr.hpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: branches/2015Q3/devel/mdds/files/patch-include_mdds_point__quad__tree.hpp =================================================================== --- branches/2015Q3/devel/mdds/files/patch-include_mdds_point__quad__tree.hpp (nonexistent) +++ branches/2015Q3/devel/mdds/files/patch-include_mdds_point__quad__tree.hpp (revision 393929) @@ -0,0 +1,17 @@ +--- include/mdds/point_quad_tree.hpp.orig 2015-06-11 23:53:55 UTC ++++ include/mdds/point_quad_tree.hpp +@@ -635,10 +635,10 @@ point_quad_tree<_Key,_Data>::~point_quad + template + void point_quad_tree<_Key,_Data>::insert(key_type x, key_type y, data_type data) + { +- m_xrange.first = ::std::min(m_xrange.first, x); +- m_xrange.second = ::std::max(m_xrange.second, x); +- m_yrange.first = ::std::min(m_yrange.first, y); +- m_yrange.second = ::std::max(m_yrange.second, y); ++ m_xrange.first = (::std::min)(m_xrange.first, x); ++ m_xrange.second = (::std::max)(m_xrange.second, x); ++ m_yrange.first = (::std::min)(m_yrange.first, y); ++ m_yrange.second = (::std::max)(m_yrange.second, y); + + if (!m_root) + { Property changes on: branches/2015Q3/devel/mdds/files/patch-include_mdds_point__quad__tree.hpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: branches/2015Q3/devel/mdds/pkg-descr =================================================================== --- branches/2015Q3/devel/mdds/pkg-descr (revision 393928) +++ branches/2015Q3/devel/mdds/pkg-descr (revision 393929) @@ -1,4 +1,4 @@ Multi-Dimensional Data Structure (mdds) is a collection of multi-dimensional data structure and indexing algorithm. -WWW: http://code.google.com/p/multidimalgorithm/ +WWW: https://gitlab.com/mdds/mdds Index: branches/2015Q3 =================================================================== --- branches/2015Q3 (revision 393928) +++ branches/2015Q3 (revision 393929) Property changes on: branches/2015Q3 ___________________________________________________________________ Modified: svn:mergeinfo ## -0,0 +0,1 ## Merged /head:r393925