CASM  1.1.0
A Clusters Approach to Statistical Mechanics
ConfigDoF_json_io.hh
Go to the documentation of this file.
1 #ifndef CASM_ConfigDoF_json_io
2 #define CASM_ConfigDoF_json_io
3 
4 #include <map>
5 #include <memory>
6 #include <vector>
7 
10 
11 namespace CASM {
12 
13 class ConfigDoF;
14 class Structure;
15 template <typename T>
16 struct jsonConstructor;
17 template <typename T>
18 struct jsonMake;
19 class jsonParser;
20 
21 template <>
23  static std::unique_ptr<ConfigDoF> make_from_json(const jsonParser &json,
24  Structure const &prim,
25  Index volume);
26 };
27 
28 template <>
30  static ConfigDoF from_json(jsonParser const &json, Structure const &prim,
31  Index volume);
32 };
33 
34 jsonParser &to_json(const ConfigDoF &configdof, jsonParser &json);
35 
36 void from_json(ConfigDoF &configdof, const jsonParser &json);
37 
38 } // namespace CASM
39 
40 #endif
Structure specifies the lattice and atomic basis of a crystal.
Definition: Structure.hh:30
GenericScelFormatter< double > volume()
Definition: SupercellIO.cc:258
Main CASM namespace.
Definition: APICommand.hh:8
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
void from_json(ClexDescription &desc, const jsonParser &json)
INDEX_TYPE Index
For long integer indexing:
Definition: definitions.hh:39
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
Helper struct for constructing objects that need additional data.
Definition: jsonParser.hh:564
static std::unique_ptr< ValueType > make_from_json(const jsonParser &json)
Default make_from_json is equivalent to.
Definition: jsonParser.hh:567