kokkos-utils 0.0.1
 
Loading...
Searching...
No Matches
type_list.hpp File Reference
#include "impl/Kokkos_Utilities.hpp"

Go to the source code of this file.

Classes

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

Namespaces

namespace  Kokkos
 
namespace  Kokkos::utils
 
namespace  Kokkos::utils::impl
 

Typedefs

Make a type list if it's not one already.
template<typename... Args>
using Kokkos::utils::impl::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 Kokkos::utils::impl::type_list_at_t = typename TypeListAt<I, T>::type
 
Transform a @c Kokkos::Impl::type_list.
template<template< typename > typename TransformerType, typename T>
using Kokkos::utils::impl::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 Kokkos::utils::impl::type_list_to_tuple_t = typename TypeListToTuple<T>::type
 

Functions

template<typename TypeList, typename Callable>
constexpr void Kokkos::utils::impl::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 Kokkos::utils::impl::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 Kokkos::utils::impl::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 Kokkos::utils::impl::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 Kokkos::utils::impl::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 Kokkos::utils::impl::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 Kokkos::utils::impl::type_list_all_v = type_list_all<UnaryPred, TypeList...>::value
 

Detailed Description

This file provides extensions to the Kokkos::Impl::type_list struct in Kokkos_Utilities.hpp.

Definition in file type_list.hpp.