Distributed Ranges
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
dr::sp::distributed_span< T, L > Class Template Reference
Inheritance diagram for dr::sp::distributed_span< T, L >:
Inheritance graph
[legend]
Collaboration diagram for dr::sp::distributed_span< T, L >:
Collaboration graph
[legend]

Public Types

using element_type = T
 
using value_type = std::remove_cv_t< T >
 
using segment_type = dr::sp::device_span< T, L >
 
using size_type = rng::range_size_t< segment_type >
 
using difference_type = rng::range_difference_t< segment_type >
 
using reference = rng::range_reference_t< segment_type >
 
using iterator = distributed_span_iterator< T, segment_type >
 

Public Member Functions

constexpr distributed_span (const distributed_span &) noexcept=default
 
constexpr distributed_spanoperator= (const distributed_span &) noexcept=default
 
template<rng::input_range R>
requires (dr::remote_range<rng::range_reference_t<R>>)
constexpr distributed_span (R &&segments)
 
template<dr::distributed_range R>
constexpr distributed_span (R &&r)
 
constexpr size_type size () const noexcept
 
constexpr size_type size_bytes () const noexcept
 
constexpr reference operator[] (size_type idx) const
 
constexpr bool empty () const noexcept
 
constexpr distributed_span subspan (size_type Offset, size_type Count=std::dynamic_extent) const
 
constexpr distributed_span first (size_type Count) const
 
constexpr distributed_span last (size_type Count) const
 
iterator begin ()
 
iterator end ()
 
constexpr reference front ()
 
constexpr reference back ()
 
std::span< segment_typesegments ()
 
std::span< const segment_typesegments () const
 

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