GEOS 3.3.8

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

CoordinateSequenceFilter.h
1 /**********************************************************************
2 * $Id: CoordinateSequenceFilter.h 3255 2011-03-01 17:56:10Z mloskot $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 2009 Sandro Santilli <strk@keybit.net>
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 * Last port: geom/CoordinateSequenceFilter.java rev. 1.3 (JTS-1.9)
17 *
18 **********************************************************************/
19
20 #ifndef GEOS_GEOM_COORDINATESEQUENCEFILTER_H
21 #define GEOS_GEOM_COORDINATESEQUENCEFILTER_H
22
23 #include <geos/export.h>
24 #include <geos/inline.h>
25
26 #include <cassert>
27
28 // Forward declarations
29 namespace geos {
30 namespace geom {
31 class CoordinateSequence;
32 }
33 }
34
35 namespace geos {
36 namespace geom { // geos::geom
37
59 class GEOS_DLL CoordinateSequenceFilter {
60
61 public:
62
63 virtual ~CoordinateSequenceFilter() {}
64
72 virtual void filter_rw(CoordinateSequence& /*seq*/, std::size_t /*i*/)
73 { assert(0); }
74
82 virtual void filter_ro(const CoordinateSequence& /*seq*/, std::size_t /*i*/)
83 { assert(0); }
84
92 virtual bool isDone() const = 0;
93
94
106 virtual bool isGeometryChanged() const = 0;
107
108 };
109
110 } // namespace geos::geom
111 } // namespace geos
112
113
114 #endif // ndef GEOS_GEOM_COORDINATESEQUENCEFILTER_H
115