#include "eon/ParametersJSON.h"#include "eon/HelperFunctions.h"#include "eon/PIQTST.h"#include "eon/Parameters.h"#include "eon/ParametersINI.h"#include "magic_enum/magic_enum.hpp"#include <cctype>#include <cstdint>#include <format>#include <nlohmann/json.hpp>#include <sstream>#include <stdexcept>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | eonc |
| RAII resource manager for the ARTn C library with global synchronization. | |
| namespace | eonc::config |
Macros | |
| #define | JSON_OPT(j, key, target) |
Typedefs | |
| using | json = nlohmann::json |
Functions | |
| template<typename E> | |
| static json | enum_to_json (E val) |
| template<typename E> | |
| static E | enum_from_json (const json &j, E fallback) |
| json | eonc::config::to_json (const Parameters ¶ms) |
| Serialize all Parameters to JSON. | |
| static std::string | eonc::config::lowerCopy (std::string value) |
| static std::vector< double > | eonc::config::temperaturesFromJson (const json &value) |
| static void | eonc::config::readPathIntegralKeys (const json &s, Parameters &p) |
| static void | eonc::config::readBathKeys (const json &s, Parameters &p) |
| void | eonc::config::from_json (const nlohmann::json &j, Parameters ¶ms) |
| Deserialize JSON into Parameters, then resolve computed fields. | |
| int | eonc::config::load_json (std::string_view json_str, Parameters ¶ms) |
| Load Parameters from a JSON string. Returns 0 on success. | |
| #define JSON_OPT | ( | j, | |
| key, | |||
| target ) |
Definition at line 44 of file ParametersJSON.cpp.
| using json = nlohmann::json |
Definition at line 27 of file ParametersJSON.cpp.
|
static |
Definition at line 34 of file ParametersJSON.cpp.
|
static |
Definition at line 30 of file ParametersJSON.cpp.