Celeritas  0.5.0-57+aeecb15
Macros | Functions
DebugIO.json.cc File Reference
#include "DebugIO.json.hh"
#include "corecel/cont/ArrayIO.hh"
#include "corecel/io/LabelIO.json.hh"
#include "corecel/math/QuantityIO.json.hh"
#include "corecel/sys/ActionRegistry.hh"
#include "celeritas/UnitTypes.hh"
#include "celeritas/geo/GeoParams.hh"
#include "celeritas/geo/GeoTrackView.hh"
#include "celeritas/global/CoreTrackView.hh"
#include "celeritas/phys/ParticleParams.hh"
#include "celeritas/phys/ParticleTrackView.hh"
#include "celeritas/track/SimTrackView.hh"
#include "CoreParams.hh"
#include "Debug.hh"

Macros

#define ASSIGN_TRANSFORMED(NAME, TRANSFORM)   j[#NAME] = TRANSFORM(view.NAME())
 
#define ASSIGN_TRANSFORMED_IF(NAME, TRANSFORM, COND)
 

Functions

void celeritas::to_json (nlohmann::json &j, CoreTrackView const &view)
 
void celeritas::to_json (nlohmann::json &j, GeoTrackView const &view)
 
void celeritas::to_json (nlohmann::json &j, ParticleTrackView const &view)
 
void celeritas::to_json (nlohmann::json &j, SimTrackView const &view)
 

Macro Definition Documentation

◆ ASSIGN_TRANSFORMED_IF

#define ASSIGN_TRANSFORMED_IF (   NAME,
  TRANSFORM,
  COND 
)
Value:
if (auto&& temp = view.NAME(); COND(temp)) \
{ \
j[#NAME] = TRANSFORM(temp); \
}