18#include <geos/export.h>
19#include <geos/planargraph/NodeMap.h>
25#pragma warning(disable: 4251)
30namespace planargraph {
38namespace planargraph {
90 std::pair<std::set<Edge*>::iterator,
bool>
add(
Edge* e);
100 std::vector<const DirectedEdge*>::iterator
103 return dirEdges.begin();
115 std::set<Edge*>::iterator
118 return edges.begin();
120 std::set<Edge*>::iterator
130 NodeMap::container::iterator
133 return nodeMap.begin();
135 NodeMap::container::const_iterator
138 return nodeMap.end();
140 NodeMap::container::iterator
143 return nodeMap.end();
145 NodeMap::container::const_iterator
148 return nodeMap.begin();
160 return (edges.find(e) != edges.end());
166 std::set<Edge*> edges;
167 std::vector<const DirectedEdge*> dirEdges;
Represents an undirected edge of a PlanarGraph.
Definition planargraph/Edge.h:54
A map of Node, indexed by the coordinate of the node.
Definition planargraph/NodeMap.h:47
Represents a directed graph which is embeddable in a planar surface.
Definition planargraph/PlanarGraph.h:59
A subgraph of a PlanarGraph.
Definition Subgraph.h:52
bool contains(Edge *e)
Tests whether an Edge is contained in this subgraph.
Definition Subgraph.h:158
std::pair< std::set< Edge * >::iterator, bool > add(Edge *e)
Adds an Edge to the subgraph.
std::set< Edge * >::iterator edgeBegin()
Returns an iterator over the Edges in this graph, in the order in which they were added.
Definition Subgraph.h:116
PlanarGraph & getParent() const
Gets the PlanarGraph which this subgraph is part of.
Definition Subgraph.h:71
NodeMap::container::iterator nodeBegin()
Returns a iterators over the planar NodeMap::container in this graph.
Definition Subgraph.h:131
std::vector< constDirectedEdge * >::iterator getDirEdgeBegin()
Returns an iterator over the DirectedEdge in this graph, in the order in which they were added.
Definition Subgraph.h:101
Subgraph(PlanarGraph &parent)
Creates a new subgraph of the given PlanarGraph.
Definition Subgraph.h:59
Basic namespace for all GEOS functionalities.
Definition geos.h:39