Overpass API regression suite coverage (Nova Scotia) / overpass_api/data/tilewise_geometry.h
overpass_api/data/tilewise_geometry.h
582 of 785 instrumented lines run by the suite (74.1%) at 8edf11b0419c (this file on GitHub).
runnever runcolumns: line, executions, queries (click for the queries that run the line)
1/** Copyright 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Roland Olbricht et al.2 *3 * This file is part of Overpass_API.4 *5 * Overpass_API is free software: you can redistribute it and/or modify6 * it under the terms of the GNU Affero General Public License as7 * published by the Free Software Foundation, either version 3 of the8 * License, or (at your option) any later version.9 *10 * Overpass_API is distributed in the hope that it will be useful,11 * but WITHOUT ANY WARRANTY; without even the implied warranty of12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13 * GNU General Public License for more details.14 *15 * You should have received a copy of the GNU Affero General Public License16 * along with Overpass_API. If not, see <http://www.gnu.org/licenses/>.17 */19#ifndef DE__OSM3S___OVERPASS_API__DATA__TILEWISE_GEOMETRY_H20#define DE__OSM3S___OVERPASS_API__DATA__TILEWISE_GEOMETRY_H22#include <cctype>23#include <cmath>24#include <fstream>25#include <iostream>26#include <map>27#include <set>28#include <sstream>29#include <string>30#include <math.h>31#include <stdlib.h>32#include <vector>34#include "way_geometry_store.h"37inline Point_Double make_point_double(Quad_Coord arg)43inline void add_idx_sequence(uint32 lat_lhs, uint32 lat_rhs, int32 lon, std::vector< Uint31_Index >& result)52inline std::vector< Uint31_Index > touched_indexes(Quad_Coord lhs, Quad_Coord rhs)580660 uint32 lat_boundary = ((double)lat_rhs - lat_lhs)*(lon_boundary - lon_lhs)/(lon_rhs - lon_lhs) + lat_lhs;117inline Uint31_Index touched_index(Quad_Coord lhs, Quad_Coord rhs)1299241859 q if ((lat_rhs - lat_lhs <= 1 || lat_lhs - lat_rhs <= 1) && std::abs(lon_rhs - lon_lhs) <= 1)1364564459 q uint32 lat_boundary = ((double)lat_rhs - lat_lhs)*(lon_boundary - lon_lhs)/(lon_rhs - lon_lhs) + lat_lhs;149struct Segment150{151 Segment(uint32 lat_lhs, int32 lon_lhs, uint32 lat_rhs, int32 lon_rhs)156 Segment(const Quad_Coord& lhs, const Quad_Coord& rhs)163 void populate(uint32 ilat_lhs, int32 ilon_lhs, uint32 ilat_rhs, int32 ilon_rhs)181 uint32 ilat_west;182 int32 ilon_west;183 uint32 ilat_east;184 int32 ilon_east;185};188template< typename Segment_Collector >189void make_entries(const Segment_Collector& collector, const std::vector< Quad_Coord >& geom)201// std::cout<<std::dec<<ilat(geom[i-1].ll_upper, geom[i-1].ll_lower)<<' '<<ilon(geom[i-1].ll_upper, geom[i-1].ll_lower)<<' '202// <<ilat(geom[i].ll_upper, geom[i].ll_lower)<<' '<<ilon(geom[i].ll_upper, geom[i].ll_lower)<<' '203// <<std::hex<<extra_idx.val()<<'\n';218template< typename Segment_Collector >219void calculate_auxiliary_points(const Segment_Collector& collector, Quad_Coord lhs, Quad_Coord rhs)237// std::cout<<"aux_gc "<<ilat(min.ll_upper, min.ll_lower)<<' '<<ilon(min.ll_upper, min.ll_lower)238// <<' '<<ilat(max.ll_upper, max.ll_lower)<<' '<<ilon(max.ll_upper, max.ll_lower)<<'\n';257// std::cout<<"aux_180 "<<ilat(min.ll_upper, min.ll_lower)<<' '<<ilon(min.ll_upper, min.ll_lower)258// <<' '<<ilat(max.ll_upper, max.ll_lower)<<' '<<ilon(max.ll_upper, max.ll_lower)<<'\n';274// std::cout<<"aux_anti "<<ilat(min.ll_upper, min.ll_lower)<<' '<<ilon(min.ll_upper, min.ll_lower)275// <<' '<<ilat(max.ll_upper, max.ll_lower)<<' '<<ilon(max.ll_upper, max.ll_lower)<<'\n';3050 collector.push(Uint31_Index(ll_upper_(anti_lat, 1800000000)), Segment(anti_lat, 1800000000, anti_lat, 1800000001));3260 collector.push(Uint31_Index(ll_upper_(anti_lat, 1800000000)), Segment(anti_lat, 1800000000, anti_lat, 1800000001));333template< typename Segment_Collector >334void calculate_south_north_sequence(335 const Segment_Collector& collector, uint32 lat_lhs, int32 lon_lhs, uint32 lat_rhs, int32 lon_rhs)337// std::cout<<"sn "<<lat_lhs<<' '<<lon_lhs<<' '<<lat_rhs<<' '<<lon_rhs<<'\n';34016987957 q collector.push(Uint31_Index(ll_upper_(lat_lhs, lon_lhs)), Segment(lat_lhs, lon_lhs, lat_rhs, lon_rhs));3527682056 q int32 i_lon = lon_lhs + ((double)i_lat - lat_lhs)/((int32)lat_rhs - (int32)lat_lhs)*(lon_rhs - lon_lhs);353// std::cout<<"DEBUG_B "<<std::hex<<ll_upper_(lat_lhs, min_lon)<<' '354// <<std::dec<<lat_lhs<<' '<<lon_lhs<<' '<<i_lat<<' '<<i_lon<<'\n';3557682056 q collector.push(Uint31_Index(ll_upper_(lat_lhs, min_lon)), Segment(lat_lhs, lon_lhs, i_lat, i_lon));3623553156 q i_lon = lon_lhs + ((double)i_lat - lat_lhs)/((int32)lat_rhs - (int32)lat_lhs)*(lon_rhs - lon_lhs);363// std::cout<<"DEBUG_D "<<std::hex<<ll_upper_(last_ilat, min_lon)<<' '364// <<std::dec<<last_ilat<<' '<<last_ilon<<' '<<i_lat<<' '<<i_lon<<'\n';3653553156 q collector.push(Uint31_Index(ll_upper_(last_ilat, min_lon)), Segment(last_ilat, last_ilon, i_lat, i_lon));368// std::cout<<"DEBUG_C "<<std::hex<<ll_upper_(i_lat, min_lon)<<' '369// <<std::dec<<i_lat<<' '<<i_lon<<' '<<lat_rhs<<' '<<lon_rhs<<'\n';3707682056 q collector.push(Uint31_Index(ll_upper_(i_lat, min_lon)), Segment(i_lat, i_lon, lat_rhs, lon_rhs));374// fwd iterator only375class Tilewise_Area_Iterator376{377public:378 enum Relative_Position { outside, inside, border };380 struct Index_Block381 {384 std::vector< Segment > segments;385 bool sw_is_inside;386 };388 struct Full_Way_Ref389 {390 Full_Way_Ref(Uint31_Index idx_, Way_Skeleton* way_, uint64 timestamp_)393 Uint31_Index idx;394 Way_Skeleton* way;395 uint64 timestamp;397 bool operator<(const Full_Way_Ref& rhs) const402 };404 // non-const, but relies to pointers into each vec.405 // That way, objects can be moved from or marked as done.406 Tilewise_Area_Iterator(407 std::map< Uint31_Index, std::vector< Way_Skeleton > >& ways_,408 std::map< Uint31_Index, std::vector< Attic< Way_Skeleton > > >& attic_ways_,409 const Statement& stmt, Resource_Manager& rman)4104139 q : ways(&ways_), attic_ways(&attic_ways_), cur_it(ways->begin()), attic_it(attic_ways->begin()),417 void next()42628910035 q const std::map< Full_Way_Ref, Index_Block >& get_obj() const { return queue.begin()->second; }429 Relative_Position rel_position(uint32 ll_upper, uint32 ll_lower, bool accept_border)434 void move_covering_ways(435 uint32 ll_upper, uint32 ll_lower,436 std::map< Uint31_Index, std::vector< Way_Skeleton > >& target_ways,437 std::map< Uint31_Index, std::vector< Attic< Way_Skeleton > > >& target_attic_ways);438 void set_limits(uint32 minlat_, uint32 maxlat_)444 Relative_Position rel_position(const std::vector< Segment >& segments, bool accept_border);446private:447 std::map< Uint31_Index, std::vector< Way_Skeleton > >* ways;448 std::map< Uint31_Index, std::vector< Attic< Way_Skeleton > > >* attic_ways;449 std::map< Uint31_Index, std::vector< Way_Skeleton > >::iterator cur_it;450 std::map< Uint31_Index, std::vector< Attic< Way_Skeleton > > >::iterator attic_it;451 Way_Geometry_Store cur_geom_store;452 Way_Geometry_Store attic_geom_store;453 std::map< Uint31_Index, std::map< Full_Way_Ref, Index_Block > > queue;454 Uint31_Index complete_idx;455 uint32 minlat;456 uint32 maxlat;458 struct Segment_Collector459 {460 Segment_Collector(461 std::map< Uint31_Index, std::map< Full_Way_Ref, Index_Block > >& queue_, Full_Way_Ref skel_)463 void push(Uint31_Index idx, const Segment& segment) const466 private:467 std::map< Uint31_Index, std::map< Full_Way_Ref, Index_Block > >* queue;468 Full_Way_Ref skel;469 };471 void refill()475657136 q Uint31_Index idx = (cur_it != ways->end() && (attic_it == attic_ways->end() || cur_it->first < attic_it->first)4794374936 q for (std::vector< Way_Skeleton >::iterator it = cur_it->second.begin(); it != cur_it->second.end(); ++it)4823717835 q make_entries(Segment_Collector(queue, Full_Way_Ref(idx, &*it, NOW)), cur_geom_store.get_geometry(*it));4928789 q make_entries(Segment_Collector(queue, Full_Way_Ref(idx, &*it, it->timestamp)), attic_geom_store.get_geometry(*it));498657136 q if (!queue.empty() && is_compound_idx(idx) && (queue.begin()->first.val() & 0x7fffffff) < complete_idx.val())502// std::cout<<"DEBUG refill ";503// for (std::map< Uint31_Index, std::map< Full_Way_Ref, Index_Block > >::const_iterator it = queue.begin(); it != queue.end(); ++it)504// std::cout<<' '<<std::hex<<it->first.val()<<'\n';505// std::cout<<'\n';508 void propagate_inside_flag();509 Relative_Position rel_pos_ilat_ilon(uint32 lat_p, int32 lon_p, bool accept_border);510};513// fwd iterator only514class Tilewise_Const_Area_Iterator515{516public:517 struct Full_Way_Ref518 {519 Full_Way_Ref(Uint31_Index idx_, const Way_Skeleton* way_, uint64 timestamp_)522 Uint31_Index idx;523 const Way_Skeleton* way;524 uint64 timestamp;526 bool operator<(const Full_Way_Ref& rhs) const531 };533 // non-const, but relies to pointers into each vec.534 // That way, objects can be moved from or marked as done.535 Tilewise_Const_Area_Iterator(536 const std::map< Uint31_Index, std::vector< Way_Skeleton > >& ways_,537 const std::map< Uint31_Index, std::vector< Attic< Way_Skeleton > > >& attic_ways_,538 const Statement& stmt, Resource_Manager& rman)53922245 q : ways(&ways_), attic_ways(&attic_ways_), cur_it(ways->begin()), attic_it(attic_ways->begin()),546 void next()55514314424 q const std::map< Full_Way_Ref, Tilewise_Area_Iterator::Index_Block >& get_obj() const { return queue.begin()->second; }558 Tilewise_Area_Iterator::Relative_Position rel_position(uint32 ll_upper, uint32 ll_lower, bool accept_border)560318246 q return rel_pos_ilat_ilon(ilat(ll_upper, ll_lower), ilon(ll_upper, ll_lower), accept_border);563 void move_covering_ways(564 uint32 ll_upper, uint32 ll_lower,565 std::map< Uint31_Index, std::vector< Way_Skeleton > >& target_ways,566 std::map< Uint31_Index, std::vector< Attic< Way_Skeleton > > >& target_attic_ways);568 Tilewise_Area_Iterator::Relative_Position rel_position(const std::vector< Segment >& segments, bool accept_border);570private:571 const std::map< Uint31_Index, std::vector< Way_Skeleton > >* ways;572 const std::map< Uint31_Index, std::vector< Attic< Way_Skeleton > > >* attic_ways;573 std::map< Uint31_Index, std::vector< Way_Skeleton > >::const_iterator cur_it;574 std::map< Uint31_Index, std::vector< Attic< Way_Skeleton > > >::const_iterator attic_it;575 Way_Geometry_Store cur_geom_store;576 Way_Geometry_Store attic_geom_store;577 std::map< Uint31_Index, std::map< Full_Way_Ref, Tilewise_Area_Iterator::Index_Block > > queue;578 Uint31_Index complete_idx;580 struct Segment_Collector581 {582 Segment_Collector(583 std::map< Uint31_Index, std::map< Full_Way_Ref, Tilewise_Area_Iterator::Index_Block > >& queue_,584 Full_Way_Ref skel_)586 void push(Uint31_Index idx, const Segment& segment) const589 private:590 std::map< Uint31_Index, std::map< Full_Way_Ref, Tilewise_Area_Iterator::Index_Block > >* queue;591 Full_Way_Ref skel;592 };594 void refill()59844329 q Uint31_Index idx = (cur_it != ways->end() && (attic_it == attic_ways->end() || cur_it->first < attic_it->first)60269221 q for (std::vector< Way_Skeleton >::const_iterator it = cur_it->second.begin(); it != cur_it->second.end(); ++it)60535021 q make_entries(Segment_Collector(queue, Full_Way_Ref(idx, &*it, NOW)), cur_geom_store.get_geometry(*it));61510710 q make_entries(Segment_Collector(queue, Full_Way_Ref(idx, &*it, it->timestamp)), attic_geom_store.get_geometry(*it));62144329 q if (!queue.empty() && is_compound_idx(idx) && (queue.begin()->first.val() & 0x7fffffff) < complete_idx.val())626 void propagate_inside_flag();627 Tilewise_Area_Iterator::Relative_Position rel_pos_ilat_ilon(uint32 lat_p, int32 lon_p, bool accept_border);628};631inline bool eastern_sw_is_inside(const Tilewise_Area_Iterator::Index_Block& block, uint32 south, int32 west)635138815249 q for (std::vector< Segment >::const_iterator it = block.segments.begin(); it != block.segments.end(); ++it)651inline bool northern_sw_is_inside(const Tilewise_Area_Iterator::Index_Block& block)6550 for (std::vector< Segment >::const_iterator it = block.segments.begin(); it != block.segments.end(); ++it)665inline Tilewise_Area_Iterator::Relative_Position rel_pos_ilat_ilon(666 uint32 lat_p, int32 lon_p, const Tilewise_Area_Iterator::Index_Block& block, uint32 south, int32 west)670451430446 q for (std::vector< Segment >::const_iterator it = block.segments.begin(); it != block.segments.end(); ++it)674 // northern segment not touching the southern boundary6811928 q if (std::min(it->ilat_west, it->ilat_east) <= lat_p && lat_p <= std::max(it->ilat_west, it->ilat_east))767 // northern segment similar to above772 // Here it->ilon_west == lon_p implies south < it->ilat_west796 // segment on the southern boundary806// std::cout<<"DEBUG "<<lat_p<<' '<<lon_p<<' '<<it->ilat_west<<' '<<it->ilon_west<<' '<<it->ilat_east<<' '<<it->ilon_east<<' '<<is_inside<<'\n';813inline Tilewise_Area_Iterator::Relative_Position rel_position(814 Uint31_Index idx, const Segment& segment, const Tilewise_Area_Iterator::Index_Block& block)81852844115 q for (std::vector< Segment >::const_iterator ait = block.segments.begin(); ait != block.segments.end(); ++ait)822 // Compute the scalar products of both endpoints of one segment with the other segment's direction823 // If they have different signs then we know that the intersection of both lines is within the segment8243042614 q double scal_ait_west = ((double)ait->ilat_west - segment.ilat_west)*(segment.ilon_east - segment.ilon_west)8253042614 q - (ait->ilon_west - segment.ilon_west)*((double)segment.ilat_east - segment.ilat_west);8263042614 q double scal_ait_east = ((double)ait->ilat_east - segment.ilat_west)*(segment.ilon_east - segment.ilon_west)8273042614 q - (ait->ilon_east - segment.ilon_west)*((double)segment.ilat_east - segment.ilat_west);831422614 q double scal_it_west = ((double)segment.ilat_west - ait->ilat_west)*(ait->ilon_east - ait->ilon_west)833422614 q double scal_it_east = ((double)segment.ilat_east - ait->ilat_west)*(ait->ilon_east - ait->ilon_west)838// std::cout<<"DEBUG "<<bit->first->id.val()839// <<" "<<segment.ilat_west<<' '<<segment.ilon_west<<" "<<segment.ilat_east<<' '<<segment.ilon_east840// <<" "<<ait->ilat_west<<' '<<ait->ilon_west<<" "<<ait->ilat_east<<' '<<ait->ilon_east841// <<" "<<scal_ait_west<<' '<<scal_ait_east<<' '<<scal_it_west<<' '<<scal_it_east<<'\n';842// std::cout<<"DEBUG "<<((double)ait->ilat_east - segment.ilat_west)<<' '<<(segment.ilon_west - segment.ilon_east)843// <<' '<<(ait->ilon_east - segment.ilon_west)<<' '<<((double)segment.ilat_east - segment.ilat_west)<<'\n';865110512 q touching_coords.erase(std::unique(touching_coords.begin(), touching_coords.end()), touching_coords.end());869209412 q for (std::vector< std::pair< uint32, int32 > >::size_type i = 1; i < touching_coords.size(); ++i)873114712 q ((int64)touching_coords[i-1].second + touching_coords[i].second)/2, block, south, west);883inline Tilewise_Area_Iterator::Relative_Position Tilewise_Area_Iterator::rel_position(884 const std::vector< Segment >& segments, bool accept_border)8940909inline Tilewise_Area_Iterator::Relative_Position Tilewise_Const_Area_Iterator::rel_position(910 const std::vector< Segment >& segments, bool accept_border)9122887115 q for (std::vector< Segment >::const_iterator it = segments.begin(); it != segments.end(); ++it)9142617315 q Tilewise_Area_Iterator::Relative_Position status = rel_pos_ilat_ilon(it->ilat_west, it->ilon_west, false);9212531515 q const std::map< Full_Way_Ref, Tilewise_Area_Iterator::Index_Block >& way_blocks = get_obj();9222531515 q for (std::map< Full_Way_Ref, Tilewise_Area_Iterator::Index_Block >::const_iterator bit = way_blocks.begin();9262567715 q Tilewise_Area_Iterator::Relative_Position result = ::rel_position(get_idx(), *it, block);935inline void Tilewise_Area_Iterator::propagate_inside_flag()95213459033 q queue[Uint31_Index(ll_upper_(ilat(idx.val(), 0u), ilon(idx.val(), 0u)+0x10000))][bit->first].sw_is_inside = true;9540 queue[Uint31_Index(ll_upper_(ilat(idx.val(), 0u)+0x10000, ilon(idx.val(), 0u)))][bit->first].sw_is_inside = true;959inline void Tilewise_Const_Area_Iterator::propagate_inside_flag()9643778524 q const std::map< Full_Way_Ref, Tilewise_Area_Iterator::Index_Block >& way_blocks = get_obj();9663778524 q for (std::map< Full_Way_Ref, Tilewise_Area_Iterator::Index_Block >::const_iterator bit = way_blocks.begin();9714268116 q queue[Uint31_Index(ll_upper_(ilat(idx.val(), 0u), ilon(idx.val(), 0u)+0x10000))][bit->first].sw_is_inside = true;9730 queue[Uint31_Index(ll_upper_(ilat(idx.val(), 0u)+0x10000, ilon(idx.val(), 0u)))][bit->first].sw_is_inside = true;978inline Tilewise_Area_Iterator::Relative_Position Tilewise_Area_Iterator::rel_pos_ilat_ilon(979 uint32 lat_p, int32 lon_p, bool accept_border)99701002inline Tilewise_Area_Iterator::Relative_Position Tilewise_Const_Area_Iterator::rel_pos_ilat_ilon(1003 uint32 lat_p, int32 lon_p, bool accept_border)10108004415 q const std::map< Full_Way_Ref, Tilewise_Area_Iterator::Index_Block >& way_blocks = get_obj();10128004415 q for (std::map< Full_Way_Ref, Tilewise_Area_Iterator::Index_Block >::const_iterator bit = way_blocks.begin();10158105715 q Tilewise_Area_Iterator::Relative_Position status = ::rel_pos_ilat_ilon(lat_p, lon_p, bit->second, south, west);1026inline void Tilewise_Area_Iterator::move_covering_ways(1027 uint32 ll_upper, uint32 ll_lower,1028 std::map< Uint31_Index, std::vector< Way_Skeleton > >& target_ways,1029 std::map< Uint31_Index, std::vector< Attic< Way_Skeleton > > >& target_attic_ways)1042// std::cout<<"DEBUG move_covering_ways "<<std::hex<<idx.val()<<' '<<std::dec<<bit->first.way->id.val()<<'\n';104639121634 q Relative_Position status = ::rel_pos_ilat_ilon(lat_p, lon_p, bit->second, south, west);10511299 q target_attic_ways[bit->first.idx].push_back(Attic< Way_Skeleton >(*bit->first.way, bit->first.timestamp));1060// std::cout<<"DEBUG A "<<status<<' '<<std::hex<<bit->first.idx.val()<<' '<<std::dec<<bit->first.timestamp1061// <<' '<<target_ways.size()<<' '<<target_ways[bit->first.idx].size()<<'\n';1066// fwd iterator only1067class Tilewise_Way_Iterator1068{1069public:1070 struct Index_Block1071 {1072 std::vector< Segment > segments;1073 };1075 template< typename Way_Skeleton >1076 struct Status_Ref1077 {1081 Uint31_Index idx;1082 const Way_Skeleton* skel;1083 Tilewise_Area_Iterator::Relative_Position status;1084 };1086 // non-const, but relies to pointers into each vec.1087 // That way, objects can be moved from or marked as done.1088 Tilewise_Way_Iterator(1089 const std::map< Uint31_Index, std::vector< Way_Skeleton > >& ways_,1090 const std::map< Uint31_Index, std::vector< Attic< Way_Skeleton > > >& attic_ways_,1091 const Statement& stmt, Resource_Manager& rman)109211345 q : ways(&ways_), attic_ways(&attic_ways_), cur_it(ways->begin()), attic_it(attic_ways->begin()),1099 void next()1107 const std::map< Status_Ref< Way_Skeleton >*, Index_Block >& get_current_obj() const1109 const std::map< Status_Ref< Attic< Way_Skeleton > >*, Index_Block >& get_attic_obj() const1113private:1114 const std::map< Uint31_Index, std::vector< Way_Skeleton > >* ways;1115 const std::map< Uint31_Index, std::vector< Attic< Way_Skeleton > > >* attic_ways;1116 std::map< Uint31_Index, std::vector< Way_Skeleton > >::const_iterator cur_it;1117 std::map< Uint31_Index, std::vector< Attic< Way_Skeleton > > >::const_iterator attic_it;1118 std::map< Uint31_Index, std::vector< Status_Ref< Way_Skeleton > > > current_refs;1119 std::map< Uint31_Index, std::vector< Status_Ref< Attic< Way_Skeleton > > > > attic_refs;1120 Way_Geometry_Store cur_geom_store;1121 Way_Geometry_Store attic_geom_store;1122 std::map< Uint31_Index, std::pair< std::map< Status_Ref< Way_Skeleton >*, Index_Block >,1123 std::map< Status_Ref< Attic< Way_Skeleton > >*, Index_Block > > > queue;1124 Uint31_Index complete_idx;1126 struct Current_Segment_Collector1127 {1128 Current_Segment_Collector(1129 std::map< Uint31_Index, std::pair< std::map< Status_Ref< Way_Skeleton >*, Index_Block >,1130 std::map< Status_Ref< Attic< Way_Skeleton > >*, Index_Block > > >& queue_,1131 Status_Ref< Way_Skeleton >& skel_)1133 void push(Uint31_Index idx, const Segment& segment) const1136 private:1137 std::map< Uint31_Index, std::pair< std::map< Status_Ref< Way_Skeleton >*, Index_Block >,1138 std::map< Status_Ref< Attic< Way_Skeleton > >*, Index_Block > > >* queue;1139 Status_Ref< Way_Skeleton >* skel;1140 };1142 struct Attic_Segment_Collector1143 {1144 Attic_Segment_Collector(1145 std::map< Uint31_Index, std::pair< std::map< Status_Ref< Way_Skeleton >*, Index_Block >,1146 std::map< Status_Ref< Attic< Way_Skeleton > >*, Index_Block > > >& queue_,1147 Status_Ref< Attic< Way_Skeleton > >& skel_)1149 void push(Uint31_Index idx, const Segment& segment) const1152 private:1153 std::map< Uint31_Index, std::pair< std::map< Status_Ref< Way_Skeleton >*, Index_Block >,1154 std::map< Status_Ref< Attic< Way_Skeleton > >*, Index_Block > > >* queue;1155 Status_Ref< Attic< Way_Skeleton > >* skel;1156 };1158 void refill()11626199535 q Uint31_Index idx = (cur_it != ways->end() && (attic_it == attic_ways->end() || cur_it->first < attic_it->first)116727163634 q for (std::vector< Way_Skeleton >::const_iterator it = cur_it->second.begin(); it != cur_it->second.end(); ++it)116927163634 q for (std::vector< Status_Ref< Way_Skeleton > >::iterator it = refs.begin(); it != refs.end(); ++it)117022497530 q make_entries(Current_Segment_Collector(queue, *it), cur_geom_store.get_geometry(*it->skel));11761533411 q for (std::vector< Attic< Way_Skeleton > >::const_iterator it = attic_it->second.begin();11793401211 q for (std::vector< Status_Ref< Attic< Way_Skeleton > > >::iterator it = refs.begin(); it != refs.end(); ++it)1180186789 q make_entries(Attic_Segment_Collector(queue, *it), attic_geom_store.get_geometry(*it->skel));11856199535 q if (!queue.empty() && is_compound_idx(idx) && (queue.begin()->first.val() & 0x7fffffff) < complete_idx.val())1189};1192#endif