Celeritas 0.6.0-84+develop.c75a59b7
Loading...
Searching...
No Matches
Macros | Functions
ObjectIO.json.cc File Reference
#include "ObjectIO.json.hh"
#include <memory>
#include "corecel/cont/ArrayIO.json.hh"
#include "corecel/cont/SpanIO.json.hh"
#include "corecel/io/JsonPimpl.hh"
#include "CsgObject.hh"
#include "IntersectRegion.hh"
#include "ObjectInterface.hh"
#include "PolySolid.hh"
#include "Shape.hh"
#include "Solid.hh"
#include "StackedExtrudedPolygon.hh"
#include "Transformed.hh"
#include "Truncated.hh"

Macros

#define SIO_ATTR_PAIR(OBJ, ATTR)   {#ATTR, OBJ.ATTR()}
 

Functions

std::string celeritas::orangeinp::to_string (ObjectInterface const &obj)
 Get a JSON string representing an object.
 
template<OperatorToken Op>
void celeritas::orangeinp::to_json (nlohmann::json &j, JoinObjects< Op > const &obj)
 
template void celeritas::orangeinp::to_json (nlohmann::json &, JoinObjects< op_and > const &)
 
template void celeritas::orangeinp::to_json (nlohmann::json &, JoinObjects< op_or > const &)
 
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, StackedExtrudedPolygon const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Transformed const &obj)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Truncated const &tr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, PolySegments const &ps)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, EnclosedAzi const &azi)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, EnclosedPolar const &pol)
 
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, EllipticalCone const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, EllipticalCylinder const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, ExtrudedPolygon const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, GenPrism const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, InfPlane const &pa)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, InfAziWedge const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, InfPolarWedge const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Involute 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)
 

Function Documentation

◆ to_json() [1/30]

template void celeritas::orangeinp::to_json ( nlohmann::json &  ,
JoinObjects< op_and > const  
)

Write objects to JSON

◆ to_json() [2/30]

template void celeritas::orangeinp::to_json ( nlohmann::json &  ,
JoinObjects< op_or > const  
)

Write objects to JSON

◆ to_json() [3/30]

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

Write helper classes to JSON

◆ to_json() [4/30]

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

Write helper classes to JSON

◆ to_json() [5/30]

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

Write helper classes to JSON

◆ to_json() [6/30]

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

Write helper classes to JSON

◆ to_json() [7/30]

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

Write helper classes to JSON

◆ to_json() [8/30]

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

Write helper classes to JSON

◆ to_json() [9/30]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
EnclosedAzi const azi 
)

Write helper classes to JSON

◆ to_json() [10/30]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
EnclosedPolar const pol 
)

Write helper classes to JSON

◆ to_json() [11/30]

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

Write helper classes to JSON

◆ to_json() [12/30]

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

Write helper classes to JSON

◆ to_json() [13/30]

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

Write helper classes to JSON

◆ to_json() [14/30]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
InfPlane const pa 
)

Write helper classes to JSON

◆ to_json() [15/30]

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

Write helper classes to JSON

◆ to_json() [16/30]

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

Write intersect regions to JSON

◆ to_json() [17/30]

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

Write helper classes to JSON

◆ to_json() [18/30]

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

Write objects to JSON

◆ to_json() [19/30]

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

Write objects to JSON

◆ to_json() [20/30]

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

Write helper classes to JSON

◆ to_json() [21/30]

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

Write objects to JSON

◆ to_json() [22/30]

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

Write objects to JSON

◆ to_json() [23/30]

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

Write helper classes to JSON

◆ to_json() [24/30]

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

Write helper classes to JSON

◆ to_json() [25/30]

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

Write objects to JSON

◆ to_json() [26/30]

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

Write objects to JSON

◆ to_json() [27/30]

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

Write helper classes to JSON

◆ to_json() [28/30]

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

Write objects to JSON

◆ to_json() [29/30]

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

Write objects to JSON

◆ to_json() [30/30]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Truncated const tr 
)

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