GEOS 3.11.1
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
26namespace geos {
27namespace geom { // geos.geom
28namespace util { // geos.geom.util
29
34
35private:
36
38
39 // Declare type as noncopyable
41 LinearComponentExtracter& operator=(const LinearComponentExtracter& rhs) = delete;
42
43public:
51 static void getLines(const Geometry& geom, std::vector<const LineString*>& ret);
56 LinearComponentExtracter(std::vector<const LineString*>& newComps);
57
58 void filter_rw(Geometry* geom) override;
59
60 void filter_ro(const Geometry* geom) override;
61
62};
63
64} // namespace geos.geom.util
65} // namespace geos.geom
66} // namespace geos
67
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:73
Definition: LinearComponentExtracter.h:33
static void getLines(const Geometry &geom, std::vector< const LineString * > &ret)
void filter_rw(Geometry *geom) override
LinearComponentExtracter(std::vector< const LineString * > &newComps)
Basic namespace for all GEOS functionalities.
Definition: geos.h:39