Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
fishnet::geometry::DynamicGeometry Concept Reference

A geometry which carries its type at runtime instead of statically. More...

#include <IGeometry.hpp>

Concept definition

template<typename G>
concept fishnet::geometry::DynamicGeometry = fishnet::util::Object<G> && requires(const G & geometry){
{ geometry.geometryType() } -> std::convertible_to<GeometryType>;
}
A geometry which carries its type at runtime instead of statically.
Definition IGeometry.hpp:41
Helper concept which checks whether a class is an object, meaning it has a string representation,...
Definition ObjectConcepts.hpp:51

Detailed Description

A geometry which carries its type at runtime instead of statically.

The counterpart to Geometry: such a geometry models no single shape - it reports which one it holds instead - so it is not usable with the generic algorithms and has to be narrowed to a Geometry first. This is what lets a layer hold whatever its data source happens to contain.