GEOS  3.13.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
21 namespace geos {
22 namespace geom {
23 class Geometry;
24 }
25 }
26 
27 
28 namespace geos {
29 namespace geom { // geos.geom
30 namespace util { // geos.geom.util
31 
39 
40 private:
41 
42  bool done;
43 
44 protected:
45 
46  virtual void visit(const Geometry& element) = 0;
47  virtual bool isDone() = 0;
48 
49 public:
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:186
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: Angle.h:25