Represent a reference to a polygon stored in a structure of arrays. More...
Public Member Functions | |
CUSPATIAL_HOST_DEVICE | polygon_ref (RingIterator ring_begin, RingIterator ring_end, VecIterator point_begin, VecIterator point_end) |
CUSPATIAL_HOST_DEVICE auto | num_rings () const |
Return the number of rings in the polygon. | |
CUSPATIAL_HOST_DEVICE auto | size () const |
Return the number of rings in the polygon. | |
CUSPATIAL_HOST_DEVICE auto | ring_begin () const |
Return iterator to the first ring of the polygon. | |
CUSPATIAL_HOST_DEVICE auto | ring_end () const |
Return iterator to one past the last ring. | |
CUSPATIAL_HOST_DEVICE auto | point_begin () const |
Return iterator to the first point of the polygon. | |
CUSPATIAL_HOST_DEVICE auto | point_end () const |
Return iterator to one past the last point. | |
CUSPATIAL_HOST_DEVICE auto | 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. | |
template<typename IndexType > | |
CUSPATIAL_HOST_DEVICE auto | ring (IndexType ring_idx) const |
Return the ring_idx th ring in the polygon. | |
Protected Attributes | |
RingIterator | _ring_begin |
RingIterator | _ring_end |
VecIterator | _point_begin |
VecIterator | _point_end |
Represent a reference to a polygon stored in a structure of arrays.
VecIterator | type of iterator to the underlying point array. |
Definition at line 28 of file polygon_ref.cuh.
|
inline |
Return iterator to the first ring of the polygon.
Definition at line 52 of file polygon_ref.cuh.
|
inline |
Return iterator to one past the last ring.
Definition at line 54 of file polygon_ref.cuh.
|
inline |
Return the number of rings in the polygon.
Definition at line 39 of file polygon_ref.cuh.
|
protected |
Definition at line 63 of file polygon_ref.cuh.
|
protected |
Definition at line 64 of file polygon_ref.cuh.
|
protected |
Definition at line 61 of file polygon_ref.cuh.
|
protected |
Definition at line 62 of file polygon_ref.cuh.