Base class for objects that can either refer to linestrings or polygons. More...
#include <LineStringOrPolygon.h>
Public Member Functions | |
| template<typename VisitorT > | |
| decltype(auto) | applyVisitor (VisitorT visitor) const |
| apply a generic visitor More... | |
| const AttributeMap & | attributes () const |
| get the attributes of the linestring or polygon More... | |
| bool | equals (const LineStringOrPolygonBase &other) const |
| Id | id () const |
| get the id of the linestring or polygon More... | |
| bool | isLineString () const |
| true if this objct holds a lineString More... | |
| bool | isPolygon () const |
| true if this object holds an polygon More... | |
| Optional< LineStringT > | lineString () const |
| return the managed linestring More... | |
| LineStringOrPolygonBase ()=default | |
| LineStringOrPolygonBase (const LineStringOrPolygonBase &rhs)=default | |
| LineStringOrPolygonBase (LineStringOrPolygonBase &&rhs)=default | |
| LineStringOrPolygonBase (LineStringT linestring) | |
| LineStringOrPolygonBase (PolygonT polygon) | |
| operator const LineStringT & () const | |
| convert to linestring (type is not checked) More... | |
| operator const PolygonT & () const | |
| convert to polygon (type is not checked) More... | |
| LineStringOrPolygonBase & | operator= (const LineStringOrPolygonBase &rhs)=default |
| LineStringOrPolygonBase & | operator= (LineStringOrPolygonBase &&rhs)=default |
| LineStringOrPolygonBase & | operator= (LineStringT linestring) |
| LineStringOrPolygonBase & | operator= (PolygonT poly) |
| Optional< PolygonT > | polygon () const |
| get the managed polygon More... | |
| ~LineStringOrPolygonBase () noexcept=default | |
Protected Attributes | |
| boost::variant< LineStringT, PolygonT > | lsOrPoly_ |
Base class for objects that can either refer to linestrings or polygons.
Definition at line 11 of file LineStringOrPolygon.h.
|
default |
|
default |
|
default |
|
defaultnoexcept |
|
inline |
Definition at line 20 of file LineStringOrPolygon.h.
|
inline |
Definition at line 22 of file LineStringOrPolygon.h.
|
inline |
apply a generic visitor
Definition at line 47 of file LineStringOrPolygon.h.
|
inline |
get the attributes of the linestring or polygon
Definition at line 57 of file LineStringOrPolygon.h.
|
inline |
Definition at line 79 of file LineStringOrPolygon.h.
|
inline |
get the id of the linestring or polygon
Definition at line 52 of file LineStringOrPolygon.h.
|
inline |
true if this objct holds a lineString
Definition at line 37 of file LineStringOrPolygon.h.
|
inline |
true if this object holds an polygon
Definition at line 34 of file LineStringOrPolygon.h.
|
inline |
return the managed linestring
Definition at line 62 of file LineStringOrPolygon.h.
|
inlineexplicit |
convert to linestring (type is not checked)
Definition at line 40 of file LineStringOrPolygon.h.
|
inlineexplicit |
convert to polygon (type is not checked)
Definition at line 43 of file LineStringOrPolygon.h.
|
default |
|
default |
|
inline |
Definition at line 24 of file LineStringOrPolygon.h.
|
inline |
Definition at line 28 of file LineStringOrPolygon.h.
|
inline |
get the managed polygon
Definition at line 71 of file LineStringOrPolygon.h.
|
protected |
Definition at line 82 of file LineStringOrPolygon.h.