Root.h

00001 /**********************************************************************
00002  * $Id: Root.h 1986 2007-06-08 15:27:42Z 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 
00016 #ifndef GEOS_IDX_BINTREE_ROOT_H
00017 #define GEOS_IDX_BINTREE_ROOT_H
00018 
00019 #include <geos/index/bintree/NodeBase.h> // for inheritance
00020 
00021 // Forward declarations
00022 namespace geos {
00023         namespace index { 
00024                 namespace bintree { 
00025                         class Interval;
00026                         class Node;
00027                 }
00028         }
00029 }
00030 
00031 namespace geos {
00032 namespace index { // geos::index
00033 namespace bintree { // geos::index::bintree
00034 
00041 class Root: public NodeBase {
00042 
00043 private:
00044 
00045         // the singleton root node is centred at the origin.
00046         static double origin;
00047 
00048         void insertContained(Node *tree,
00049                         Interval *itemInterval,
00050                         void* item);
00051 
00052 public:
00053 
00054         Root() {}
00055 
00056         ~Root() {}
00057 
00058         void insert(Interval *itemInterval,void* item);
00059 
00060 protected:
00061 
00062         bool isSearchMatch(Interval* /*interval*/) { return true; }
00063 };
00064 
00065 } // namespace geos::index::bintree
00066 } // namespace geos::index
00067 } // namespace geos
00068 
00069 #endif // GEOS_IDX_BINTREE_ROOT_H
00070 
00071 /**********************************************************************
00072  * $Log$
00073  * Revision 1.1  2006/03/22 16:01:33  strk
00074  * indexBintree.h header split, classes renamed to match JTS
00075  *
00076  **********************************************************************/
00077 

Generated on Fri Mar 27 04:52:59 2009 for GEOS by  doxygen 1.5.4