GEOS  3.6.1
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
geos::geom::GeometryList Class Reference

Manager of Geometry pointers. Owns the Geometries. More...

#include <GeometryList.h>

Public Types

typedef std::vector< Geometry * >::size_type size_type
 
typedef std::auto_ptr< GeometryListAutoPtr
 

Public Member Functions

void add (Geometry::AutoPtr geom)
 Add a geometry to the list (takes ownership)
 
size_type size () const
 Return number of geometries in this list.
 
Geometryoperator[] (size_type)
 Returned object lifetime is bound to GeometryList lifetime.
 
const Geometryoperator[] (size_type) const
 Returned object lifetime is bound to GeometryList lifetime.
 

Static Public Member Functions

static GeometryList::AutoPtr create ()
 Create an empty GeometryList.
 

Friends

class std::auto_ptr< GeometryList >
 auto_ptr needs to access private destructor
 

Detailed Description

Manager of Geometry pointers. Owns the Geometries.

Member Typedef Documentation

◆ AutoPtr

Only way to manage a GeometryList is trough this an auto_ptr<>.

See also
create()

The documentation for this class was generated from the following file: