GEOS  3.9.1dev
SpatialIndex.h
Go to the documentation of this file.
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 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_INDEX_SPATIALINDEX_H
16 #define GEOS_INDEX_SPATIALINDEX_H
17 
18 #include <geos/export.h>
19 
20 #include <vector>
21 
22 // Forward declarations
23 namespace geos {
24 namespace geom {
25 class Envelope;
26 }
27 namespace index {
28 class ItemVisitor;
29 }
30 }
31 
32 namespace geos {
33 namespace index {
34 
48 public:
49 
50  virtual
52 
65  virtual void insert(const geom::Envelope* itemEnv, void* item) = 0;
66 
76  //virtual std::vector<void*>* query(const geom::Envelope *searchEnv)=0;
77  virtual void query(const geom::Envelope* searchEnv, std::vector<void*>&) = 0;
78 
89  virtual void query(const geom::Envelope* searchEnv, ItemVisitor& visitor) = 0;
90 
98  virtual bool remove(const geom::Envelope* itemEnv, void* item) = 0;
99 
100 };
101 
102 
103 } // namespace geos.index
104 } // namespace geos
105 
106 #endif // GEOS_INDEX_SPATIALINDEX_H
107 
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition: Envelope.h:58
#define GEOS_DLL
Definition: export.h:28
Abstract class defines basic insertion and query operations supported by classes implementing spatial...
Definition: SpatialIndex.h:47
A visitor for items in an index.
Definition: ItemVisitor.h:29
Basic namespace for all GEOS functionalities.