GEOS
3.9.1dev
|
A map of Node, indexed by the coordinate of the node. More...
#include <NodeMap.h>
Public Types | |
typedef std::map< geom::Coordinate, Node *, geom::CoordinateLessThen > | container |
Public Member Functions | |
NodeMap () | |
Constructs a NodeMap without any Nodes. More... | |
container & | getNodeMap () |
virtual | ~NodeMap ()=default |
Node * | add (Node *n) |
Adds a node to the std::map, replacing any that is already at that location. More... | |
Node * | remove (geom::Coordinate &pt) |
Removes the Node at the given location, and returns it (or null if no Node was there). More... | |
Node * | find (const geom::Coordinate &coord) |
Returns the Node at the given location, or null if no Node was there. More... | |
container::iterator | iterator () |
Returns an Iterator over the Nodes in this NodeMap, sorted in ascending order by angle with the positive x-axis. More... | |
container::iterator | begin () |
container::const_iterator | begin () const |
container::iterator | end () |
container::const_iterator | end () const |
void | getNodes (std::vector< Node * > &nodes) |
Returns the Nodes in this NodeMap, sorted in ascending order by angle with the positive x-axis. More... | |
Private Attributes | |
container | nodeMap |
A map of Node, indexed by the coordinate of the node.
Definition at line 48 of file planargraph/NodeMap.h.
typedef std::map<geom::Coordinate, Node*, geom::CoordinateLessThen> geos::planargraph::NodeMap::container |
Definition at line 50 of file planargraph/NodeMap.h.
geos::planargraph::NodeMap::NodeMap | ( | ) |
Constructs a NodeMap without any Nodes.
|
virtualdefault |
Adds a node to the std::map, replacing any that is already at that location.
Referenced by geos::planargraph::PlanarGraph::add().
|
inline |
Definition at line 98 of file planargraph/NodeMap.h.
Referenced by geos::planargraph::PlanarGraph::nodeBegin(), and geos::planargraph::PlanarGraph::nodeIterator().
|
inline |
Definition at line 103 of file planargraph/NodeMap.h.
|
inline |
Definition at line 109 of file planargraph/NodeMap.h.
Referenced by geos::planargraph::PlanarGraph::nodeEnd().
|
inline |
Definition at line 114 of file planargraph/NodeMap.h.
Node* geos::planargraph::NodeMap::find | ( | const geom::Coordinate & | coord | ) |
Returns the Node at the given location, or null if no Node was there.
Referenced by geos::planargraph::PlanarGraph::findNode().
container& geos::planargraph::NodeMap::getNodeMap | ( | ) |
void geos::planargraph::NodeMap::getNodes | ( | std::vector< Node * > & | nodes | ) |
Returns the Nodes in this NodeMap, sorted in ascending order by angle with the positive x-axis.
nodes | : the nodes are push_back'ed here |
Referenced by geos::planargraph::PlanarGraph::getNodes().
|
inline |
Returns an Iterator over the Nodes in this NodeMap, sorted in ascending order by angle with the positive x-axis.
Definition at line 92 of file planargraph/NodeMap.h.
Node* geos::planargraph::NodeMap::remove | ( | geom::Coordinate & | pt | ) |
|
private |
Definition at line 52 of file planargraph/NodeMap.h.