GEOS 3.9.1
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
23namespace geos {
24namespace geom { // geos::geom
25
26class Coordinate;
27
43class GEOS_DLL CoordinateFilter {
44public:
45 virtual
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
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
virtual void filter_ro(const Coordinate *)
Performs an operation with coord.
Definition CoordinateFilter.h:65
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:26