GEOS
3.9.1dev
|
A EdgeList is a list of Edges. More...
#include <EdgeList.h>
Classes | |
struct | OcaCmp |
Public Member Functions | |
EdgeList () | |
virtual | ~EdgeList ()=default |
void | add (Edge *e) |
void | addAll (const std::vector< Edge * > &edgeColl) |
std::vector< Edge * > & | getEdges () |
Edge * | findEqualEdge (const Edge *e) const |
Edge * | get (int i) |
int | findEdgeIndex (const Edge *e) const |
std::string | print () |
void | clearList () |
Private Types | |
typedef std::unordered_map< noding::OrientedCoordinateArray, Edge *, noding::OrientedCoordinateArray::HashCode > | EdgeMap |
Private Attributes | |
std::vector< Edge * > | edges |
EdgeMap | ocaMap |
Friends | |
std::ostream & | operator<< (std::ostream &os, const EdgeList &el) |
A EdgeList is a list of Edges.
It supports locating edges that are pointwise equals to a target edge.
Definition at line 58 of file EdgeList.h.
|
private |
An index of the edges, for fast lookup.
Definition at line 79 of file EdgeList.h.
|
inline |
Definition at line 85 of file EdgeList.h.
|
virtualdefault |
void geos::geomgraph::EdgeList::add | ( | Edge * | e | ) |
Insert an edge unless it is already in the list
void geos::geomgraph::EdgeList::addAll | ( | const std::vector< Edge * > & | edgeColl | ) |
void geos::geomgraph::EdgeList::clearList | ( | ) |
int geos::geomgraph::EdgeList::findEdgeIndex | ( | const Edge * | e | ) | const |
Edge* geos::geomgraph::EdgeList::get | ( | int | i | ) |
|
inline |
Definition at line 101 of file EdgeList.h.
References geos::geomgraph::operator<<().
std::string geos::geomgraph::EdgeList::print | ( | ) |
|
friend |
|
private |
Definition at line 62 of file EdgeList.h.
|
private |
Definition at line 80 of file EdgeList.h.