#include <configuration.h>
Return type of Configuration::take that automatically determines the target type.
This class is an implementation detail of Configuration and can be ignored by users of Configuration.
Definition at line 308 of file configuration.h.
Public Member Functions | |
Value (const Value &)=delete | |
If you want to copy this you're doing it wrong. More... | |
Value & | operator= (const Value &)=delete |
If you want to copy this you're doing it wrong. More... | |
template<typename T > | |
T | convert_for (const T &) const |
Convert the value to the type of the supplied argument. More... | |
template<typename T > | |
operator T () const | |
This function determines the type it is assigned to and calls YAML::Node::as<T>() with this type. More... | |
template<typename T > | |
operator std::vector< T > () const | |
Check conversion exceptions. More... | |
template<typename T , size_t N> | |
operator std::array< T, N > () const | |
Cast array of keys to a std::array of length N. More... | |
operator ReactionsBitSet () const | |
Set ReactionBitSet from configuration values. More... | |
operator MultiParticleReactionsBitSet () const | |
Set MultiParticleReactionsBitSet from configuration values. More... | |
operator std::set< ThermodynamicQuantity > () const | |
Set thermodynamic quantity from configuration values. More... | |
operator CalculationFrame () const | |
Set calculation frame from configuration values. More... | |
operator FermiMotion () const | |
(De-)Activate Fermi motion from configuration values. More... | |
operator DensityType () const | |
Set density type from configuration values. More... | |
operator ExpansionMode () const | |
Set expansion mode from configuration values. More... | |
operator DerivativesMode () const | |
Set DerivativesMode. More... | |
operator FieldDerivativesMode () const | |
Set FieldDerivatives mode. More... | |
operator SmearingMode () const | |
Set SmearingMode. More... | |
operator TimeStepMode () const | |
Set time step mode from configuration values. More... | |
operator BoxInitialCondition () const | |
Set initial condition for box setup from configuration values. More... | |
operator SphereInitialCondition () const | |
Set initial condition for sphere setup from configuration values. More... | |
operator NNbarTreatment () const | |
Set treatment of N-Nbar reactions from configuration values. More... | |
operator Sampling () const | |
Set cross-section sampling method from configuration values. More... | |
operator ThermalizationAlgorithm () const | |
Set algorithm for forced thermalization from configuration values. More... | |
operator CollisionCriterion () const | |
Set collision criterion from configuration values. More... | |
operator TotalCrossSectionStrategy () const | |
Set total cross section strategy from configuration values. More... | |
operator PseudoResonance () const | |
Set how pseudo-resonances are used from configuration values. More... | |
operator OutputOnlyFinal () const | |
Set OutputOnlyFinal for particles output from configuration values. More... | |
Private Member Functions | |
Value (const YAML::Node &n, const char *key) | |
Construct the Value wrapper from a YAML::Node. More... | |
Private Attributes | |
const YAML::Node | node_ |
a YAML leaf node More... | |
const char *const | key_ |
The key to be interpreted. More... | |
Friends | |
class | Configuration |
|
inlineprivate |
Construct the Value wrapper from a YAML::Node.
Definition at line 322 of file configuration.h.
|
delete |
If you want to copy this you're doing it wrong.
If you want to copy this you're doing it wrong.
|
inline |
Convert the value to the type of the supplied argument.
The argument itself is not used other than to determine its type. This function is necessary because in some situations the overload resolution rules lead to the correct conversion becoming hidden. Then you'll see a compiler error with a list of ambiguous constructor calls as candidates. Use this function as a workaround. Example:
Definition at line 364 of file configuration.h.
|
inline |
This function determines the type it is assigned to and calls YAML::Node::as<T>() with this type.
This makes reading values more convenient than calling as<type>() explicitly.
IncorrectTypeInAssignment |
Definition at line 377 of file configuration.h.
|
inline |
Check conversion exceptions.
IncorrectTypeInAssignment | in case type conversion failed. |
Definition at line 393 of file configuration.h.
|
inline |
Cast array of keys to a std::array of length N.
IncorrectTypeInAssignment | in case the number of keys does not match the length of the newly generated array. |
Definition at line 419 of file configuration.h.
|
inline |
Set ReactionBitSet from configuration values.
IncorrectTypeInAssignment | in case a reaction type that is not available is provided as a configuration value. |
Definition at line 443 of file configuration.h.
|
inline |
Set MultiParticleReactionsBitSet from configuration values.
IncorrectTypeInAssignment | in case a reaction type that is not available is provided as a configuration value. |
Definition at line 490 of file configuration.h.
|
inline |
Set thermodynamic quantity from configuration values.
IncorrectTypeInAssignment | in case a thermodynamic quantity that is not available is provided as a configuration value. |
Definition at line 524 of file configuration.h.
|
inline |
Set calculation frame from configuration values.
IncorrectTypeInAssignment | in case a calculation frame that is not available is provided as a configuration value. |
Definition at line 555 of file configuration.h.
|
inline |
(De-)Activate Fermi motion from configuration values.
IncorrectTypeInAssignment | in case a Fermi motion value that is not available is provided as a configuration value. |
Definition at line 579 of file configuration.h.
|
inline |
Set density type from configuration values.
IncorrectTypeInAssignment | in case a density type that is not available is provided as a configuration value. |
Definition at line 602 of file configuration.h.
|
inline |
Set expansion mode from configuration values.
IncorrectTypeInAssignment | in case an expansion mode that is not available is provided as a configuration value. |
Definition at line 636 of file configuration.h.
|
inline |
Set DerivativesMode.
Definition at line 659 of file configuration.h.
|
inline |
|
inline |
Set SmearingMode.
Definition at line 695 of file configuration.h.
|
inline |
Set time step mode from configuration values.
IncorrectTypeInAssignment | in case a time step mode that is not available is provided as a configuration value. |
Definition at line 719 of file configuration.h.
|
inline |
Set initial condition for box setup from configuration values.
IncorrectTypeInAssignment | in case an initial conditions that is not available is provided as a configuration value. |
Definition at line 739 of file configuration.h.
|
inline |
Set initial condition for sphere setup from configuration values.
IncorrectTypeInAssignment | in case an initial conditions that is not available is provided as a configuration value. |
Definition at line 763 of file configuration.h.
|
inline |
Set treatment of N-Nbar reactions from configuration values.
IncorrectTypeInAssignment | in case an N-Nbar treatment that is not available is provided as a configuration value. |
Definition at line 796 of file configuration.h.
|
inline |
Set cross-section sampling method from configuration values.
IncorrectTypeInAssignment | in case a sampling method that is not available is provided as a configuration value. |
Definition at line 823 of file configuration.h.
|
inline |
Set algorithm for forced thermalization from configuration values.
IncorrectTypeInAssignment | in case a thermalization algorithm that is not available is provided as a configuration value. |
Definition at line 846 of file configuration.h.
|
inline |
Set collision criterion from configuration values.
IncorrectTypeInAssignment | in case an collision criterion that is not available is provided as a configuration value. |
Definition at line 869 of file configuration.h.
|
inline |
Set total cross section strategy from configuration values.
IncorrectTypeInAssignment | in case a strategy that is not available is provided as a configuration value. |
Definition at line 892 of file configuration.h.
|
inline |
Set how pseudo-resonances are used from configuration values.
IncorrectTypeInAssignment | in case a key that is not available is provided as a configuration value. |
Definition at line 915 of file configuration.h.
|
inline |
Set OutputOnlyFinal for particles output from configuration values.
IncorrectTypeInAssignment | in case only_final value that is not available is provided as a configuration value. |
Definition at line 945 of file configuration.h.
|
friend |
Definition at line 309 of file configuration.h.
|
private |
|
private |
The key to be interpreted.
Definition at line 314 of file configuration.h.