Represent a reference to a multipolygon stored in a structure of arrays. More...
Public Member Functions | |
CUSPATIAL_HOST_DEVICE | multipolygon_ref (PartIterator part_begin, PartIterator part_end, RingIterator ring_begin, RingIterator ring_end, VecIterator point_begin, VecIterator point_end) |
CUSPATIAL_HOST_DEVICE auto | num_polygons () const |
Return the number of polygons in the multipolygon. | |
CUSPATIAL_HOST_DEVICE auto | size () const |
Return the number of polygons in the multipolygon. | |
CUSPATIAL_HOST_DEVICE bool | is_empty () const |
Returns true if the multipolygon contains 0 geometries. | |
CUSPATIAL_HOST_DEVICE auto | part_begin () const |
Return iterator to the first polygon. | |
CUSPATIAL_HOST_DEVICE auto | part_end () const |
Return iterator to one past the last polygon. | |
CUSPATIAL_HOST_DEVICE auto | ring_begin () const |
Return iterator to the first ring. | |
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 multipolygon. | |
CUSPATIAL_HOST_DEVICE auto | point_end () const |
Return iterator to one past the last point of the multipolygon. | |
CUSPATIAL_HOST_DEVICE auto | begin () const |
Return iterator to the first polygon of the multipolygon. | |
CUSPATIAL_HOST_DEVICE auto | end () const |
Return iterator to one past the last polygon of the multipolygon. | |
CUSPATIAL_HOST_DEVICE auto | enumerate () const |
Return an enumerated range to the polygons. | |
template<typename IndexType > | |
CUSPATIAL_HOST_DEVICE auto | operator[] (IndexType polygon_idx) const |
Return polygon_idx th polygon in the multipolygon. | |
Protected Attributes | |
PartIterator | _part_begin |
PartIterator | _part_end |
RingIterator | _ring_begin |
RingIterator | _ring_end |
VecIterator | _point_begin |
VecIterator | _point_end |
Represent a reference to a multipolygon stored in a structure of arrays.
PartIterator | type of iterator to the part offset array. |
RingIterator | type of iterator to the ring offset array. |
VecIterator | type of iterator to the underlying point array. |
Definition at line 31 of file multipolygon_ref.cuh.
|
inline |
Return iterator to the first polygon of the multipolygon.
Definition at line 63 of file multipolygon_ref.cuh.
|
inline |
Return iterator to one past the last polygon of the multipolygon.
Definition at line 65 of file multipolygon_ref.cuh.
|
inline |
Return an enumerated range to the polygons.
Definition at line 68 of file multipolygon_ref.cuh.
|
inline |
Returns true if the multipolygon contains 0 geometries.
Definition at line 45 of file multipolygon_ref.cuh.
|
inline |
Return the number of polygons in the multipolygon.
Definition at line 42 of file multipolygon_ref.cuh.
|
protected |
Definition at line 75 of file multipolygon_ref.cuh.
|
protected |
Definition at line 76 of file multipolygon_ref.cuh.
|
protected |
Definition at line 79 of file multipolygon_ref.cuh.
|
protected |
Definition at line 80 of file multipolygon_ref.cuh.
|
protected |
Definition at line 77 of file multipolygon_ref.cuh.
|
protected |
Definition at line 78 of file multipolygon_ref.cuh.