SpECTRE  v2024.09.29
protocols::StaticReturnApplyable Struct Reference

Protocol for a struct with a static apply function returning and taking arguments based on tags in return_tags and argument_tags type aliases. More...

#include <StaticReturnApplyable.hpp>

Classes

struct  test
 

Detailed Description

Protocol for a struct with a static apply function returning and taking arguments based on tags in return_tags and argument_tags type aliases.

struct Applyable : tt::ConformsTo<protocols::StaticReturnApplyable> {
using return_tags = tmpl::list<Tag1, TemplatedTag<T3>>;
using argument_tags = tmpl::list<TemplatedTag<T4>, Tag2>;
static void apply(const gsl::not_null<T1*> /*return1*/,
const gsl::not_null<T3*> /*return2*/,
const T4& /*argument1*/, const T2& /*argument2*/) {}
};
Require a pointer to not be a nullptr
Definition: Gsl.hpp:198
auto apply(F &&f, const ObservationBox< ComputeTagsList, DataBoxType > &observation_box, Args &&... args)
Apply the function object f using its nested argument_tags list of tags.
Definition: ObservationBox.hpp:238
Indicate a class conforms to the Protocol.
Definition: ProtocolHelpers.hpp:22

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