SpECTRE
v2024.12.16
|
A class for retrieving items from a DataBox without needing to know all the tags in the box. More...
#include <Access.hpp>
Public Member Functions | |
virtual std::string | print_types () const =0 |
Print the expanded type aliases of the derived db::DataBox More... | |
Friends | |
template<typename Tag > | |
const auto & | get (const Access &box) |
Retrieve a tag from a db::Access | |
template<typename... MutateTags, typename Invokable , typename... Args> | |
decltype(auto) | mutate (Invokable &&invokable, gsl::not_null< Access * > box, Args &&... args) |
A class for retrieving items from a DataBox without needing to know all the tags in the box.
Retrieval is handled using a virtual function call but still uses Tags rather than strings to ensure automatic handling of casting to the expected type.
|
pure virtual |
Print the expanded type aliases of the derived db::DataBox
Implemented in db::DataBox< tmpl::list< Tags... > >.