Cabana 0.8.0-dev
 
Loading...
Searching...
No Matches
Cabana_Tuple.hpp File Reference

Tuple of single particle information to build AoSoA. More...

#include <Cabana_MemberTypes.hpp>
#include <Cabana_SoA.hpp>
#include <Kokkos_Core.hpp>
#include <cstdlib>
#include <type_traits>
Include dependency graph for Cabana_Tuple.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Cabana::is_tuple< T >
 Tuple static type checker. More...
 
struct  Cabana::Tuple< MemberTypes< Types... > >
 Tuple. More...
 

Namespaces

namespace  Cabana
 Core: particle data structures and algorithms.
 

Functions

template<std::size_t M, class Tuple_t>
KOKKOS_FORCEINLINE_FUNCTION std::enable_if< is_tuple< Tuple_t >::value, typenameTuple_t::templatemember_reference_type< M > >::type Cabana::get (Tuple_t &tp)
 Get Rank-0 non-const.
 
template<std::size_t M, class Tuple_t>
KOKKOS_FORCEINLINE_FUNCTION Tuple_t::template member_const_reference_type< M > Cabana::get (const Tuple_t &tp)
 Get Rank-0 const.
 
template<std::size_t M, class Tuple_t>
KOKKOS_FORCEINLINE_FUNCTION std::enable_if< is_tuple< Tuple_t >::value, typenameTuple_t::templatemember_reference_type< M > >::type Cabana::get (Tuple_t &tp, const std::size_t d0)
 Get Rank-1 non-const.
 
template<std::size_t M, class Tuple_t>
KOKKOS_FORCEINLINE_FUNCTION std::enable_if< is_tuple< Tuple_t >::value, typenameTuple_t::templatemember_const_reference_type< M > >::type Cabana::get (const Tuple_t &tp, const std::size_t d0)
 Get Rank-1 const.
 
template<std::size_t M, class Tuple_t>
KOKKOS_FORCEINLINE_FUNCTION std::enable_if< is_tuple< Tuple_t >::value, typenameTuple_t::templatemember_reference_type< M > >::type Cabana::get (Tuple_t &tp, const std::size_t d0, const std::size_t d1)
 Get Rank-2 non-const.
 
template<std::size_t M, class Tuple_t>
KOKKOS_FORCEINLINE_FUNCTION std::enable_if< is_tuple< Tuple_t >::value, typenameTuple_t::templatemember_const_reference_type< M > >::type Cabana::get (const Tuple_t &tp, const std::size_t d0, const std::size_t d1)
 Get Rank-2 const.
 
template<std::size_t M, class Tuple_t>
KOKKOS_FORCEINLINE_FUNCTION std::enable_if< is_tuple< Tuple_t >::value, typenameTuple_t::templatemember_reference_type< M > >::type Cabana::get (Tuple_t &tp, const std::size_t d0, const std::size_t d1, const std::size_t d2)
 Get Rank-3 non-const.
 
template<std::size_t M, class Tuple_t>
KOKKOS_FORCEINLINE_FUNCTION std::enable_if< is_tuple< Tuple_t >::value, typenameTuple_t::templatemember_const_reference_type< M > >::type Cabana::get (const Tuple_t &tp, const std::size_t d0, const std::size_t d1, const std::size_t d2)
 Get Rank-3 const.
 

Detailed Description

Tuple of single particle information to build AoSoA.