19 #ifndef GEOS_NODING_SEGMENTNODELIST_H
20 #define GEOS_NODING_SEGMENTNODELIST_H
22 #include <geos/export.h>
24 #include <geos/inline.h>
31 #include <geos/noding/SegmentNode.h>
35 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
41 class CoordinateSequence;
45 class NodedSegmentString;
58 std::set<SegmentNode*, SegmentNodeLT> nodeMap;
69 void checkSplitEdgesCorrectness(std::vector<SegmentString*>& splitEdges);
89 void addCollapsedNodes();
95 void findCollapsesFromExistingVertices(
96 std::vector<std::size_t>& collapsedVertexIndexes);
105 void findCollapsesFromInsertedNodes(
106 std::vector<std::size_t>& collapsedVertexIndexes);
109 size_t& collapsedVertexIndex);
117 friend std::ostream& operator<< (std::ostream& os,
const SegmentNodeList& l);
119 typedef std::set<SegmentNode*, SegmentNodeLT> container;
120 typedef container::iterator iterator;
121 typedef container::const_iterator const_iterator;
152 return add(*intPt, segmentIndex);
160 std::set<SegmentNode*, SegmentNodeLT>*
170 return nodeMap.size();
176 return nodeMap.begin();
178 container::const_iterator
181 return nodeMap.begin();
186 return nodeMap.end();
188 container::const_iterator
191 return nodeMap.end();
205 void addSplitEdges(std::vector<SegmentString*>& edgeList);
208 addSplitEdges(std::vector<SegmentString*>* edgeList)
211 addSplitEdges(*edgeList);
217 std::ostream& operator<< (std::ostream& os,
const SegmentNodeList& l);