- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# Root.h

    00001 /**********************************************************************
    00002  * $Id: Root.h 1820 2006-09-06 16:54:23Z 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_QUADTREE_ROOT_H
    00017 #define GEOS_IDX_QUADTREE_ROOT_H
    00018
    00019 #include <geos/index/quadtree/NodeBase.h> // for inheritance
    00020 #include <geos/geom/Coordinate.h> // for composition
    00021
    00022 // Forward declarations
    00023 namespace geos {
    00024         namespace geom {
    00025                 class Envelope;
    00026         }
    00027         namespace index {
    00028                 namespace quadtree {
    00029                         class Node;
    00030                 }
    00031         }
    00032 }
    00033
    00034 namespace geos {
    00035 namespace index { // geos::index
    00036 namespace quadtree { // geos::index::quadtree
    00037
    00045 class Root: public NodeBase {
    00046 //friend class Unload;
    00047
    00048 private:
    00049
    00050         static geom::Coordinate origin;
    00051
    00057         void insertContained(Node *tree, const geom::Envelope *itemEnv, void* item);
    00058
    00059 public:
    00060
    00061         Root() {}
    00062
    00063         virtual ~Root() {}
    00064
    00068         void insert(const geom::Envelope *itemEnv, void* item);
    00069
    00070 protected:
    00071
    00072         bool isSearchMatch(const geom::Envelope* /* searchEnv */) { return true; }
    00073
    00074 };
    00075
    00076 } // namespace geos::index::quadtree
    00077 } // namespace geos::index
    00078 } // namespace geos
    00079
    00080 #endif // GEOS_IDX_QUADTREE_ROOT_H
    00081
    00082 /**********************************************************************
    00083  * $Log$
    00084  * Revision 1.2  2006/06/12 17:15:29  strk
    00085  * Removed unused parameters warning
    00086  *
    00087  * Revision 1.1  2006/03/22 12:22:50  strk
    00088  * indexQuadtree.h split
    00089  *
    00090  **********************************************************************/
    00091