Represent a reference to a linestring stored in a structure of arrays. More...
Public Member Functions | |
CUSPATIAL_HOST_DEVICE | linestring_ref (VecIterator begin, VecIterator end) |
CUSPATIAL_HOST_DEVICE auto | num_segments () const |
Return the number of segments in the linestring. | |
CUSPATIAL_HOST_DEVICE auto | segment_begin () const |
Return iterator to the first segment of the linestring. | |
CUSPATIAL_HOST_DEVICE auto | segment_end () const |
Return iterator to one past the last segment. | |
CUSPATIAL_HOST_DEVICE auto | point_begin () const |
Return iterator to the first point of the linestring. | |
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 segment of the linestring. | |
CUSPATIAL_HOST_DEVICE auto | end () const |
Return iterator to one past the last segment. | |
CUSPATIAL_HOST_DEVICE auto | enumerate () |
Return an enumerated range to the segments. | |
template<typename IndexType > | |
CUSPATIAL_HOST_DEVICE auto | segment (IndexType segment_idx) const |
Return the segment_idx th segment in the linestring. | |
Protected Attributes | |
VecIterator | _point_begin |
VecIterator | _point_end |
Represent a reference to a linestring stored in a structure of arrays.
VecIterator | type of iterator to the underlying point array. |
Definition at line 29 of file linestring_ref.cuh.
|
inline |
Return iterator to the first segment of the linestring.
Definition at line 47 of file linestring_ref.cuh.
|
inline |
Return iterator to one past the last segment.
Definition at line 49 of file linestring_ref.cuh.
|
inline |
Return an enumerated range to the segments.
Definition at line 52 of file linestring_ref.cuh.
|
protected |
Definition at line 59 of file linestring_ref.cuh.
|
protected |
Definition at line 60 of file linestring_ref.cuh.