#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 345 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 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 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... | |
Private Member Functions | |
Value (const YAML::Node &n, const char *key) | |
Constructs 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 |
Constructs the Value wrapper from a YAML::Node.
Definition at line 359 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 401 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 414 of file configuration.h.
|
inline |
Check conversion exceptions.
IncorrectTypeInAssignment | in case type conversion failed. |
Definition at line 430 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 456 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 480 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 517 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 548 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 572 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 595 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 629 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 656 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 676 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 696 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 726 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 749 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 772 of file configuration.h.
|
friend |
Definition at line 346 of file configuration.h.
|
private |
|
private |
The key to be interpreted.
Definition at line 351 of file configuration.h.