GEOS  3.9.1dev
EdgeMerger.h
Go to the documentation of this file.
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2020 Paul Ramsey <pramsey@cleverelephant.ca>
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU Lesser General Public Licence as published
10  * by the Free Software Foundation.
11  * See the COPYING file for more information.
12  *
13  **********************************************************************/
14 
15 #pragma once
16 
20 #include <geos/export.h>
21 
22 #include <vector>
23 #include <map>
24 
25 
26 // Forward declarations
27 namespace geos {
28 namespace geom {
29 class Coordinate;
30 }
31 namespace operation {
32 namespace overlayng {
33 class Edge;
34 class EdgeKey;
35 }
36 }
37 }
38 
39 namespace geos { // geos.
40 namespace operation { // geos.operation
41 namespace overlayng { // geos.operation.overlayng
42 
66 
67 private:
68 
69 
70  // Members
71  std::vector<Edge*>& edges;
72  std::map<EdgeKey, Edge*> edgeMap;
73 
74 public:
75 
76  // Methods
77  EdgeMerger(std::vector<Edge*>& p_edges);
78 
79  static std::vector<Edge*> merge(std::vector<Edge*>& edges);
80 
81  std::vector<Edge*> merge();
82 
83 
84 };
85 
86 
87 } // namespace geos.operation.overlayng
88 } // namespace geos.operation
89 } // namespace geos
90 
#define GEOS_DLL
Definition: export.h:28
std::vector< Edge * > & edges
Definition: EdgeMerger.h:71
Basic namespace for all GEOS functionalities.
std::map< EdgeKey, Edge * > edgeMap
Definition: EdgeMerger.h:72