00001 /********************************************************************** 00002 * $Id: ItemBoundable.h 2194 2008-09-23 23:01:00Z mloskot $ 00003 * 00004 * GEOS - Geometry Engine Open Source 00005 * http://geos.refractions.net 00006 * 00007 * Copyright (C) 2006 Refractions Research Inc. 00008 * 00009 * This is free software; you can redistribute and/or modify it under 00010 * the terms of the GNU Lesser General Public Licence as published 00011 * by the Free Software Foundation. 00012 * See the COPYING file for more information. 00013 * 00014 **********************************************************************/ 00015 #ifndef GEOS_INDEX_STRTREE_ITEMBOUNDABLE_H 00016 #define GEOS_INDEX_STRTREE_ITEMBOUNDABLE_H 00017 00018 #include <geos/index/strtree/Boundable.h> // for inheritance 00019 00020 namespace geos { 00021 namespace index { // geos::index 00022 namespace strtree { // geos::index::strtree 00023 00031 class ItemBoundable: public Boundable 00032 { 00033 public: 00034 00035 ItemBoundable(const void* newBounds, void* newItem); 00036 virtual ~ItemBoundable(); 00037 00038 const void* getBounds() const; 00039 void* getItem() const; 00040 00041 private: 00042 00043 const void* bounds; 00044 void* item; 00045 }; 00046 00047 } // namespace geos::index::strtree 00048 } // namespace geos::index 00049 } // namespace geos 00050 00051 #endif // GEOS_INDEX_STRTREE_ITEMBOUNDABLE_H 00052 00053 /********************************************************************** 00054 * $Log$ 00055 * Revision 1.1 2006/03/21 10:47:34 strk 00056 * indexStrtree.h split 00057 * 00058 **********************************************************************/ 00059