16 #ifndef GEOS_PLANARGRAPH_NODEMAP_H
17 #define GEOS_PLANARGRAPH_NODEMAP_H
19 #include <geos/export.h>
20 #include <geos/geom/Coordinate.h>
27 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
32 namespace planargraph {
33 class DirectedEdgeStar;
41 namespace planargraph {
50 typedef std::map<geom::Coordinate, Node*, geom::CoordinateLessThen> container;
59 container& getNodeMap();
92 return nodeMap.begin();
95 container::iterator begin() {
96 return nodeMap.begin();
98 container::const_iterator begin()
const {
99 return nodeMap.begin();
102 container::iterator end() {
103 return nodeMap.end();
105 container::const_iterator end()
const {
106 return nodeMap.end();
116 void getNodes(std::vector<Node*>& nodes);
127 #endif // GEOS_PLANARGRAPH_NODEMAP_H
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
A node in a PlanarGraph is a location where 0 or more Edge meet.
Definition: planargraph/Node.h:45
container::iterator iterator()
Returns an Iterator over the Nodes in this NodeMap, sorted in ascending order by angle with the posit...
Definition: planargraph/NodeMap.h:91
A map of Node, indexed by the coordinate of the node.
Definition: planargraph/NodeMap.h:48