![]() |
MySQL 8.0.43
Source Code Documentation
|
A geographic (ellipsoidal) 2d linestring. More...
#include <geometries_cs.h>
Public Types | |
| typedef decltype(m_points) ::value_type | value_type |
| typedef decltype(m_points) ::iterator | iterator |
| typedef decltype(m_points) ::const_iterator | const_iterator |
Public Member Functions | |
| Geographic_linestring () | |
| 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... | |
| void | push_back (const Point &pt) override |
| Adds a point to the end of the linestring. More... | |
| void | push_back (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 | resize (std::size_t count) |
| void | clear () noexcept override |
| Removes all points from the linestring. More... | |
| Geographic_linestring * | clone () const override |
| Geographic_point & | back () override |
| Returns the last point of the linestring. More... | |
| const Geographic_point & | back () const override |
| iterator | begin () noexcept |
| const_iterator | begin () const noexcept |
| iterator | end () noexcept |
| const_iterator | end () const noexcept |
| Geographic_point & | front () override |
| Returns the first point of the linestring. More... | |
| const Geographic_point & | front () const override |
| Geographic_point & | operator[] (std::size_t i) override |
| const Geographic_point & | operator[] (std::size_t i) const override |
Public Member Functions inherited from gis::Linestring | |
| Geometry_type | type () const override |
| Gets the geometry type of the object. More... | |
| bool | is_empty () const override |
| Check if this is an empty geometry. More... | |
Public Member Functions inherited from gis::Geometry | |
| Geometry ()=default | |
| virtual | ~Geometry ()=default |
| Geometry (const Geometry &)=default | |
| Geometry & | operator= (const Geometry &)=default |
Protected Attributes | |
| std::vector< Geographic_point, Malloc_allocator< Geographic_point > > | m_points |
| String of points constituting the linestring. More... | |
Additional Inherited Members | |
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... | |
A geographic (ellipsoidal) 2d linestring.
The linestring follows the geodetic between each pair of points.
| typedef decltype(m_points) ::const_iterator gis::Geographic_linestring::const_iterator |
| typedef decltype(m_points) ::iterator gis::Geographic_linestring::iterator |
| typedef decltype(m_points) ::value_type gis::Geographic_linestring::value_type |
|
inline |
|
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::Linestring.
Reimplemented in gis::Geographic_linearring.
|
inlineoverridevirtual |
Implements gis::Linestring.
Reimplemented in gis::Geographic_linearring.
|
inlineoverridevirtual |
Returns the last point of the linestring.
Implements gis::Linestring.
Reimplemented in gis::Geographic_linearring.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineoverridevirtualnoexcept |
Removes all points from the linestring.
Implements gis::Linestring.
Reimplemented in gis::Geographic_linearring.
|
inlineoverridevirtual |
Implements gis::Linestring.
Reimplemented in gis::Geographic_linearring.
|
inlineoverridevirtual |
Gets the coordinate system.
Implements gis::Geometry.
Reimplemented in gis::Geographic_linearring.
|
overridevirtual |
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. |
Implements gis::Linestring.
Reimplemented in gis::Geographic_linearring.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineoverridevirtual |
Implements gis::Linestring.
Reimplemented in gis::Geographic_linearring.
|
inlineoverridevirtual |
Returns the first point of the linestring.
Implements gis::Linestring.
Reimplemented in gis::Geographic_linearring.
|
inlineoverridevirtual |
Implements gis::Linestring.
Reimplemented in gis::Geographic_linearring.
|
inlineoverridevirtual |
Implements gis::Linestring.
Reimplemented in gis::Geographic_linearring.
|
inlineoverridevirtual |
Removes a point from the front of the linestring.
Implements gis::Linestring.
Reimplemented in gis::Geographic_linearring.
|
overridevirtual |
Adds a point to the end of the linestring.
| pt | The point to add. |
Implements gis::Linestring.
Reimplemented in gis::Geographic_linearring.
|
overridevirtual |
Implements gis::Linestring.
Reimplemented in gis::Geographic_linearring.
|
inline |
|
inlineoverridevirtual |
Returns the size of (number of points in) the linestring.
Implements gis::Linestring.
Reimplemented in gis::Geographic_linearring.
|
protected |
String of points constituting the linestring.
The line starts in the first point, goes through all intermediate points, and ends in the last point.