MySQL  8.0.22
Source Code Documentation
gis::Wkb_size_visitor Class Reference

A visitor that computes the size of a WKB representation of a geometry. More...

#include <wkb_size_visitor.h>

Inheritance diagram for gis::Wkb_size_visitor:
gis::Nop_visitor gis::Geometry_visitor

Public Member Functions

 Wkb_size_visitor ()
 Construct a new WKB visitor. More...
 
std::size_t size () const
 
bool visit_enter (Geometry *g) override
 Enters a compound geometry. More...
 
bool visit_enter (Linestring *ls) override
 
bool visit_enter (Linearring *lr) override
 
bool visit_enter (Polygon *py) override
 
bool visit_enter (Geometrycollection *gc) override
 
bool visit (Point *pt) override
 
- Public Member Functions inherited from gis::Nop_visitor
bool visit_enter (Curve *c) override
 
bool visit_enter (Surface *s) override
 
bool visit_enter (Multipoint *mpt) override
 
bool visit_enter (Multicurve *mc) override
 
bool visit_enter (Multilinestring *mls) override
 
bool visit_enter (Multisurface *ms) override
 
bool visit_enter (Multipolygon *mpy) override
 
bool visit (Geometry *) override
 Visits a geometry. More...
 
bool visit (Curve *c) override
 
bool visit (Linestring *ls) override
 
bool visit (Linearring *lr) override
 
bool visit (Surface *s) override
 
bool visit (Polygon *py) override
 
bool visit (Geometrycollection *gc) override
 
bool visit (Multipoint *mpt) override
 
bool visit (Multicurve *mc) override
 
bool visit (Multilinestring *mls) override
 
bool visit (Multisurface *ms) override
 
bool visit (Multipolygon *mpy) override
 
bool visit_leave (Geometry *) override
 Leaves a compound geometry. More...
 
bool visit_leave (Curve *c) override
 
bool visit_leave (Linestring *ls) override
 
bool visit_leave (Linearring *lr) override
 
bool visit_leave (Surface *s) override
 
bool visit_leave (Polygon *py) override
 
bool visit_leave (Geometrycollection *gc) override
 
bool visit_leave (Multipoint *mpt) override
 
bool visit_leave (Multicurve *mc) override
 
bool visit_leave (Multilinestring *mls) override
 
bool visit_leave (Multisurface *ms) override
 
bool visit_leave (Multipolygon *mpy) override
 
- Public Member Functions inherited from gis::Geometry_visitor
 Geometry_visitor ()
 
virtual ~Geometry_visitor ()
 

Private Attributes

std::size_t m_size
 The size of the geometry. More...
 

Detailed Description

A visitor that computes the size of a WKB representation of a geometry.

Constructor & Destructor Documentation

◆ Wkb_size_visitor()

gis::Wkb_size_visitor::Wkb_size_visitor ( )
inline

Construct a new WKB visitor.

Member Function Documentation

◆ size()

std::size_t gis::Wkb_size_visitor::size ( ) const
inline

◆ visit()

bool gis::Wkb_size_visitor::visit ( Point pt)
overridevirtual

Reimplemented from gis::Nop_visitor.

◆ visit_enter() [1/5]

bool gis::Wkb_size_visitor::visit_enter ( Geometry g)
overridevirtual

Enters a compound geometry.

This is called on entry to a compound geometry, i.e., all geometries except points.

Parameters
gThe geometry to visit.
Return values
trueDon't descend into children.
falseDescend into children.

Reimplemented from gis::Nop_visitor.

◆ visit_enter() [2/5]

bool gis::Wkb_size_visitor::visit_enter ( Linestring ls)
overridevirtual

Reimplemented from gis::Nop_visitor.

◆ visit_enter() [3/5]

bool gis::Wkb_size_visitor::visit_enter ( Linearring lr)
overridevirtual

Reimplemented from gis::Nop_visitor.

◆ visit_enter() [4/5]

bool gis::Wkb_size_visitor::visit_enter ( Polygon py)
overridevirtual

Reimplemented from gis::Nop_visitor.

◆ visit_enter() [5/5]

bool gis::Wkb_size_visitor::visit_enter ( Geometrycollection gc)
overridevirtual

Reimplemented from gis::Nop_visitor.

Member Data Documentation

◆ m_size

std::size_t gis::Wkb_size_visitor::m_size
private

The size of the geometry.


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