SpECTRE  v2024.06.05
db::Access Class Referenceabstract

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)
 

Detailed Description

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.

Member Function Documentation

◆ print_types()

virtual std::string db::Access::print_types ( ) const
pure virtual

Print the expanded type aliases of the derived db::DataBox

Implemented in db::DataBox< tmpl::list< Tags... > >.


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