18#include <cuspatial/cuda_utils.hpp>
19#include <cuspatial/detail/range/enumerate_range.cuh>
29template <
typename PartIterator,
typename VecIterator>
30class multilinestring_ref {
32 CUSPATIAL_HOST_DEVICE multilinestring_ref(PartIterator
part_begin,
60 CUSPATIAL_HOST_DEVICE
auto enumerate()
const {
return detail::enumerate_range{
begin(),
end()}; }
63 template <
typename IndexType>
64 CUSPATIAL_HOST_DEVICE
auto operator[](IndexType linestring_idx)
const;
67 PartIterator _part_begin;
68 PartIterator _part_end;
69 VecIterator _point_begin;
70 VecIterator _point_end;
75#include <cuspatial/detail/geometry_collection/multilinestring_ref.cuh>
CUSPATIAL_HOST_DEVICE auto end() const
返回指向 multilinestring 中最后一个 linestring 之后位置的迭代器。
CUSPATIAL_HOST_DEVICE bool is_empty() const
如果此 multilinestring 包含 0 个 linestring,则返回 true。
CUSPATIAL_HOST_DEVICE auto point_begin() const
返回指向 multilinestring 中第一个点的迭代器。
CUSPATIAL_HOST_DEVICE auto part_end() const
返回指向最后一个 linestring 之后位置的迭代器。
CUSPATIAL_HOST_DEVICE auto begin() const
返回指向 multilinestring 中第一个 linestring 的迭代器。
CUSPATIAL_HOST_DEVICE auto enumerate() const
返回 linestring 的枚举范围。
CUSPATIAL_HOST_DEVICE auto operator[](IndexType linestring_idx) const
返回 multilinestring 中的第 linestring_idx 个 linestring。
CUSPATIAL_HOST_DEVICE auto num_linestrings() const
返回 multilinestring 中 linestring 的数量。
CUSPATIAL_HOST_DEVICE auto size() const
返回 multilinestring 中 linestring 的数量。
CUSPATIAL_HOST_DEVICE auto point_end() const
返回指向 multilinestring 中最后一个点之后位置的迭代器。
CUSPATIAL_HOST_DEVICE auto part_begin() const
返回指向第一个 linestring 的迭代器。