Skip to content

Core Tuple

Sam Reeve edited this page May 18, 2023 · 2 revisions

Overview

A Tuple holds a subset of particle fields together in a logical collection that has the ability to be contiguous in memory.

Implementation

Cabana_Tuple.hpp

Interface

template<typename... Types>
struct Tuple<MemberTypes<Types...> >

Template Parameters

  • Types: Define the datatypes to be stored in the Tuple via Cabana::MemberDataTypes. The types defined in Cabana::MemberDataTypes can be any POD type who's size is known at compile time or any type that is trivial.

Examples

Usage

  using T0 = float[3];
  using T1 = double;
  using DataTypes = Cabana::MemberTypes<T0,T1>;
  using Tuple_t = Cabana::Tuple<DataTypes>;

This is part of the Programming Guide series

Clone this wiki locally