1#ifndef SQL_GIS_WKB_SIZE_VISITOR_H_INCLUDED
2#define SQL_GIS_WKB_SIZE_VISITOR_H_INCLUDED
Abstract superclass for all geometric objects.
Definition: geometries.h:100
A collection of geometries.
Definition: geometries.h:410
A ring-shaped linestring.
Definition: geometries.h:320
A string of connected line segments.
Definition: geometries.h:256
A visitor that implements the entire interface and does nothing.
Definition: geometry_visitor.h:122
bool visit_enter(Geometry *) override
Enters a compound geometry.
Definition: geometry_visitor.h:124
bool visit(Geometry *) override
Visits a geometry.
Definition: geometry_visitor.h:159
A 2d point.
Definition: geometries.h:150
A polygon consisting of an outer ring and zero or more interior rings defining holes in the polygon.
Definition: geometries.h:349
A visitor that computes the size of a WKB representation of a geometry.
Definition: wkb_size_visitor.h:34
bool visit_enter(Geometry *g) override
Enters a compound geometry.
Definition: wkb_size_visitor.cc:31
Wkb_size_visitor()
Construct a new WKB visitor.
Definition: wkb_size_visitor.h:41
bool visit(Point *pt) override
Definition: wkb_size_visitor.cc:66
std::size_t m_size
The size of the geometry.
Definition: wkb_size_visitor.h:37
std::size_t size() const
Definition: wkb_size_visitor.h:42
The geometries implement a hierarchical visitor pattern.