kokkos-utils 0.0.1
 
Loading...
Searching...
No Matches
Kokkos::utils::impl Namespace Reference

Classes

struct  TransformTypeList
 
struct  TransformTypeList< TransformerType, Kokkos::Impl::type_list< Ts... > >
 
struct  TypeListAt
 
struct  TypeListAt< 0, Kokkos::Impl::type_list< Head, Tail... > >
 
struct  TypeListAt< I, Kokkos::Impl::type_list< Head, Tail... > >
 
struct  TypeListContains
 
struct  TypeListContains< T, Kokkos::Impl::type_list< Ts... > >
 
struct  TypeListIndex
 
struct  TypeListIndex< T, Kokkos::Impl::type_list< Head, Ts... > >
 
struct  TypeListIndex< T, Kokkos::Impl::type_list< T, Ts... > >
 
struct  TypeListSize
 
struct  TypeListSize< Kokkos::Impl::type_list< Ts... > >
 
struct  TypeListToTuple
 
struct  TypeListToTuple< Kokkos::Impl::type_list< Ts... > >
 

Concepts

concept  InstanceOf
 
concept  IsTypeOneOf
 Check if T is the same as one of the types Ts.
 

Typedefs

Get the @p I th type in a @c Kokkos::Impl::type_list.
template<size_t I, typename T>
using type_list_at_t = typename TypeListAt<I, T>::type
 
Transform a @c Kokkos::Impl::type_list.
template<template< typename > typename TransformerType, typename T>
using transform_type_list_t = typename TransformTypeList<TransformerType, T>::type
 
Convert a @c Kokkos::Impl::type_list into a @c std::tuple.
template<typename T>
using type_list_to_tuple_t = typename TypeListToTuple<T>::type
 

Functions

template<typename TypeList, typename Callable>
constexpr void for_each (Callable callable)
 Calls the instantiation of the call operator of a callable object for each type in a Kokkos::Impl::type_list.
 

Variables

Get the number of types in a @c Kokkos::Impl::type_list.
template<typename T>
constexpr size_t type_list_size_v = TypeListSize<T>::value
 
Whether a type is contained in a @c Kokkos::Impl::type_list.
template<typename T, typename S>
constexpr bool type_list_contains_v = TypeListContains<T, S>::value
 
Get the index of a type in a @c Kokkos::Impl::type_list.
template<typename T, typename S>
constexpr size_t type_list_index_v = TypeListIndex<T, S>::value
 
Check if a type is an instantiation of a given class template.
template<class T, template< typename... > class U>
constexpr bool is_instance_of_v = std::false_type{}
 
template<template< typename... > class U, typename... Vs>
constexpr bool is_instance_of_v< U< Vs... >, U > = std::true_type{}
 

Typedef Documentation

◆ transform_type_list_t

template<template< typename > typename TransformerType, typename T>
using Kokkos::utils::impl::transform_type_list_t = typename TransformTypeList<TransformerType, T>::type

Definition at line 70 of file type_list.hpp.

◆ type_list_at_t

template<size_t I, typename T>
using Kokkos::utils::impl::type_list_at_t = typename TypeListAt<I, T>::type

Definition at line 55 of file type_list.hpp.

◆ type_list_to_tuple_t

template<typename T>
using Kokkos::utils::impl::type_list_to_tuple_t = typename TypeListToTuple<T>::type

Definition at line 85 of file type_list.hpp.

Function Documentation

◆ for_each()

template<typename TypeList, typename Callable>
void Kokkos::utils::impl::for_each ( Callable callable)
constexpr

Calls the instantiation of the call operator of a callable object for each type in a Kokkos::Impl::type_list.

Definition at line 107 of file type_list.hpp.

Variable Documentation

◆ is_instance_of_v

template<class T, template< typename... > class U>
bool Kokkos::utils::impl::is_instance_of_v = std::false_type{}
inlineconstexpr

Definition at line 26 of file type_traits.hpp.

◆ is_instance_of_v< U< Vs... >, U >

template<template< typename... > class U, typename... Vs>
bool Kokkos::utils::impl::is_instance_of_v< U< Vs... >, U > = std::true_type{}
inlineconstexpr

Definition at line 29 of file type_traits.hpp.

◆ type_list_contains_v

template<typename T, typename S>
bool Kokkos::utils::impl::type_list_contains_v = TypeListContains<T, S>::value
inlineconstexpr

Definition at line 36 of file type_list.hpp.

◆ type_list_index_v

template<typename T, typename S>
size_t Kokkos::utils::impl::type_list_index_v = TypeListIndex<T, S>::value
inlineconstexpr

Definition at line 102 of file type_list.hpp.

◆ type_list_size_v

template<typename T>
size_t Kokkos::utils::impl::type_list_size_v = TypeListSize<T>::value
inlineconstexpr

Definition at line 24 of file type_list.hpp.