DPC++ Runtime
Runtime libraries for oneAPI DPC++
syclcompat::dim3 Class Reference

#include <syclcompat/dims.hpp>

Collaboration diagram for syclcompat::dim3:

Public Member Functions

 dim3 (const sycl::range< 3 > &r)
 
 dim3 (const sycl::range< 2 > &r)
 
 dim3 (const sycl::range< 1 > &r)
 
constexpr dim3 (size_t x, size_t y=1, size_t z=1)
 
constexpr size_t size () const
 
 operator sycl::range< 3 > () const
 
 operator sycl::range< 2 > () const
 
 operator sycl::range< 1 > () const
 

Public Attributes

const size_t x
 
const size_t y
 
const size_t z
 

Detailed Description

Definition at line 31 of file dims.hpp.

Constructor & Destructor Documentation

◆ dim3() [1/4]

syclcompat::dim3::dim3 ( const sycl::range< 3 > &  r)
inline

Definition at line 35 of file dims.hpp.

◆ dim3() [2/4]

syclcompat::dim3::dim3 ( const sycl::range< 2 > &  r)
inline

Definition at line 37 of file dims.hpp.

◆ dim3() [3/4]

syclcompat::dim3::dim3 ( const sycl::range< 1 > &  r)
inline

Definition at line 39 of file dims.hpp.

◆ dim3() [4/4]

constexpr syclcompat::dim3::dim3 ( size_t  x,
size_t  y = 1,
size_t  z = 1 
)
inlineconstexpr

Definition at line 41 of file dims.hpp.

Member Function Documentation

◆ operator sycl::range< 1 >()

syclcompat::dim3::operator sycl::range< 1 > ( ) const
inline

Definition at line 52 of file dims.hpp.

References x, y, and z.

◆ operator sycl::range< 2 >()

syclcompat::dim3::operator sycl::range< 2 > ( ) const
inline

Definition at line 46 of file dims.hpp.

References x, y, and z.

◆ operator sycl::range< 3 >()

syclcompat::dim3::operator sycl::range< 3 > ( ) const
inline

Definition at line 45 of file dims.hpp.

References x, y, and z.

◆ size()

constexpr size_t syclcompat::dim3::size ( ) const
inlineconstexpr

Definition at line 43 of file dims.hpp.

References x, y, and z.

Member Data Documentation

◆ x

const size_t syclcompat::dim3::x

◆ y

const size_t syclcompat::dim3::y

◆ z

const size_t syclcompat::dim3::z

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