18#include <cuspatial/cuda_utils.hpp>
27template <
typename RingIterator,
typename VecIterator>
57 template <
typename IndexType>
58 CUSPATIAL_HOST_DEVICE
auto ring(IndexType ring_idx)
const;
61 RingIterator _ring_begin;
62 RingIterator _ring_end;
63 VecIterator _point_begin;
64 VecIterator _point_end;
69#include <cuspatial/detail/geometry/polygon_ref.cuh>
Represent a reference to a polygon stored in a structure of arrays.
CUSPATIAL_HOST_DEVICE auto point_end() const
Return iterator to one past the last point.
CUSPATIAL_HOST_DEVICE auto ring_begin() const
Return iterator to the first ring of the polygon.
CUSPATIAL_HOST_DEVICE auto end() const
Return iterator to one past the last ring.
CUSPATIAL_HOST_DEVICE auto ring_end() const
Return iterator to one past the last ring.
CUSPATIAL_HOST_DEVICE auto num_rings() const
Return the number of rings in the polygon.
CUSPATIAL_HOST_DEVICE auto begin() const
Return iterator to the first ring of the polygon.
CUSPATIAL_HOST_DEVICE auto point_begin() const
Return iterator to the first point of the polygon.
CUSPATIAL_HOST_DEVICE auto ring(IndexType ring_idx) const
Return the ring_idxth ring in the polygon.
CUSPATIAL_HOST_DEVICE auto size() const
Return the number of rings in the polygon.