CASM  1.1.0
A Clusters Approach to Statistical Mechanics
DoFSetIO.hh
Go to the documentation of this file.
1 #ifndef DOFSETIO_HH
2 #define DOFSETIO_HH
3 
5 
6 namespace CASM {
7 namespace xtal {
8 class SiteDoFSet;
9 class DoFSet;
10 } // namespace xtal
11 
12 class AnisoValTraits;
13 
14 template <>
15 struct jsonConstructor<xtal::SiteDoFSet> {
16  static xtal::SiteDoFSet from_json(const jsonParser &json,
17  AnisoValTraits const &traits);
18 };
19 
20 template <>
21 struct jsonConstructor<xtal::DoFSet> {
22  static xtal::DoFSet from_json(const jsonParser &json,
23  AnisoValTraits const &traits);
24 };
25 
26 jsonParser &to_json(xtal::SiteDoFSet const &_dof, jsonParser &json);
27 jsonParser &to_json(xtal::DoFSet const &_dof, jsonParser &json);
28 } // namespace CASM
29 
30 #endif
Specifies traits of (possibly) anisotropic crystal properties.
Main CASM namespace.
Definition: APICommand.hh:8
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
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