This class holds either a LineString3d or a Polygon3d. More...
#include <LineStringOrPolygon.h>
Public Types | |
using | Base = LineStringOrPolygonBase< LineString3d, Polygon3d > |
Public Member Functions | |
template<typename VisitorT > | |
decltype(auto) | applyVisitor (VisitorT visitor) |
apply a generic visitor More... | |
RuleParameter | asRuleParameter () const |
operator RuleParameter () const | |
![]() | |
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< LineString3d > | lineString () const |
return the managed linestring More... | |
LineStringOrPolygonBase ()=default | |
LineStringOrPolygonBase (const LineStringOrPolygonBase &rhs)=default | |
LineStringOrPolygonBase (LineString3d linestring) | |
LineStringOrPolygonBase (LineStringOrPolygonBase &&rhs)=default | |
LineStringOrPolygonBase (Polygon3d polygon) | |
operator const LineString3d & () const | |
convert to linestring (type is not checked) More... | |
operator const Polygon3d & () const | |
convert to polygon (type is not checked) More... | |
LineStringOrPolygonBase & | operator= (const LineStringOrPolygonBase &rhs)=default |
LineStringOrPolygonBase & | operator= (LineString3d linestring) |
LineStringOrPolygonBase & | operator= (LineStringOrPolygonBase &&rhs)=default |
LineStringOrPolygonBase & | operator= (Polygon3d poly) |
Optional< Polygon3d > | polygon () const |
get the managed polygon More... | |
~LineStringOrPolygonBase () noexcept=default | |
Additional Inherited Members | |
![]() | |
boost::variant< LineString3d, Polygon3d > | lsOrPoly_ |
This class holds either a LineString3d or a Polygon3d.
Definition at line 86 of file LineStringOrPolygon.h.
Definition at line 88 of file LineStringOrPolygon.h.
|
inline |
apply a generic visitor
Definition at line 98 of file LineStringOrPolygon.h.
|
inline |
Definition at line 91 of file LineStringOrPolygon.h.
|
inline |
Definition at line 90 of file LineStringOrPolygon.h.