alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::ThreadSpace< T_ThreadIdx, T_ThreadCount > Struct Template Reference

#include <ThreadSpace.hpp>

Public Types

using type = typename T_ThreadIdx::type

Public Member Functions

constexpr ThreadSpace (T_ThreadIdx const &threadIdx, T_ThreadCount const &threadCount)
constexpr auto idx () const
template<concepts::CVector T_CSelect>
requires (T_ThreadIdx::dim() > T_CSelect::dim())
constexpr auto mapTo (T_CSelect selection) const
template<concepts::CVector T_CSelect>
requires (T_ThreadIdx::dim() <= T_CSelect::dim())
constexpr ThreadSpace mapTo (T_CSelect selection) const
constexpr auto size () const
std::string toString (std::string const separator=",", std::string const enclosings="{}") const

Public Attributes

T_ThreadCount m_threadCount
T_ThreadIdx m_threadIdx

Detailed Description

template<concepts::Vector T_ThreadIdx, concepts::Vector T_ThreadCount>
struct alpaka::ThreadSpace< T_ThreadIdx, T_ThreadCount >

Definition at line 16 of file ThreadSpace.hpp.

Member Typedef Documentation

◆ type

template<concepts::Vector T_ThreadIdx, concepts::Vector T_ThreadCount>
using alpaka::ThreadSpace< T_ThreadIdx, T_ThreadCount >::type = typename T_ThreadIdx::type

Definition at line 100 of file ThreadSpace.hpp.

Constructor & Destructor Documentation

◆ ThreadSpace()

template<concepts::Vector T_ThreadIdx, concepts::Vector T_ThreadCount>
alpaka::ThreadSpace< T_ThreadIdx, T_ThreadCount >::ThreadSpace ( T_ThreadIdx const & threadIdx,
T_ThreadCount const & threadCount )
inlineconstexpr

Definition at line 18 of file ThreadSpace.hpp.

Member Function Documentation

◆ idx()

template<concepts::Vector T_ThreadIdx, concepts::Vector T_ThreadCount>
auto alpaka::ThreadSpace< T_ThreadIdx, T_ThreadCount >::idx ( ) const
inlineconstexpr

Definition at line 49 of file ThreadSpace.hpp.

◆ mapTo() [1/2]

template<concepts::Vector T_ThreadIdx, concepts::Vector T_ThreadCount>
template<concepts::CVector T_CSelect>
requires (T_ThreadIdx::dim() > T_CSelect::dim())
auto alpaka::ThreadSpace< T_ThreadIdx, T_ThreadCount >::mapTo ( T_CSelect selection) const
inlineconstexpr

Definition at line 63 of file ThreadSpace.hpp.

◆ mapTo() [2/2]

template<concepts::Vector T_ThreadIdx, concepts::Vector T_ThreadCount>
template<concepts::CVector T_CSelect>
requires (T_ThreadIdx::dim() <= T_CSelect::dim())
ThreadSpace alpaka::ThreadSpace< T_ThreadIdx, T_ThreadCount >::mapTo ( T_CSelect selection) const
inlineconstexpr

Definition at line 55 of file ThreadSpace.hpp.

◆ size()

template<concepts::Vector T_ThreadIdx, concepts::Vector T_ThreadCount>
auto alpaka::ThreadSpace< T_ThreadIdx, T_ThreadCount >::size ( ) const
inlineconstexpr

Definition at line 44 of file ThreadSpace.hpp.

◆ toString()

template<concepts::Vector T_ThreadIdx, concepts::Vector T_ThreadCount>
std::string alpaka::ThreadSpace< T_ThreadIdx, T_ThreadCount >::toString ( std::string const separator = ",",
std::string const enclosings = "{}" ) const
inline

Definition at line 24 of file ThreadSpace.hpp.

Member Data Documentation

◆ m_threadCount

template<concepts::Vector T_ThreadIdx, concepts::Vector T_ThreadCount>
T_ThreadCount alpaka::ThreadSpace< T_ThreadIdx, T_ThreadCount >::m_threadCount

Definition at line 98 of file ThreadSpace.hpp.

◆ m_threadIdx

template<concepts::Vector T_ThreadIdx, concepts::Vector T_ThreadCount>
T_ThreadIdx alpaka::ThreadSpace< T_ThreadIdx, T_ThreadCount >::m_threadIdx

Definition at line 97 of file ThreadSpace.hpp.


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