|
SpECTRE
v2026.06.30
|
Holds options for a group of singleton components. More...
#include <ResourceInfo.hpp>
Classes | |
| struct | SingletonOption |
Public Types | |
| using | options |
Public Member Functions | |
| SingletonPack (const std::optional< SingletonInfoHolder< ParallelComponents > > &... singleton_info_holders, const Options::Context &={}) | |
| SingletonPack (const SingletonPack &)=default | |
| SingletonPack & | operator= (const SingletonPack &)=default |
| SingletonPack (SingletonPack &&)=default | |
| SingletonPack & | operator= (SingletonPack &&)=default |
| void | pup (PUP::er &p) |
| template<typename Component> | |
| const auto & | get () const |
| Get a const reference to the SingletonInfoHolder for the Component singleton. | |
Static Public Attributes | |
| static constexpr Options::String | help |
Friends | |
| template<typename... Components> | |
| bool | operator== (const SingletonPack< tmpl::list< Components... > > &lhs, const SingletonPack< tmpl::list< Components... > > &rhs) |
Holds options for a group of singleton components.
The info for each singleton in the ParallelComponents template pack is stored in an individual Parallel::SingletonInfoHolder.
You can pass Auto as an option for each singleton in an input file and each singleton will be constructed as a default Parallel::SingletonInfoHolder.
| using Parallel::SingletonPack< tmpl::list< ParallelComponents... > >::options |
|
staticconstexpr |