SFCGAL  2.3.0
Public Member Functions | Protected Member Functions | List of all members
SFCGAL::MultiLineString Class Reference

A MultiLineString in SFA. More...

#include <MultiLineString.h>

Inherits SFCGAL::GeometryImpl< Derived, Base >.

Public Member Functions

 MultiLineString ()
 Empty MultiLineString constructor. More...
 
 MultiLineString (const MultiLineString &other)
 Copy constructor. More...
 
MultiLineString & operator= (MultiLineString other)
 assign operator More...
 
 ~MultiLineString () override
 destructor More...
 
auto geometryType () const -> std::string override
 Get the geometry type as string. More...
 
auto geometryTypeId () const -> GeometryType override
 Get the geometry type identifier. More...
 
auto lineStringN (const size_t &n) -> LineString &
 returns the n-th Geometry as a LineString More...
 
auto lineStringN (const size_t &n) const -> const LineString &
 returns the n-th Geometry as a LineString More...
 
void accept (GeometryVisitor &visitor) override
 Accept a geometry visitor. More...
 
void accept (ConstGeometryVisitor &visitor) const override
 Accept a const geometry visitor. More...
 
template<class Archive >
void serialize (Archive &ar, const unsigned int)
 Serializer. More...
 

Protected Member Functions

auto isAllowed (Geometry const &geometry) -> bool override
 Check if geometry is allowed in this collection. More...
 

Detailed Description

A MultiLineString in SFA.

Constructor & Destructor Documentation

SFCGAL::MultiLineString::MultiLineString ( )
default

Empty MultiLineString constructor.

SFCGAL::MultiLineString::MultiLineString ( const MultiLineString &  other)

Copy constructor.

Parameters
otherThe multi-linestring to copy from
SFCGAL::MultiLineString::~MultiLineString ( )
overridedefault

destructor

Member Function Documentation

void SFCGAL::MultiLineString::accept ( GeometryVisitor &  visitor)
override

Accept a geometry visitor.

Parameters
visitorVisitor to accept
void SFCGAL::MultiLineString::accept ( ConstGeometryVisitor &  visitor) const
override

Accept a const geometry visitor.

Parameters
visitorConst visitor to accept
auto SFCGAL::MultiLineString::geometryType ( ) const -> std::string
override

Get the geometry type as string.

Returns
"MultiLineString"
auto SFCGAL::MultiLineString::geometryTypeId ( ) const -> GeometryType
override

Get the geometry type identifier.

Returns
TYPE_MULTILINESTRING
auto SFCGAL::MultiLineString::isAllowed ( Geometry const &  geometry) -> bool
overrideprotected

Check if geometry is allowed in this collection.

Parameters
geometryGeometry to test
Returns
true if geometry is a LineString
auto SFCGAL::MultiLineString::lineStringN ( const size_t &  n) -> LineString &
inline

returns the n-th Geometry as a LineString

Parameters
nThe index of the linestring to get
Returns
Reference to the nth linestring
auto SFCGAL::MultiLineString::lineStringN ( const size_t &  n) const -> const LineString &
inline

returns the n-th Geometry as a LineString

Parameters
nThe index of the linestring to get
Returns
Const reference to the nth linestring
auto SFCGAL::MultiLineString::operator= ( MultiLineString  other)

assign operator

Parameters
otherThe multi-linestring to assign from
Returns
Reference to this multi-linestring
template<class Archive >
void SFCGAL::MultiLineString::serialize ( Archive &  ar,
const unsigned  int 
)
inline

Serializer.

Parameters
arArchive for serialization