GEOS  3.8.0dev
CoordinateFilter.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2005-2006 Refractions Research Inc.
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU Lesser General Public Licence as published
10  * by the Free Software Foundation.
11  * See the COPYING file for more information.
12  *
13  **********************************************************************/
14 
15 #ifndef GEOS_GEOM_COORDINATEFILTER_H
16 #define GEOS_GEOM_COORDINATEFILTER_H
17 
18 #include <geos/export.h>
19 #include <geos/inline.h>
20 
21 #include <cassert>
22 
23 namespace geos {
24 namespace geom { // geos::geom
25 
26 class Coordinate;
27 
43 class GEOS_DLL CoordinateFilter {
44 public:
45  virtual
46  ~CoordinateFilter() {}
47 
53  virtual void
54  filter_rw(Coordinate* /*coord*/) const
55  {
56  assert(0);
57  }
58 
64  virtual void
65  filter_ro(const Coordinate* /*coord*/)
66  {
67  assert(0);
68  }
69 };
70 
71 } // namespace geos::geom
72 } // namespace geos
73 
74 #endif // ndef GEOS_GEOM_COORDINATEFILTER_H
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
virtual void filter_ro(const Coordinate *)
Performs an operation with coord.
Definition: CoordinateFilter.h:65
Geometry classes support the concept of applying a coordinate filter to every coordinate in the Geome...
Definition: CoordinateFilter.h:43
virtual void filter_rw(Coordinate *) const
Performs an operation on coord.
Definition: CoordinateFilter.h:54
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25