Public Types | Public Member Functions | List of all members
cudf::host_span< T, Extent > Struct Template Reference
Inheritance diagram for cudf::host_span< T, Extent >:
cudf::detail::span_base< T, cudf::dynamic_extent, host_span< T, cudf::dynamic_extent > >

Public Types

using base = cudf::detail::span_base< T, Extent, host_span< T, Extent > >
 
- Public Types inherited from cudf::detail::span_base< T, cudf::dynamic_extent, host_span< T, cudf::dynamic_extent > >
using element_type = T
 
using value_type = std::remove_cv< T >
 
using size_type = std::size_t
 
using difference_type = std::ptrdiff_t
 
using pointer = T *
 
using iterator = T *
 
using const_pointer = T const *
 
using reference = T &
 
using const_reference = T const &
 

Public Member Functions

template<typename C , std::enable_if_t< is_host_span_supported_container< C >::value &&std::is_convertible_v< std::remove_pointer_t< decltype(thrust::raw_pointer_cast(std::declval< C & >().data()))>(*)[], T(*)[]> , * = nullptr>
constexpr host_span (C &in)
 
template<typename C , std::enable_if_t< is_host_span_supported_container< C >::value &&std::is_convertible_v< std::remove_pointer_t< decltype(thrust::raw_pointer_cast(std::declval< C & >().data()))>(*)[], T(*)[]> , * = nullptr>
constexpr host_span (C const &in)
 
template<typename OtherT , std::size_t OtherExtent, std::enable_if_t<(Extent==OtherExtent||Extent==dynamic_extent) &&std::is_convertible_v< OtherT(*)[], T(*)[]>, void > * = nullptr>
constexpr host_span (const host_span< OtherT, OtherExtent > &other) noexcept
 
- Public Member Functions inherited from cudf::detail::span_base< T, cudf::dynamic_extent, host_span< T, cudf::dynamic_extent > >
constexpr span_base (pointer data, size_type size)
 
constexpr span_base (span_base const &other) noexcept=default
 
constexpr span_baseoperator= (span_base const &other) noexcept=default
 
constexpr reference front () const
 
constexpr reference back () const
 
constexpr reference operator[] (size_type idx) const
 
constexpr iterator begin () const noexcept
 
constexpr iterator end () const noexcept
 
constexpr pointer data () const noexcept
 
constexpr size_type size () const noexcept
 
constexpr size_type size_bytes () const noexcept
 
constexpr bool empty () const noexcept
 
constexpr host_span< T, cudf::dynamic_extent > first (size_type count) const noexcept
 Obtains a subspan consisting of the first N elements of the sequence. More...
 
constexpr host_span< T, cudf::dynamic_extent > last (size_type count) const noexcept
 Obtains a subspan consisting of the last N elements of the sequence. More...
 
constexpr host_span< T, cudf::dynamic_extent > subspan (size_type offset, size_type count) const noexcept
 

Additional Inherited Members

- Static Public Attributes inherited from cudf::detail::span_base< T, cudf::dynamic_extent, host_span< T, cudf::dynamic_extent > >
static constexpr std::size_t extent
 

Detailed Description

template<typename T, std::size_t Extent = cudf::dynamic_extent>
struct cudf::host_span< T, Extent >

Definition at line 129 of file span.hpp.


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