<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>GEOS: geos::geom::CoordinateSequenceFactory Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"> <ul> <li><a class="el" href="namespacegeos.html">geos</a> </li> <li><a class="el" href="namespacegeos_1_1geom.html">geom</a> </li> <li><a class="el" href="classgeos_1_1geom_1_1CoordinateSequenceFactory.html">geos::geom::CoordinateSequenceFactory</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <h1>geos::geom::CoordinateSequenceFactory Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::geom::CoordinateSequenceFactory" --> <p>A factory to create concrete instances of <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">CoordinateSequence</a>s. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="CoordinateSequenceFactory_8h_source.html">CoordinateSequenceFactory.h</a>></code></p> <div class="dynheader"> Inheritance diagram for geos::geom::CoordinateSequenceFactory:</div> <div class="dyncontent"> <div class="center"> <img src="classgeos_1_1geom_1_1CoordinateSequenceFactory.png" usemap="#geos::geom::CoordinateSequenceFactory_map" alt=""/> <map id="geos::geom::CoordinateSequenceFactory_map" name="geos::geom::CoordinateSequenceFactory_map"> <area href="classgeos_1_1geom_1_1CoordinateArraySequenceFactory.html" alt="geos::geom::CoordinateArraySequenceFactory" shape="rect" coords="0,56,276,80"/> </map> </div> <p><a href="classgeos_1_1geom_1_1CoordinateSequenceFactory-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">CoordinateSequence</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateSequenceFactory.html#a083d183cd5f616de6ffbdf93e90fe3df">create</a> (std::vector< <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> > *coordinates) const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html" title="The internal representation of a list of coordinates inside a Geometry.">CoordinateSequence</a> based on the given array. <a href="#a083d183cd5f616de6ffbdf93e90fe3df"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">CoordinateSequence</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateSequenceFactory.html#a88840abff33220622e599b2936e9c79a">create</a> (size_t size, size_t dimension) const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html" title="The internal representation of a list of coordinates inside a Geometry.">CoordinateSequence</a> of the specified size and dimension. <a href="#a88840abff33220622e599b2936e9c79a"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>A factory to create concrete instances of <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">CoordinateSequence</a>s. </p> <p>Used to configure <a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html">GeometryFactory</a>s to provide specific kinds of CoordinateSequences. </p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a083d183cd5f616de6ffbdf93e90fe3df"></a><!-- doxytag: member="geos::geom::CoordinateSequenceFactory::create" ref="a083d183cd5f616de6ffbdf93e90fe3df" args="(std::vector< Coordinate > *coordinates) const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">CoordinateSequence</a>* geos::geom::CoordinateSequenceFactory::create </td> <td>(</td> <td class="paramtype">std::vector< <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> > * </td> <td class="paramname"> <em>coordinates</em></td> <td> ) </td> <td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns a <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html" title="The internal representation of a list of coordinates inside a Geometry.">CoordinateSequence</a> based on the given array. </p> <p>Whether the array is copied or simply referenced is implementation-dependent. For this reason caller does give up ownership of it. Implementations that will not copy it will need take care of deleting it.</p> <p>This method must handle null arguments by creating an empty sequence.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>coordinates</em> </td><td>the coordinates </td></tr> </table> </dd> </dl> <p>Implemented in <a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequenceFactory.html#a023f302cbf03cb59c3729154ccb62075">geos::geom::CoordinateArraySequenceFactory</a>.</p> </div> </div> <a class="anchor" id="a88840abff33220622e599b2936e9c79a"></a><!-- doxytag: member="geos::geom::CoordinateSequenceFactory::create" ref="a88840abff33220622e599b2936e9c79a" args="(size_t size, size_t dimension) const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">CoordinateSequence</a>* geos::geom::CoordinateSequenceFactory::create </td> <td>(</td> <td class="paramtype">size_t </td> <td class="paramname"> <em>size</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>dimension</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates a <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html" title="The internal representation of a list of coordinates inside a Geometry.">CoordinateSequence</a> of the specified size and dimension. </p> <p>For this to be useful, the <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html" title="The internal representation of a list of coordinates inside a Geometry.">CoordinateSequence</a> implementation must be mutable.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>the number of coordinates in the sequence </td></tr> <tr><td valign="top"></td><td valign="top"><em>dimension</em> </td><td>the dimension of the coordinates in the sequence (if user-specifiable, otherwise ignored) </td></tr> </table> </dd> </dl> <p>Implemented in <a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequenceFactory.html#a2546707f1d0e59ed2a7212fbcf4bf30f">geos::geom::CoordinateArraySequenceFactory</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="CoordinateSequenceFactory_8h_source.html">CoordinateSequenceFactory.h</a></li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Thu Jul 22 2010 for GEOS by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>