GEOS  3.9.1dev
Classes | Public Member Functions | Private Types | Private Attributes | Friends | List of all members
geos::geomgraph::EdgeList Class Reference

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 ()
 
EdgefindEqualEdge (const Edge *e) const
 
Edgeget (int i)
 
int findEdgeIndex (const Edge *e) const
 
std::string print ()
 
void clearList ()
 

Private Types

typedef std::unordered_map< noding::OrientedCoordinateArray, Edge *, noding::OrientedCoordinateArray::HashCodeEdgeMap
 

Private Attributes

std::vector< Edge * > edges
 
EdgeMap ocaMap
 

Friends

std::ostream & operator<< (std::ostream &os, const EdgeList &el)
 

Detailed Description

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.

Member Typedef Documentation

An index of the edges, for fast lookup.

Definition at line 79 of file EdgeList.h.

Constructor & Destructor Documentation

geos::geomgraph::EdgeList::EdgeList ( )
inline

Definition at line 85 of file EdgeList.h.

virtual geos::geomgraph::EdgeList::~EdgeList ( )
virtualdefault

Member Function Documentation

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::findEqualEdge ( const Edge e) const
Edge* geos::geomgraph::EdgeList::get ( int  i)
std::vector<Edge*>& geos::geomgraph::EdgeList::getEdges ( )
inline

Definition at line 101 of file EdgeList.h.

References geos::geomgraph::operator<<().

Here is the call graph for this function:

std::string geos::geomgraph::EdgeList::print ( )

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const EdgeList el 
)
friend

Member Data Documentation

std::vector<Edge*> geos::geomgraph::EdgeList::edges
private

Definition at line 62 of file EdgeList.h.

EdgeMap geos::geomgraph::EdgeList::ocaMap
private

Definition at line 80 of file EdgeList.h.


The documentation for this class was generated from the following file: