|
Celeritas 0.7.0-dev.169+develop.bdc0041f6
|
#include "RZMapFieldInputIO.json.hh"#include <initializer_list>#include <ostream>#include <string>#include <vector>#include "corecel/Types.hh"#include "corecel/cont/Range.hh"#include "corecel/io/EnumStringMapper.hh"#include "corecel/io/JsonUtils.json.hh"#include "corecel/io/Logger.hh"#include "celeritas/Quantities.hh"#include "FieldDriverOptionsIO.json.hh"#include "RZMapFieldInput.hh"Macros | |
| #define | RZFI_LOAD(NAME) j.at(#NAME).get_to(inp.NAME) |
Functions | |
| void | celeritas::from_json (nlohmann::json const &j, RZMapFieldInput &inp) |
| Read field from JSON. | |
| void | celeritas::to_json (nlohmann::json &j, RZMapFieldInput const &inp) |
| Write field to JSON. | |
| std::istream & | celeritas::operator>> (std::istream &is, RZMapFieldInput &) |
| Helper to read the field from a file or stream. | |
| std::ostream & | celeritas::operator<< (std::ostream &os, RZMapFieldInput const &) |
| Helper to write the field to a file or stream. | |
| void celeritas::from_json | ( | nlohmann::json const & | j, |
| RZMapFieldInput & | inp | ||
| ) |
Read field from JSON.
| std::istream & celeritas::operator>> | ( | std::istream & | is, |
| RZMapFieldInput & | inp | ||
| ) |
Helper to read the field from a file or stream.
Example to read from a file: