GEOS
3.8.1
include
geos
geom
util
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
22
namespace
geos
{
23
namespace
geom {
24
class
Geometry;
25
}
26
}
27
28
29
namespace
geos
{
30
namespace
geom {
// geos.geom
31
namespace
util {
// geos.geom.util
32
39
class
GEOS_DLL ShortCircuitedGeometryVisitor {
40
41
private
:
42
43
bool
done;
44
45
protected
:
46
47
virtual
void
visit(
const
Geometry& element) = 0;
48
virtual
bool
isDone() = 0;
49
50
public
:
51
52
ShortCircuitedGeometryVisitor()
53
:
54
done(false)
55
{}
56
57
void
applyTo(
const
Geometry& geom);
58
59
virtual
60
~ShortCircuitedGeometryVisitor() {}
61
62
};
63
64
}
// namespace geos.geom.util
65
}
// namespace geos.geom
66
}
// namespace geos
67
68
#endif
geos
Basic namespace for all GEOS functionalities.
Definition:
IndexedNestedRingTester.h:24
Generated by
1.8.16