Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

IntervalRTreeLeafNode.h

00001 /**********************************************************************
00002  * $Id
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  **********************************************************************/
00016 
00017 #ifndef GEOS_INDEX_INTERVALRTREE_INTERVALRTREELEAFNODE_H
00018 #define GEOS_INDEX_INTERVALRTREE_INTERVALRTREELEAFNODE_H
00019 
00020 
00021 #include <geos/index/intervalrtree/IntervalRTreeNode.h> // inherited
00022 
00023 
00024 // forward declarations
00025 namespace geos {
00026         namespace index {
00027                 class ItemVisitor;
00028         }
00029 }
00030 
00031 
00032 namespace geos {
00033 namespace index {
00034 namespace intervalrtree {
00035 
00036 class IntervalRTreeLeafNode : public IntervalRTreeNode
00037 {
00038 private:
00039         void * item;
00040 
00041 protected:
00042 public:
00043         IntervalRTreeLeafNode( double min, double max, void * item)
00044         :       IntervalRTreeNode( min, max),
00045                 item( item)
00046         { }
00047 
00048         ~IntervalRTreeLeafNode()
00049         {
00050                 delete item;
00051         }
00052         
00053         void query( double queryMin, double queryMax, index::ItemVisitor * visitor) const;
00054 
00055 };
00056 
00057 } // geos::intervalrtree
00058 } // geos::index
00059 } // geos
00060 
00061 #endif // GEOS_INDEX_INTERVALRTREE_INTERVALRTREELEAFNODE_H
00062 /**********************************************************************
00063  * $Log$
00064  **********************************************************************/
00065 

Generated on Tue Jan 6 06:17:20 2009 for GEOS by  doxygen 1.4.4