CASM  1.1.0
A Clusters Approach to Statistical Mechanics
IntegralCluster_json_io.hh
Go to the documentation of this file.
1 #ifndef CASM_IntegralCluster_json_io
2 #define CASM_IntegralCluster_json_io
3 
4 #include <memory>
5 
6 namespace CASM {
7 
8 class IntegralCluster;
9 struct IntegralClusterOrbitGenerator;
10 class Structure;
11 template <typename T>
12 class InputParser;
13 template <typename T>
14 struct jsonConstructor;
15 class jsonParser;
16 
18 jsonParser &to_json(IntegralCluster const &clust, jsonParser &json);
19 
21 void from_json(IntegralCluster &clust, jsonParser const &json);
22 
23 template <>
26  static IntegralCluster from_json(jsonParser const &json,
27  Structure const &prim);
28 };
29 
31 void parse(InputParser<IntegralCluster> &parser, Structure const &prim);
32 
33 } // namespace CASM
34 
35 #endif
Structure specifies the lattice and atomic basis of a crystal.
Definition: Structure.hh:30
Main CASM namespace.
Definition: APICommand.hh:8
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
void from_json(ClexDescription &desc, const jsonParser &json)
void parse(InputParser< ConfigEnumOptions > &parser, std::string method_name, PrimClex const &primclex, DataFormatterDictionary< Configuration > const &dict)
Helper struct for constructing objects that need additional data.
Definition: jsonParser.hh:548
static ReturnType from_json(const jsonParser &json)
Default from_json is equivalent to.
Definition: jsonParser.hh:551