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

- File List

# CoordinateArraySequenceFactory.h

    00001 /**********************************************************************
    00002  * $Id: CoordinateArraySequenceFactory.h 2998 2010-05-31 16:25:57Z warmerdam $
    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_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
    00017 #define GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
    00018
    00019
    00020 #include <geos/export.h>
    00021 #include <vector>
    00022
    00023 #include <geos/geom/CoordinateSequenceFactory.h> // for inheritance
    00024
    00025 #include <geos/inline.h>
    00026
    00027 // Forward declarations
    00028 namespace geos {
    00029         namespace geom {
    00030                 class Coordinate;
    00031         }
    00032 }
    00033
    00034 namespace geos {
    00035 namespace geom { // geos::geom
    00036
    00044 class GEOS_DLL CoordinateArraySequenceFactory: public CoordinateSequenceFactory {
    00045
    00046 public:
    00047
    00052         CoordinateSequence *create(std::vector<Coordinate> *coords) const;
    00053
    00054         CoordinateSequence *create(std::vector<Coordinate> *coords, std::size_t dims) const;
    00055
    00057         CoordinateSequence *create(std::size_t size, std::size_t dimension=0) const;
    00058
    00062         static const CoordinateSequenceFactory *instance();
    00063 };
    00064
    00066 typedef CoordinateArraySequenceFactory DefaultCoordinateSequenceFactory;
    00067
    00068 } // namespace geos::geom
    00069 } // namespace geos
    00070
    00071 #ifdef GEOS_INLINE
    00072 # include "geos/geom/CoordinateArraySequenceFactory.inl"
    00073 #endif
    00074
    00075 #endif // ndef GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
    00076
    00077 /**********************************************************************
    00078  * $Log$
    00079  * Revision 1.4  2006/06/12 11:29:23  strk
    00080  * unsigned int => size_t
    00081  *
    00082  * Revision 1.3  2006/06/12 10:10:39  strk
    00083  * Fixed getGeometryN() to take size_t rather then int, changed unsigned int parameters to size_t.
    00084  *
    00085  * Revision 1.2  2006/03/24 09:52:41  strk
    00086  * USE_INLINE => GEOS_INLINE
    00087  *
    00088  * Revision 1.1  2006/03/09 16:46:49  strk
    00089  * geos::geom namespace definition, first pass at headers split
    00090  *
    00091  **********************************************************************/