Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
cuspatial::linestring_ref< VecIterator > Class Template Reference

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_idxth segment in the linestring.
 

Protected Attributes

VecIterator _point_begin
 
VecIterator _point_end
 

Detailed Description

template<typename VecIterator>
class cuspatial::linestring_ref< VecIterator >

Represent a reference to a linestring stored in a structure of arrays.

Template Parameters
VecIteratortype of iterator to the underlying point array.

Definition at line 29 of file linestring_ref.cuh.

Member Function Documentation

◆ begin()

template<typename VecIterator >
CUSPATIAL_HOST_DEVICE auto cuspatial::linestring_ref< VecIterator >::begin ( ) const
inline

Return iterator to the first segment of the linestring.

Definition at line 47 of file linestring_ref.cuh.

◆ end()

template<typename VecIterator >
CUSPATIAL_HOST_DEVICE auto cuspatial::linestring_ref< VecIterator >::end ( ) const
inline

Return iterator to one past the last segment.

Definition at line 49 of file linestring_ref.cuh.

◆ enumerate()

template<typename VecIterator >
CUSPATIAL_HOST_DEVICE auto cuspatial::linestring_ref< VecIterator >::enumerate ( )
inline

Return an enumerated range to the segments.

Definition at line 52 of file linestring_ref.cuh.

Member Data Documentation

◆ _point_begin

template<typename VecIterator >
VecIterator cuspatial::linestring_ref< VecIterator >::_point_begin
protected

Definition at line 59 of file linestring_ref.cuh.

◆ _point_end

template<typename VecIterator >
VecIterator cuspatial::linestring_ref< VecIterator >::_point_end
protected

Definition at line 60 of file linestring_ref.cuh.


The documentation for this class was generated from the following file: