SpECTRE
v2024.09.29
|
Mark a struct as a prefix tag by inheriting from this. More...
#include <Tag.hpp>
Mark a struct as a prefix tag by inheriting from this.
A prefix tag is used to create a new simple tag from another simple tag, and therefore should also be marked as a simple tag by inheriting from db::SimpleTag.
The primary reason to mark a simple tag as a prefix tag is that the name generated by db::tag_name will be constructed from the names of the prefix tag and the wrapped simple tag.
Derived Class Requires:
tag
of the wrapped simple tagtype
of the type of the item corresponding to the prefix tagA prefix tag may optionally specify a static std::string name()
method to override the default name produced by db::tag_name.
tag
type alias of a prefix tag.A PrefixTag tag has the structure: