GEOS  3.13.0dev
LinearComponentExtracter.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2001-2002 Vivid Solutions Inc.
7  * Copyright (C) 2006 Refractions Research Inc.
8  *
9  * This is free software; you can redistribute and/or modify it under
10  * the terms of the GNU Lesser General Public Licence as published
11  * by the Free Software Foundation.
12  * See the COPYING file for more information.
13  *
14  **********************************************************************/
15 
16 #pragma once
17 
18 
19 #include <geos/export.h>
20 #include <vector>
21 
22 #include <geos/geom/GeometryComponentFilter.h>
23 #include <geos/geom/Geometry.h> // to be removed when we have the .inl
24 #include <geos/geom/LineString.h> // to be removed when we have the .inl
25 
26 namespace geos {
27 namespace geom { // geos.geom
28 namespace util { // geos.geom.util
29 
34 
35 private:
36 
37  LineString::ConstVect& comps;
38 
39  // Declare type as noncopyable
41  LinearComponentExtracter& operator=(const LinearComponentExtracter& rhs) = delete;
42 
43 public:
51  static void getLines(const Geometry& geom, std::vector<const LineString*>& ret);
56  LinearComponentExtracter(std::vector<const LineString*>& newComps);
57 
58  void filter_ro(const Geometry* geom) override;
59 
60 };
61 
62 } // namespace geos.geom.util
63 } // namespace geos.geom
64 } // namespace geos
65 
Definition: GeometryComponentFilter.h:41
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
std::vector< const LineString * > ConstVect
A vector of const LineString pointers.
Definition: LineString.h:72
Definition: LinearComponentExtracter.h:33
static void getLines(const Geometry &geom, std::vector< const LineString * > &ret)
LinearComponentExtracter(std::vector< const LineString * > &newComps)
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25