CASM  1.1.0
A Clusters Approach to Statistical Mechanics
SymGroupRepID.cc
Go to the documentation of this file.
2 
4 
5 namespace CASM {
6 
9  json.get_else(m_group_index, "group_index", Index(-1));
10  json.get_else(m_rep_index, "group_index", Index(-1));
11  return json;
12 }
13 
15  json["group_index"] = _id.group_index();
16  json["rep_index"] = _id.rep_index();
17  return json;
18 }
19 
20 jsonParser const &from_json(SymGroupRepID &_id, jsonParser const &json) {
21  return _id.from_json(json);
22 }
23 } // namespace CASM
Type-safe ID object for communicating and accessing Symmetry representation info.
Index rep_index() const
Index of SymGroupRep within the master group Used internally to MasterSymGroup to access the correct ...
Index group_index() const
Index of master group in which the corresponding SymGroupRep is stored Used internally to MasterSymGr...
jsonParser const & from_json(jsonParser const &json)
Output internal state to JSON.
Definition: SymGroupRepID.cc:8
bool get_else(T &t, const std::string &key, const T &default_value, Args &&... args) const
Definition: jsonParser.hh:775
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