GEOS: CoordinateArraySequenceFactory.h Source File

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

# CoordinateArraySequenceFactory.h

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