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