From d67c3f36ff9c69d13645ef77b8a65fd6e28cc936 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Mon, 17 Mar 2014 15:28:42 +0100 Subject: [PATCH] call function object instead of static function --- DataStructures/StaticRTree.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DataStructures/StaticRTree.h b/DataStructures/StaticRTree.h index 9cd4b10c3..059a9b0ef 100644 --- a/DataStructures/StaticRTree.h +++ b/DataStructures/StaticRTree.h @@ -308,6 +308,8 @@ public: double time1 = get_timestamp(); std::vector input_wrapper_vector(m_element_count); + HilbertCode get_hilbert_number; + //generate auxiliary vector of hilbert-values #pragma omp parallel for schedule(guided) for(uint64_t element_counter = 0; element_counter < m_element_count; ++element_counter) { @@ -317,7 +319,7 @@ public: FixedPointCoordinate current_centroid = current_element.Centroid(); current_centroid.lat = COORDINATE_PRECISION*lat2y(current_centroid.lat/COORDINATE_PRECISION); - uint64_t current_hilbert_value = HilbertCode::GetHilbertNumberForCoordinate(current_centroid); + uint64_t current_hilbert_value = get_hilbert_number(current_centroid); input_wrapper_vector[element_counter].m_hilbert_value = current_hilbert_value; }