|
Celeritas 0.7.0-dev.172+develop.fe2a0acd4
|
#include "OrangeInputIO.json.hh"#include <algorithm>#include <initializer_list>#include <string>#include <type_traits>#include <utility>#include <vector>#include "corecel/Assert.hh"#include "corecel/OpaqueIdIO.hh"#include "corecel/Types.hh"#include "corecel/cont/Array.hh"#include "corecel/cont/ArrayIO.json.hh"#include "corecel/cont/Range.hh"#include "corecel/cont/Span.hh"#include "corecel/io/JsonUtils.json.hh"#include "corecel/io/Label.hh"#include "corecel/io/LabelIO.json.hh"#include "corecel/io/Logger.hh"#include "geocel/BoundingBoxIO.json.hh"#include "OrangeTypes.hh"#include "OrangeTypesIO.json.hh"#include "detail/LogicUtils.hh"#include "detail/OrangeInputIOImpl.json.hh"Functions | |
| void | celeritas::from_json (nlohmann::json const &j, VolumeInput &value) |
| Read cell/volume data from an ORANGE JSON file. | |
| void | celeritas::to_json (nlohmann::json &j, VolumeInput const &value) |
| Write cell/volume data to an ORANGE JSON file. | |
| void | celeritas::from_json (nlohmann::json const &j, BackgroundInput &value) |
| Read background metadata from an ORANGE JSON file. | |
| void | celeritas::to_json (nlohmann::json &j, BackgroundInput const &value) |
| Write background metadata to an ORANGE JSON file. | |
| void | celeritas::from_json (nlohmann::json const &j, UnitInput &value) |
| Read a unit definition from an ORANGE input file. | |
| void | celeritas::to_json (nlohmann::json &j, UnitInput const &value) |
| Write a unit definition to an ORANGE input file. | |
| void | celeritas::from_json (nlohmann::json const &j, RectArrayInput &value) |
| Read a rectangular array universe definition from an ORANGE input file. | |
| void | celeritas::to_json (nlohmann::json &j, RectArrayInput const &value) |
| Write a rectangular array universe definition to an ORANGE input file. | |
| void | celeritas::from_json (nlohmann::json const &j, OrangeInput &value) |
| Read a partially preprocessed geometry definition from an ORANGE JSON file. | |
| void | celeritas::to_json (nlohmann::json &j, OrangeInput const &value) |
| Write an ORANGE input file. | |
| std::istream & | celeritas::operator>> (std::istream &is, OrangeInput &inp) |
| Helper to read the input from a file or stream. | |
| std::ostream & | celeritas::operator<< (std::ostream &os, OrangeInput const &inp) |
| Helper to write the input to a file or stream. | |
Read a unit definition from an ORANGE input file.
NOTE: 'cell' nomenclature is from SCALE export (version 0)
| std::istream & celeritas::operator>> | ( | std::istream & | is, |
| OrangeInput & | inp | ||
| ) |
Helper to read the input from a file or stream.
Example to read from a file: