• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List

ShortCircuitedGeometryVisitor.h

00001 /**********************************************************************
00002  * $Id: ShortCircuitedGeometryVisitor.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) 2001-2002 Vivid Solutions Inc.
00008  * Copyright (C) 2006 Refractions Research Inc.
00009  *
00010  * This is free software; you can redistribute and/or modify it under
00011  * the terms of the GNU Lesser General Public Licence as published
00012  * by the Free Software Foundation. 
00013  * See the COPYING file for more information.
00014  *
00015  **********************************************************************/
00016 
00017 #ifndef GEOS_GEOM_UTIL_SHORTCIRCUITEDGEOMETRYVISITOR_H
00018 #define GEOS_GEOM_UTIL_SHORTCIRCUITEDGEOMETRYVISITOR_H
00019 
00020 #include <geos/export.h>
00021 
00022 // Forward declarations
00023 namespace geos {
00024         namespace geom {
00025                 class Geometry;
00026         }
00027 }
00028 
00029 
00030 namespace geos {
00031 namespace geom { // geos.geom
00032 namespace util { // geos.geom.util
00033 
00040 class GEOS_DLL ShortCircuitedGeometryVisitor
00041 {
00042 
00043 private:
00044 
00045         bool done;
00046 
00047 protected:
00048 
00049         virtual void visit(const Geometry &element)=0;
00050         virtual bool isDone()=0;
00051 
00052 public:
00053 
00054         ShortCircuitedGeometryVisitor()
00055                 :
00056                 done(false)
00057                 {}
00058 
00059         void applyTo(const Geometry &geom);
00060 
00061         virtual ~ShortCircuitedGeometryVisitor() {}
00062 
00063 };
00064 
00065 } // namespace geos.geom.util
00066 } // namespace geos.geom
00067 } // namespace geos
00068 
00069 //#ifdef GEOS_INLINE
00070 //# include "geos/geom/util/ShortCircuitedGeometryVisitor.inl"
00071 //#endif
00072 
00073 #endif
00074 
00075 /**********************************************************************
00076  * $Log$
00077  * Revision 1.3  2006/06/08 11:20:24  strk
00078  * Added missing virtual destructor to abstract classes.
00079  *
00080  * Revision 1.2  2006/03/24 09:52:41  strk
00081  * USE_INLINE => GEOS_INLINE
00082  *
00083  * Revision 1.1  2006/03/09 16:46:49  strk
00084  * geos::geom namespace definition, first pass at headers split
00085  *
00086  **********************************************************************/

Generated on Thu Jul 22 2010 for GEOS by  doxygen 1.7.1