1 #ifndef CASM_jsonIO_clex
2 #define CASM_jsonIO_clex
22 jsonParser &
to_json(
const ChemicalReferenceState &ref_state, jsonParser &json);
29 void from_json(ChemicalReferenceState &ref_state,
const jsonParser &json);
34 jsonParser &
to_json(
const HyperPlaneReference &
ref, jsonParser &json);
54 std::pair<Eigen::VectorXd, std::vector<ChemicalReferenceState> >
std::function< Eigen::VectorXd(const Configuration &)> InputFunction
void from_json(ClexDescription &desc, const jsonParser &json)
Structure specifies the lattice and atomic basis of a crystal.
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
std::pair< Eigen::VectorXd, std::vector< ChemicalReferenceState > > one_chemical_reference_from_json(const Structure &prim, const jsonParser &json)
Read chemical reference from one of 3 alternative forms.
static ReturnType from_json(const jsonParser &json)
Default from_json is equivalent to.
Helper struct for constructing objects that need additional data.
ChemicalReferenceState from_json< ChemicalReferenceState >(const jsonParser &json)
Read ChemicalReferenceState from: '{"A" : X, "B" : X, ..., "energy_per_species" : X }'...
Maps a Configuration to a scalar value via a hyperplane.