SpECTRE  v2024.04.12
Tags::DataBox Struct Reference

Tag used to retrieve the DataBox from the db::get function. More...

#include <DataBoxTag.hpp>

Public Types

using type = NoSuchType ****
 

Detailed Description

Tag used to retrieve the DataBox from the db::get function.

The main use of this tag is to allow fetching the DataBox from itself. The primary use case is to allow an invokable to take a DataBox as an argument when called through db::apply.

auto check_result_no_args = [](const decltype(original_box)& box) {
CHECK(db::get<test_databox_tags::Tag2>(box) == "My Sample String"s);
CHECK(db::get<test_databox_tags::Tag5>(box) == "My Sample String6.28"s);
};
db::apply<tmpl::list<Tags::DataBox>>(check_result_no_args, original_box);

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