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

Represent a reference to a multilinestring stored in a structure of arrays. More...

Public Member Functions

CUSPATIAL_HOST_DEVICE multilinestring_ref (PartIterator part_begin, PartIterator part_end, VecIterator point_begin, VecIterator point_end)
 
CUSPATIAL_HOST_DEVICE auto num_linestrings () const
 Return the number of linestrings in the multilinestring.
 
CUSPATIAL_HOST_DEVICE auto size () const
 Return the number of linestrings in the multilinestring.
 
CUSPATIAL_HOST_DEVICE bool is_empty () const
 Return true if this multilinestring contains 0 linestrings.
 
CUSPATIAL_HOST_DEVICE auto part_begin () const
 Return iterator to the first linestring.
 
CUSPATIAL_HOST_DEVICE auto part_end () const
 Return iterator to one past the last linestring.
 
CUSPATIAL_HOST_DEVICE auto point_begin () const
 Return iterator to the first point of the multilinestring.
 
CUSPATIAL_HOST_DEVICE auto point_end () const
 Return iterator to one past the last point of the multilinestring.
 
CUSPATIAL_HOST_DEVICE auto begin () const
 Return iterator to the first linestring of the multilinestring.
 
CUSPATIAL_HOST_DEVICE auto end () const
 Return iterator to one past the last linestring of the multilinestring.
 
CUSPATIAL_HOST_DEVICE auto enumerate () const
 Return an enumerated range to the linestrings.
 
template<typename IndexType >
CUSPATIAL_HOST_DEVICE auto operator[] (IndexType linestring_idx) const
 Return linestring_idxth linestring in the multilinestring.
 

Protected Attributes

PartIterator _part_begin
 
PartIterator _part_end
 
VecIterator _point_begin
 
VecIterator _point_end
 

Detailed Description

template<typename PartIterator, typename VecIterator>
class cuspatial::multilinestring_ref< PartIterator, VecIterator >

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

Template Parameters
PartIteratortype of iterator to the part offset array.
VecIteratortype of iterator to the underlying point array.

Definition at line 30 of file multilinestring_ref.cuh.

Member Function Documentation

◆ begin()

template<typename PartIterator , typename VecIterator >
CUSPATIAL_HOST_DEVICE auto cuspatial::multilinestring_ref< PartIterator, VecIterator >::begin ( ) const
inline

Return iterator to the first linestring of the multilinestring.

Definition at line 55 of file multilinestring_ref.cuh.

◆ end()

template<typename PartIterator , typename VecIterator >
CUSPATIAL_HOST_DEVICE auto cuspatial::multilinestring_ref< PartIterator, VecIterator >::end ( ) const
inline

Return iterator to one past the last linestring of the multilinestring.

Definition at line 57 of file multilinestring_ref.cuh.

◆ enumerate()

template<typename PartIterator , typename VecIterator >
CUSPATIAL_HOST_DEVICE auto cuspatial::multilinestring_ref< PartIterator, VecIterator >::enumerate ( ) const
inline

Return an enumerated range to the linestrings.

Definition at line 60 of file multilinestring_ref.cuh.

◆ is_empty()

template<typename PartIterator , typename VecIterator >
CUSPATIAL_HOST_DEVICE bool cuspatial::multilinestring_ref< PartIterator, VecIterator >::is_empty ( ) const
inline

Return true if this multilinestring contains 0 linestrings.

Definition at line 42 of file multilinestring_ref.cuh.

◆ size()

template<typename PartIterator , typename VecIterator >
CUSPATIAL_HOST_DEVICE auto cuspatial::multilinestring_ref< PartIterator, VecIterator >::size ( ) const
inline

Return the number of linestrings in the multilinestring.

Definition at line 39 of file multilinestring_ref.cuh.

Member Data Documentation

◆ _part_begin

template<typename PartIterator , typename VecIterator >
PartIterator cuspatial::multilinestring_ref< PartIterator, VecIterator >::_part_begin
protected

Definition at line 67 of file multilinestring_ref.cuh.

◆ _part_end

template<typename PartIterator , typename VecIterator >
PartIterator cuspatial::multilinestring_ref< PartIterator, VecIterator >::_part_end
protected

Definition at line 68 of file multilinestring_ref.cuh.

◆ _point_begin

template<typename PartIterator , typename VecIterator >
VecIterator cuspatial::multilinestring_ref< PartIterator, VecIterator >::_point_begin
protected

Definition at line 69 of file multilinestring_ref.cuh.

◆ _point_end

template<typename PartIterator , typename VecIterator >
VecIterator cuspatial::multilinestring_ref< PartIterator, VecIterator >::_point_end
protected

Definition at line 70 of file multilinestring_ref.cuh.


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