33 BasicStructure<Site>
read_prim(
const jsonParser &json);
88 void select(std::string key);
91 std::map<std::string, CompositionConverter>
standard;
92 std::map<std::string, CompositionConverter>
custom;
104 template<
typename OutputIterator>
120 template<
typename OutputIterator>
124 for(
auto it = json.
cbegin(); it != json.
cend(); ++it) {
126 *result++ = std::make_pair(it.name(), conv);
CompositionConverter curr
std::map< std::string, CompositionConverter > standard
void from_json(ClexDescription &desc, const jsonParser &json)
void select(std::string key)
Set this->curr using key.
void write_symgroup(const SymGroup &grp, jsonParser &json)
void write_prim(const BasicStructure< Site > &prim, fs::path filename, COORD_TYPE mode)
Write prim.json to file.
void write_chemical_reference(const ChemicalReference &chem_ref, fs::path filename)
const_iterator cend() const
Returns const_iterator to end of JSON object or JSON array.
BasicStructure< Site > read_prim(fs::path filename)
GenericOrbitree< SiteCluster > SiteOrbitree
void read(fs::path _filename)
Read CompositionAxes from file.
EigenIndex Index
For long integer indexing:
ChemicalReference read_chemical_reference(fs::path filename, const Structure &prim, double tol)
Read chemical reference states from JSON file.
OutputIterator read_composition_axes(OutputIterator result, const jsonParser &json)
Read standard axes from JSON, and output to std::map ...
void write_symop(const SymGroup &grp, Index i, jsonParser &j)
Convert between number of species per unit cell and parametric composition.
void write_basis(const SiteOrbitree &tree, const Structure &prim, jsonParser &json, double tol)
Write summary of basis functions.
void write(fs::path _filename)
Write CompositionAxes to file.
std::map< std::string, CompositionConverter > custom
const_iterator cbegin() const
Returns const_iterator to beginning of JSON object or JSON array.