GEOS 3.14.0dev
ShortCircuitedGeometryVisitor.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#include <geos/export.h>
19
20// Forward declarations
21namespace geos {
22namespace geom {
23class Geometry;
24}
25}
26
27
28namespace geos {
29namespace geom { // geos.geom
30namespace util { // geos.geom.util
31
39
40private:
41
42 bool done;
43
44protected:
45
46 virtual void visit(const Geometry& element) = 0;
47 virtual bool isDone() = 0;
48
49public:
50
52 :
53 done(false)
54 {}
55
56 void applyTo(const Geometry& geom);
57
58 virtual
60
61};
62
63} // namespace geos.geom.util
64} // namespace geos.geom
65} // namespace geos
66
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:197
A visitor to Geometry elements which can be short-circuited by a given condition.
Definition ShortCircuitedGeometryVisitor.h:38
Basic namespace for all GEOS functionalities.
Definition geos.h:39