Celeritas 0.7.0-dev.245+develop.a7be925e
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
OrangeInput.hh File Reference

Input data structures for an ORANGE geometry. More...

#include <algorithm>
#include <iosfwd>
#include <map>
#include <variant>
#include <vector>
#include "corecel/io/Label.hh"
#include "geocel/BoundingBox.hh"
#include "OrangeData.hh"
#include "OrangeTypes.hh"
#include "surf/VariantSurface.hh"
#include "transform/VariantTransform.hh"

Classes

struct  celeritas::OrientedBoundingZoneInput
 Input definition for a single oriented bounding zone. More...
 
struct  celeritas::VolumeInput
 Input definition for a single ORANGE implementation volume. More...
 
struct  celeritas::DaughterInput
 Input definition a daughter universe embedded in a parent volume. More...
 
struct  celeritas::BackgroundInput
 Extra metadata for a unit's "background" volume. More...
 
struct  celeritas::UnitInput
 Input definition for a unit. More...
 
struct  celeritas::RectArrayInput
 Input definition for a rectangular array universe. More...
 
struct  celeritas::OrangeInput
 Construction definition for a full ORANGE geometry. More...
 

Typedefs

using celeritas::VariantUniverseInput = std::variant< UnitInput, RectArrayInput >
 Possible types of universe inputs.
 

Functions

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.
 

Detailed Description

Input data structures for an ORANGE geometry.

Todo:
This is a weird mix of input and built objects so we can't put it in inp . See discussion at https://github.com/celeritas-project/celeritas/pull/2045#discussion_r2437457681

Function Documentation

◆ operator>>()

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:

OrangeInput inp;
std::ifstream("foo.org.json") >> inp;