Celeritas  0.5.0-86+4a8eea4
Classes | Functions
JsonPimpl.hh File Reference
#include <nlohmann/json.hpp>
#include "corecel/Config.hh"
#include "corecel/Assert.hh"
This graph shows which files directly or indirectly include this file:

Classes

struct  celeritas::JsonPimpl
 Wrapper class for exporting JSON output. More...
 

Functions

template<class T >
void celeritas::to_json_pimpl (JsonPimpl *jp, T const &self)
 Helper function to write an object to JSON. More...
 
template<class T >
nlohmann::json celeritas::json_pimpl_output (T const &self)
 

Function Documentation

◆ to_json_pimpl()

template<class T >
void celeritas::to_json_pimpl ( JsonPimpl jp,
T const &  self 
)

Helper function to write an object to JSON.

This hides the "not configured" boilerplate.