/********************************************************************** * $Id: CoordinateArraySequenceFactory.h 1820 2006-09-06 16:54:23Z mloskot $ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2006 Refractions Research Inc. * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General Public Licence as published * by the Free Software Foundation. * See the COPYING file for more information. * **********************************************************************/ #ifndef GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H #define GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H #include #include // for inheritance #include // Forward declarations namespace geos { namespace geom { class Coordinate; } } namespace geos { namespace geom { // geos::geom /** * \class CoordinateArraySequenceFactory geom.h geos.h * * \brief * Creates CoordinateSequences internally represented as an array of * Coordinates. */ class CoordinateArraySequenceFactory: public CoordinateSequenceFactory { public: /** \brief * Returns a CoordinateArraySequence based on the given vector * (the vector is not copied - callers give up ownership). */ CoordinateSequence *create(std::vector *coords) const; CoordinateSequence *create(std::vector *coords, size_t dims) const; /** @see CoordinateSequenceFactory::create(size_t, int) */ CoordinateSequence *create(size_t size, size_t dimension=3) const; /** \brief * Returns the singleton instance of CoordinateArraySequenceFactory */ static const CoordinateSequenceFactory *instance(); }; /// This is for backward API compatibility typedef CoordinateArraySequenceFactory DefaultCoordinateSequenceFactory; } // namespace geos::geom } // namespace geos #ifdef GEOS_INLINE # include "geos/geom/CoordinateArraySequenceFactory.inl" #endif #endif // ndef GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H /********************************************************************** * $Log$ * Revision 1.4 2006/06/12 11:29:23 strk * unsigned int => size_t * * Revision 1.3 2006/06/12 10:10:39 strk * Fixed getGeometryN() to take size_t rather then int, changed unsigned int parameters to size_t. * * Revision 1.2 2006/03/24 09:52:41 strk * USE_INLINE => GEOS_INLINE * * Revision 1.1 2006/03/09 16:46:49 strk * geos::geom namespace definition, first pass at headers split * **********************************************************************/