Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
cudf::detail::base_2dspan< T, RowType > Class Template Reference

Generic class for row-major 2D spans. Not compliant with STL container semantics/syntax. More...

#include <span.hpp>

Public Types

using size_type = std::pair< size_t, size_t >
 

Public Member Functions

constexpr base_2dspan (T *data, size_t rows, size_t columns) noexcept
 
 base_2dspan (T *data, size_type size) noexcept
 
constexpr auto data () const noexcept
 
constexpr auto size () const noexcept
 
constexpr auto count () const noexcept
 
constexpr bool is_empty () const noexcept
 
constexpr RowType< T, dynamic_extent > operator[] (size_t row) const
 
constexpr RowType< T, dynamic_extent > front () const
 
constexpr RowType< T, dynamic_extent > back () const
 
constexpr base_2dspan subspan (size_t first_row, size_t num_rows) const noexcept
 
constexpr RowType< T, dynamic_extent > flat_view ()
 
template<typename OtherT , template< typename, size_t > typename OtherRowType, std::enable_if_t< std::is_convertible_v< OtherRowType< OtherT, dynamic_extent >, RowType< T, dynamic_extent >>, void > * = nullptr>
constexpr base_2dspan (base_2dspan< OtherT, OtherRowType > const &other) noexcept
 

Static Public Member Functions

static constexpr size_t flatten_index (size_t row, size_t column, size_type size) noexcept
 

Protected Attributes

T * _data = nullptr
 
size_type _size {0, 0}
 

Detailed Description

template<typename T, template< typename, std::size_t > typename RowType>
class cudf::detail::base_2dspan< T, RowType >

Generic class for row-major 2D spans. Not compliant with STL container semantics/syntax.

The index operator returns the corresponding row.

Definition at line 241 of file span.hpp.


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