Celeritas  0.5.0-86+4a8eea4
Classes | Typedefs | Functions
ObjectIO.json.hh File Reference
#include <memory>
#include <nlohmann/json.hpp>
#include "orange/transform/VariantTransform.hh"
#include "CsgTypes.hh"
This graph shows which files directly or indirectly include this file:

Classes

struct  nlohmann::adl_serializer< CelerSPObjConst >
 
struct  nlohmann::adl_serializer< CelerVarTransform >
 

Typedefs

using nlohmann::CelerSPObjConst = std::shared_ptr< celeritas::orangeinp::ObjectInterface const >
 
using nlohmann::CelerVarTransform = celeritas::VariantTransform
 

Functions

std::string celeritas::orangeinp::to_string (ObjectInterface const &obj)
 Get a JSON string representing an object. More...
 
template<OperatorToken Op>
void celeritas::orangeinp::to_json (nlohmann::json &j, JoinObjects< Op > const &obj)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, NegatedObject const &obj)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, PolyCone const &obj)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, PolyPrism const &obj)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, ShapeBase const &obj)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, SolidBase const &obj)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Transformed const &obj)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, PolySegments const &ps)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, SolidEnclosedAngle const &sea)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, IntersectRegionInterface const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Box const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Cone const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Cylinder const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Ellipsoid const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, GenPrism const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, InfWedge const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Parallelepiped const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Prism const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Sphere const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Involute const &cr)
 

Function Documentation

◆ to_json() [1/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Box const &  cr 
)

Write helper classes to JSON

◆ to_json() [2/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Cone const &  cr 
)

Write helper classes to JSON

◆ to_json() [3/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Cylinder const &  cr 
)

Write helper classes to JSON

◆ to_json() [4/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Ellipsoid const &  cr 
)

Write helper classes to JSON

◆ to_json() [5/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
GenPrism const &  cr 
)

Write helper classes to JSON

◆ to_json() [6/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
InfWedge const &  cr 
)

Write helper classes to JSON

◆ to_json() [7/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
IntersectRegionInterface const &  cr 
)

Write intersect regions to JSON

◆ to_json() [8/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Involute const &  cr 
)

Write helper classes to JSON

◆ to_json() [9/20]

template<OperatorToken Op>
void celeritas::orangeinp::to_json ( nlohmann::json &  j,
JoinObjects< Op > const &  obj 
)

Write objects to JSON

◆ to_json() [10/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
NegatedObject const &  obj 
)

Write objects to JSON

◆ to_json() [11/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Parallelepiped const &  cr 
)

Write helper classes to JSON

◆ to_json() [12/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
PolyCone const &  obj 
)

Write objects to JSON

◆ to_json() [13/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
PolyPrism const &  obj 
)

Write objects to JSON

◆ to_json() [14/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
PolySegments const &  ps 
)

Write helper classes to JSON

◆ to_json() [15/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Prism const &  cr 
)

Write helper classes to JSON

◆ to_json() [16/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
ShapeBase const &  obj 
)

Write objects to JSON

◆ to_json() [17/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
SolidBase const &  obj 
)

Write objects to JSON

◆ to_json() [18/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
SolidEnclosedAngle const &  sea 
)

Write helper classes to JSON

◆ to_json() [19/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Sphere const &  cr 
)

Write helper classes to JSON

◆ to_json() [20/20]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Transformed const &  obj 
)

Write objects to JSON

◆ to_string()

std::string celeritas::orangeinp::to_string ( ObjectInterface const &  )

Get a JSON string representing an object.

See also
ObjectInterface.hh