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

- File List

# Root.h

    00001 /**********************************************************************
    00002  * $Id: Root.h 2556 2009-06-06 22:22:28Z strk $
    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  * Last port: index/quadtree/Root.java rev 1.7 (JTS-1.10)
    00017  *
    00018  **********************************************************************/
    00019
    00020 #ifndef GEOS_IDX_QUADTREE_ROOT_H
    00021 #define GEOS_IDX_QUADTREE_ROOT_H
    00022
    00023 #include <geos/export.h>
    00024 #include <geos/index/quadtree/NodeBase.h> // for inheritance
    00025 #include <geos/geom/Coordinate.h> // for composition
    00026
    00027 // Forward declarations
    00028 namespace geos {
    00029         namespace geom {
    00030                 class Envelope;
    00031         }
    00032         namespace index {
    00033                 namespace quadtree {
    00034                         class Node;
    00035                 }
    00036         }
    00037 }
    00038
    00039 namespace geos {
    00040 namespace index { // geos::index
    00041 namespace quadtree { // geos::index::quadtree
    00042
    00050 class GEOS_DLL Root: public NodeBase {
    00051 //friend class Unload;
    00052
    00053 private:
    00054
    00055         static const geom::Coordinate origin;
    00056
    00062         void insertContained(Node *tree, const geom::Envelope *itemEnv,
    00063                              void* item);
    00064
    00065 public:
    00066
    00067         Root() {}
    00068
    00069         virtual ~Root() {}
    00070
    00074         void insert(const geom::Envelope *itemEnv, void* item);
    00075
    00076 protected:
    00077
    00078         bool isSearchMatch(const geom::Envelope& /* searchEnv */) const {
    00079                 return true;
    00080         }
    00081
    00082 };
    00083
    00084 } // namespace geos::index::quadtree
    00085 } // namespace geos::index
    00086 } // namespace geos
    00087
    00088 #endif // GEOS_IDX_QUADTREE_ROOT_H
    00089
    00090 /**********************************************************************
    00091  * $Log$
    00092  * Revision 1.2  2006/06/12 17:15:29  strk
    00093  * Removed unused parameters warning
    00094  *
    00095  * Revision 1.1  2006/03/22 12:22:50  strk
    00096  * indexQuadtree.h split
    00097  *
    00098  **********************************************************************/
    00099