MySQL 8.0.39
Source Code Documentation
|
A Cartesian 2d linear ring. More...
#include <geometries_cs.h>
Public Member Functions | |
Geometry_type | type () const override |
Gets the geometry type of the object. More... | |
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 gis::Point &pt) override |
Adds a point to the end of the linestring. More... | |
void | push_back (gis::Point &&pt) override |
void | pop_front () override |
Removes a point from the front of the linestring. More... | |
bool | empty () const override |
Checks if the linestring is empty. More... | |
std::size_t | size () const override |
Returns the size of (number of points in) the linestring. More... | |
void | clear () noexcept override |
Removes all points from the linestring. More... | |
Cartesian_linestring * | clone () const override |
This implementation of clone() uses a broader return type than other implementations. More... | |
Cartesian_point & | back () override |
Returns the last point of the linestring. More... | |
const Cartesian_point & | back () const override |
Cartesian_point & | front () override |
Returns the first point of the linestring. More... | |
const Cartesian_point & | front () const override |
Cartesian_point & | operator[] (std::size_t i) override |
const Cartesian_point & | operator[] (std::size_t i) const override |
Public Member Functions inherited from gis::Cartesian_linestring | |
Cartesian_linestring () | |
void | resize (std::size_t count) |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
Public Member Functions inherited from gis::Geometry | |
Geometry ()=default | |
virtual | ~Geometry ()=default |
Geometry (const Geometry &)=default | |
Geometry & | operator= (const Geometry &)=default |
Additional Inherited Members | |
Public Types inherited from gis::Cartesian_linestring | |
typedef decltype(m_points) ::value_type | value_type |
typedef decltype(m_points) ::iterator | iterator |
typedef decltype(m_points) ::const_iterator | const_iterator |
Static Public Member Functions inherited from gis::Linestring | |
static Linestring * | create_linestring (Coordinate_system coordinate_system) |
Creates a subclass of Linestring from a Coordinate_system. More... | |
Static Public Member Functions inherited from gis::Linearring | |
static Linearring * | create_linearring (Coordinate_system coordinate_system) |
Creates a subclass of Linearring from a Coordinate_system. More... | |
Protected Attributes inherited from gis::Cartesian_linestring | |
std::vector< Cartesian_point, Malloc_allocator< Cartesian_point > > | m_points |
String of points constituting the linestring. More... | |
A Cartesian 2d linear ring.
|
overridevirtual |
Applies a hierarchical visitor to this geometry.
v | A hierarchical visitor. |
true | The execution was aborted by the visitor. |
false | The execution completed. |
Implements gis::Linearring.
|
inlineoverridevirtual |
Reimplemented from gis::Cartesian_linestring.
|
inlineoverridevirtual |
Returns the last point of the linestring.
Reimplemented from gis::Cartesian_linestring.
|
inlineoverridevirtualnoexcept |
Removes all points from the linestring.
Reimplemented from gis::Cartesian_linestring.
|
inlineoverridevirtual |
This implementation of clone() uses a broader return type than other implementations.
This is due to the restraint in some compilers, such as cl.exe, that overriding functions with ambiguous bases must have covariant return types.
Reimplemented from gis::Cartesian_linestring.
|
inlineoverridevirtual |
Gets the coordinate system.
Reimplemented from gis::Cartesian_linestring.
|
inlineoverridevirtual |
Checks if the linestring is empty.
Here, the definition of empty is that the linestring does not contain any points. An invalid linestring with only one coordinate is not empty.
true | The linestring is empty. |
false | The linestring is not empty. |
Reimplemented from gis::Cartesian_linestring.
|
inlineoverridevirtual |
Reimplemented from gis::Cartesian_linestring.
|
inlineoverridevirtual |
Returns the first point of the linestring.
Reimplemented from gis::Cartesian_linestring.
|
inlineoverridevirtual |
Check if this is an empty geometry.
The definition of empty geometries is the one in SFA-CA (OGC 06-103r4, Sect. 6.1.2.2), i.e., an empty point set.
true | The geometry represents the empty point set. |
false | The geometry represent a non-empty point set. |
Reimplemented from gis::Linestring.
|
inlineoverridevirtual |
Reimplemented from gis::Cartesian_linestring.
|
inlineoverridevirtual |
Reimplemented from gis::Cartesian_linestring.
|
inlineoverridevirtual |
Removes a point from the front of the linestring.
Reimplemented from gis::Cartesian_linestring.
|
inlineoverridevirtual |
Adds a point to the end of the linestring.
pt | The point to add. |
Reimplemented from gis::Cartesian_linestring.
|
inlineoverridevirtual |
Reimplemented from gis::Cartesian_linestring.
|
inlineoverridevirtual |
Returns the size of (number of points in) the linestring.
Reimplemented from gis::Cartesian_linestring.
|
inlineoverridevirtual |
Gets the geometry type of the object.
Reimplemented from gis::Linestring.