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

Classes

struct  is_type_list
struct  is_type_list< Kokkos::Impl::type_list< T... > >
struct  make_type_list
struct  make_type_list< T >
struct  make_type_list< T, Ts... >
struct  TypeListSize
struct  TypeListSize< Kokkos::Impl::type_list< Ts... > >
struct  TypeListContains
struct  TypeListContains< U, T, Ts... >
 Specialization for a pack of types. More...
struct  TypeListContains< U, Kokkos::Impl::type_list< Ts... > >
 Specialization for a list of types given as Kokkos::Impl::type_list. More...
struct  TypeListAt
struct  TypeListAt< I, Kokkos::Impl::type_list< Head, Tail... > >
struct  TypeListAt< 0, Kokkos::Impl::type_list< Head, Tail... > >
struct  TransformTypeList
struct  TransformTypeList< TransformerType, Kokkos::Impl::type_list< Ts... > >
struct  TypeListToTuple
struct  TypeListToTuple< Kokkos::Impl::type_list< Ts... > >
struct  TypeListIndex
struct  TypeListIndex< T, Kokkos::Impl::type_list< T, Ts... > >
struct  TypeListIndex< T, Kokkos::Impl::type_list< Head, Ts... > >
struct  type_list_all
struct  type_list_all< UnaryPred, T, Ts... >
 Specialization for a pack of types. More...
struct  type_list_all< UnaryPred, Kokkos::Impl::type_list< Ts... > >
 Specialization for a list of types given as Kokkos::Impl::type_list. More...
struct  type_list_any
struct  type_list_any< UnaryPred, T, Ts... >
struct  type_list_any< UnaryPred, Kokkos::Impl::type_list< Ts... > >

Concepts

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

Typedefs

Make a type list if it's not one already.
template<typename... Args>
using make_type_list_t = typename make_type_list<Args...>::type
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

template<template< typename > typename UnaryPred, typename... TypeList>
constexpr bool type_list_any_v = type_list_any<UnaryPred, TypeList...>::value
Check if a type is a @c Kokkos::Impl::type_list.
template<typename T>
constexpr bool is_type_list_v = is_type_list<T>::value
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 U, typename... TypeList>
constexpr bool type_list_contains_v = TypeListContains<U, TypeList...>::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 that a predicate is @c true for all types in a type list.
template<template< typename > typename UnaryPred, typename... TypeList>
constexpr bool type_list_all_v = type_list_all<UnaryPred, TypeList...>::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

◆ make_type_list_t

template<typename... Args>
using Kokkos::utils::impl::make_type_list_t = typename make_type_list<Args...>::type

Definition at line 44 of file type_list.hpp.

◆ 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 107 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 92 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 122 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 213 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.

◆ is_type_list_v

template<typename T>
bool Kokkos::utils::impl::is_type_list_v = is_type_list<T>::value
inlineconstexpr

Definition at line 23 of file type_list.hpp.

◆ type_list_all_v

template<template< typename > typename UnaryPred, typename... TypeList>
bool Kokkos::utils::impl::type_list_all_v = type_list_all<UnaryPred, TypeList...>::value
inlineconstexpr

Definition at line 158 of file type_list.hpp.

◆ type_list_any_v

template<template< typename > typename UnaryPred, typename... TypeList>
bool Kokkos::utils::impl::type_list_any_v = type_list_any<UnaryPred, TypeList...>::value
inlineconstexpr

Definition at line 208 of file type_list.hpp.

◆ type_list_contains_v

template<typename U, typename... TypeList>
bool Kokkos::utils::impl::type_list_contains_v = TypeListContains<U, TypeList...>::value
inlineconstexpr

Definition at line 73 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 139 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 56 of file type_list.hpp.