SpECTRE  v2024.09.29
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
TempBuffer< TagList, is_fundamental > Struct Template Reference

A TempBuffer holds a set of Tensor<DataType>s, where DataType is either a DataVector (or similar type) or a fundamental type, in a way that minimizes allocations. More...

Detailed Description

template<typename TagList, bool is_fundamental = std::is_fundamental_v< typename tmpl::front<TagList>::type::value_type>>
struct TempBuffer< TagList, is_fundamental >

A TempBuffer holds a set of Tensor<DataType>s, where DataType is either a DataVector (or similar type) or a fundamental type, in a way that minimizes allocations.

The user gets references to Tensors inside of the TempBuffer using, e.g., auto& variable = get<Tag>(temp_buffer), where Tag is one of the Tags in the TagList.

If DataType is a DataVector or similar, than TempBuffer is a Variables. If DataType is a fundamental type, then TempBuffer is a TaggedTuple.


The documentation for this struct was generated from the following file: