MySQL 8.4.2
Source Code Documentation
|
Abstract visitor class to be used on class Geometry and descendants. More...
#include <geometry_visitor.h>
Public Member Functions | |
Geometry_visitor ()=default | |
virtual | ~Geometry_visitor ()=default |
virtual bool | visit_enter (Geometry *g)=0 |
Enters a compound geometry. More... | |
virtual bool | visit_enter (Curve *)=0 |
virtual bool | visit_enter (Linestring *)=0 |
virtual bool | visit_enter (Linearring *)=0 |
virtual bool | visit_enter (Surface *)=0 |
virtual bool | visit_enter (Polygon *)=0 |
virtual bool | visit_enter (Geometrycollection *)=0 |
virtual bool | visit_enter (Multipoint *)=0 |
virtual bool | visit_enter (Multicurve *)=0 |
virtual bool | visit_enter (Multilinestring *)=0 |
virtual bool | visit_enter (Multisurface *)=0 |
virtual bool | visit_enter (Multipolygon *)=0 |
virtual bool | visit (Geometry *g)=0 |
Visits a geometry. More... | |
virtual bool | visit (Point *)=0 |
virtual bool | visit (Curve *)=0 |
virtual bool | visit (Linestring *)=0 |
virtual bool | visit (Linearring *)=0 |
virtual bool | visit (Surface *)=0 |
virtual bool | visit (Polygon *)=0 |
virtual bool | visit (Geometrycollection *)=0 |
virtual bool | visit (Multipoint *)=0 |
virtual bool | visit (Multicurve *)=0 |
virtual bool | visit (Multilinestring *)=0 |
virtual bool | visit (Multisurface *)=0 |
virtual bool | visit (Multipolygon *)=0 |
virtual bool | visit_leave (Geometry *g)=0 |
Leaves a compound geometry. More... | |
virtual bool | visit_leave (Curve *)=0 |
virtual bool | visit_leave (Linestring *)=0 |
virtual bool | visit_leave (Linearring *)=0 |
virtual bool | visit_leave (Surface *)=0 |
virtual bool | visit_leave (Polygon *)=0 |
virtual bool | visit_leave (Geometrycollection *)=0 |
virtual bool | visit_leave (Multipoint *)=0 |
virtual bool | visit_leave (Multicurve *)=0 |
virtual bool | visit_leave (Multilinestring *)=0 |
virtual bool | visit_leave (Multisurface *)=0 |
virtual bool | visit_leave (Multipolygon *)=0 |
Abstract visitor class to be used on class Geometry and descendants.
A visitor will visit all elements of a compound geometry, always going down to each point unless the geometry is empty. E.g., when visiting a linestring, the visitor will descend into each point of the linestring.
The visitor can abort execution at any time. This is done by returning true from a visit() or visit_leave() function. If these functions return false, execution will continue. The accept() member function on geometries returns true if the visitor aborted execution and false otherwise.
|
default |
|
virtualdefault |
|
pure virtual |
|
pure virtual |
Visits a geometry.
This is called on each non-compound geometry and between visiting descendants. E.g., visit(Linestring *) will be called after visiting the first point in the linestring, then after visiting the second, etc., but not after visiting the last point.
g | The geometry to visit. |
true | Abort visitor execution. |
false | Continue visitor execution. |
Implemented in gis::Coordinate_range_visitor, gis::Nop_visitor, gis::Longitude_range_normalizer, gis::Wkb_size_visitor, and gis::Wkb_visitor.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Implemented in gis::Coordinate_range_visitor, gis::Nop_visitor, gis::Ring_flip_visitor, gis::Wkb_size_visitor, and gis::Wkb_visitor.
|
pure virtual |
Enters a compound geometry.
This is called on entry to a compound geometry, i.e., all geometries except points.
g | The geometry to visit. |
true | Don't descend into children. |
false | Descend into children. |
Implemented in gis::Coordinate_range_visitor, gis::Coordinate_range_visitor, gis::Nop_visitor, gis::Ring_flip_visitor, gis::Wkb_size_visitor, gis::Wkb_visitor, gis::Wkb_visitor, and gis::Wkb_size_visitor.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Implemented in gis::Coordinate_range_visitor, gis::Nop_visitor, gis::Ring_flip_visitor, gis::Wkb_size_visitor, and gis::Wkb_visitor.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Implemented in gis::Coordinate_range_visitor, gis::Nop_visitor, gis::Ring_flip_visitor, gis::Wkb_size_visitor, and gis::Wkb_visitor.
|
pure virtual |
|
pure virtual |
Implemented in gis::Coordinate_range_visitor, gis::Nop_visitor, gis::Ring_flip_visitor, gis::Wkb_size_visitor, and gis::Wkb_visitor.
|
pure virtual |
Implemented in gis::Nop_visitor.
|
pure virtual |
Leaves a compound geometry.
Called after visiting the last child of a compound geometry. The return value is returned to the accept() function.
g | The geometry to visit. |
true | Abort visitor execution. |
false | Continue visitor execution. |
Implemented in gis::Nop_visitor.
|
pure virtual |
Implemented in gis::Nop_visitor.
|
pure virtual |
Implemented in gis::Nop_visitor.
|
pure virtual |
Implemented in gis::Nop_visitor.
|
pure virtual |
Implemented in gis::Nop_visitor.
|
pure virtual |
Implemented in gis::Nop_visitor.
|
pure virtual |
Implemented in gis::Nop_visitor.
|
pure virtual |
Implemented in gis::Nop_visitor.
|
pure virtual |
Implemented in gis::Nop_visitor.
|
pure virtual |
Implemented in gis::Nop_visitor.
|
pure virtual |
Implemented in gis::Nop_visitor.