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

- File List

# Interval.h

    00001 /**********************************************************************
    00002  * $Id: Interval.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 #ifndef GEOS_INDEX_STRTREE_INTERVAL_H
    00017 #define GEOS_INDEX_STRTREE_INTERVAL_H
    00018
    00019 #include <geos/export.h>
    00020
    00021 namespace geos {
    00022 namespace index { // geos::index
    00023 namespace strtree { // geos::index::strtree
    00024
    00026 //
    00029 class GEOS_DLL Interval {
    00030 public:
    00031         Interval(Interval *other);
    00032         Interval(double newMin, double newMax);
    00033         double getCentre();
    00034         Interval* expandToInclude(Interval *other);
    00035         bool intersects(Interval *other);
    00036         bool equals(void *o);
    00037 private:
    00038         double imin;
    00039         double imax;
    00040 };
    00041
    00042
    00043 } // namespace geos::index::strtree
    00044 } // namespace geos::index
    00045 } // namespace geos
    00046
    00047 #endif // GEOS_INDEX_STRTREE_INTERVAL_H
    00048
    00049 /**********************************************************************
    00050  * $Log$
    00051  * Revision 1.1  2006/03/21 10:47:34  strk
    00052  * indexStrtree.h split
    00053  *
    00054  **********************************************************************/
    00055