MySQL  8.0.23
Source Code Documentation
gis::Cartesian_multipolygon Class Reference

A Cartesian 2d multipolygon. More...

#include <geometries_cs.h>

Inheritance diagram for gis::Cartesian_multipolygon:
gis::Multipolygon gis::Multisurface gis::Geometrycollection gis::Geometry

Public Member Functions

 Cartesian_multipolygon ()
Coordinate_system coordinate_system () const override
 Gets the coordinate system. More...
bool accept (Geometry_visitor *v) override
 Applies a hierarchical visitor to this geometry. More...
bool is_empty () const override
 Check if this is an empty geometry. More...
void push_back (const Geometry &g) override
 Adds a geometry to the collection. More...
void push_back (Geometry &&g) override
bool empty () const override
 Checks if the collection is empty. More...
std::size_t size () const override
 Returns the size of the geometrycollection. More...
void resize (std::size_t count) override
 Resizes the geometrycollection to contain a given number of elements. More...
void clear () noexcept override
 Removes all geometries from the geometrycollection. More...
iterator begin () noexcept
const_iterator begin () const noexcept
iterator end () noexcept
const_iterator end () const noexcept
Cartesian_polygonoperator[] (std::size_t i) override
const Geometryoperator[] (std::size_t i) const override
- Public Member Functions inherited from gis::Multipolygon
Geometry_type type () const override
 Gets the geometry type of the object. More...
- Public Member Functions inherited from gis::Geometry
 Geometry ()=default
virtual ~Geometry ()=default
 Geometry (const Geometry &)=default
Geometryoperator= (const Geometry &)=default

Public Attributes

decltype(m_polygons) typedef ::value_type value_type
decltype(m_polygons) typedef ::iterator iterator
decltype(m_polygons) typedef ::const_iterator const_iterator

Private Attributes

std::vector< Cartesian_polygon, Malloc_allocator< Cartesian_polygon > > m_polygons
 List of polygons in the collection. More...

Detailed Description

A Cartesian 2d multipolygon.

Constructor & Destructor Documentation

◆ Cartesian_multipolygon()

gis::Cartesian_multipolygon::Cartesian_multipolygon ( )

Member Function Documentation

◆ accept()

bool gis::Cartesian_multipolygon::accept ( Geometry_visitor v)

Applies a hierarchical visitor to this geometry.

See also
vA hierarchical visitor.
Return values
trueThe execution was aborted by the visitor.
falseThe execution completed.

Implements gis::Multipolygon.

◆ begin() [1/2]

const_iterator gis::Cartesian_multipolygon::begin ( ) const

◆ begin() [2/2]

iterator gis::Cartesian_multipolygon::begin ( )

◆ clear()

void gis::Cartesian_multipolygon::clear ( )

Removes all geometries from the geometrycollection.

Implements gis::Geometrycollection.

◆ coordinate_system()

Coordinate_system gis::Cartesian_multipolygon::coordinate_system ( ) const

Gets the coordinate system.

The coordiante system type.

Implements gis::Geometry.

◆ empty()

bool gis::Cartesian_multipolygon::empty ( ) const

Checks if the collection is empty.

Return values
trueThe polygon is empty.
falseThe polygon is not empty.

Implements gis::Geometrycollection.

◆ end() [1/2]

const_iterator gis::Cartesian_multipolygon::end ( ) const

◆ end() [2/2]

iterator gis::Cartesian_multipolygon::end ( )

◆ is_empty()

bool gis::Cartesian_multipolygon::is_empty ( ) const

Check if this is an empty geometry.

The definition of empty geometries is the one in SFA-CA (OGC 06-103r4, Sect., i.e., an empty point set.

This is different from the function "empty", which returns true if a geometry contains no subgeometries. E.g., a geometry collection may contain another geometry collection which is empty. In this case, the "empty" function would return false on the outermost geometry collection, while "is_empty" would return true.
Return values
trueThe geometry represents the empty point set.
falseThe geometry represent a non-empty point set.

Implements gis::Geometry.

◆ operator[]() [1/2]

const Geometry& gis::Cartesian_multipolygon::operator[] ( std::size_t  i) const

◆ operator[]() [2/2]

Cartesian_polygon& gis::Cartesian_multipolygon::operator[] ( std::size_t  i)

◆ push_back() [1/2]

void gis::Cartesian_multipolygon::push_back ( const Geometry g)

Adds a geometry to the collection.

gThe geometry to add.

Implements gis::Geometrycollection.

◆ push_back() [2/2]

void gis::Cartesian_multipolygon::push_back ( Geometry &&  g)

◆ resize()

void gis::Cartesian_multipolygon::resize ( std::size_t  count)

Resizes the geometrycollection to contain a given number of elements.

If the new size is smaller than the current size, the remaining geometries are discarded.

[in]countThe new number of geometries.

Implements gis::Geometrycollection.

◆ size()

std::size_t gis::Cartesian_multipolygon::size ( ) const

Returns the size of the geometrycollection.

Number of geometries in the geometrycollection.

Implements gis::Geometrycollection.

Member Data Documentation

◆ const_iterator

decltype(m_polygons) typedef ::const_iterator gis::Cartesian_multipolygon::const_iterator

◆ iterator

decltype(m_polygons) typedef ::iterator gis::Cartesian_multipolygon::iterator

◆ m_polygons

std::vector<Cartesian_polygon, Malloc_allocator<Cartesian_polygon> > gis::Cartesian_multipolygon::m_polygons

List of polygons in the collection.

◆ value_type

decltype(m_polygons) typedef ::value_type gis::Cartesian_multipolygon::value_type

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