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)
41class CoordinateSequence;
45class 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();
208 addSplitEdges(std::vector<SegmentString*>* edgeList)
211 addSplitEdges(*edgeList);
217std::ostream& operator<< (std::ostream& os,
const SegmentNodeList& l);
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Represents a list of contiguous line segments, and supports noding the segments.
Definition: NodedSegmentString.h:57
A list of the SegmentNode present along a NodedSegmentString.
Definition: SegmentNodeList.h:56
SegmentNode * add(const geom::Coordinate &intPt, std::size_t segmentIndex)
void addSplitEdges(std::vector< SegmentString * > &edgeList)
size_t size() const
Return the number of nodes in this list.
Definition: SegmentNodeList.h:168
Represents an intersection point between two NodedSegmentString.
Definition: SegmentNode.h:47
An interface for classes which represent a sequence of contiguous line segments.
Definition: SegmentString.h:46
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25