Celeritas  0.5.0-86+4a8eea4
Classes | Functions
RZMapFieldInput.hh File Reference
#include <iosfwd>
#include <vector>
#include "corecel/Config.hh"
#include "corecel/Assert.hh"
#include "corecel/Macros.hh"
#include "FieldDriverOptions.hh"
This graph shows which files directly or indirectly include this file:

Classes

struct  celeritas::RZMapFieldInput
 Input data for an magnetic R-Z vector field stored on an R-Z grid. More...
 

Functions

std::istream & celeritas::operator>> (std::istream &is, RZMapFieldInput &)
 Helper to read the field from a file or stream. More...
 
std::ostream & celeritas::operator<< (std::ostream &os, RZMapFieldInput const &)
 Helper to write the field to a file or stream.
 

Function Documentation

◆ operator>>()

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:

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