SpECTRE
v2023.01.13
|
Mark a struct as a reference tag by inheriting from this. More...
#include <Tag.hpp>
Mark a struct as a reference tag by inheriting from this.
A reference tag is used to identify an item in a DataBox that is a const reference to a sub-item of another item (such as a Variables or GlobalCache) in the DataBox
Derived Class Requires:
base
that is the simple tag from which the reference tag is derivedparent_tag
that is the tag for the item from which the reference item is retrievedget
that, given the item fetched by parent_tag
, returns a const reference to the sub-itemargument_tags
that is tmpl::list<parent_tag>
A reference tag may optionally specify a static std::string name()
method to override the default name produced by db::tag_name.