10 for(
Index i = 0; i < json[
"sites"].
size(); i++) {
57 branch.
reserve(json[
"orbits"].size());
59 for(
Index i = 0; i < json[
"orbits"].
size(); i++) {
62 tproto.calc_properties();
76 if(branch.
pivot.size())
80 for(
Index i = 0; i < branch.
size(); i++) {
95 tree.
resize(json[
"branches"].size());
96 for(
Index i = 0; i < json[
"branches"].
size(); i++) {
113 json[
"lattice"] = tree.
lattice;
119 json[
"bspecs"] = tree.
bspecs();
size_type size() const
Returns array size if *this is a JSON array, object size if *this is a JSON object, 1 otherwise.
ClustJsonHelper< ValueType > jsonHelper(ValueType &_value, const Structure &_struc, double tol=TOL)
void from_json(ClexDescription &desc, const jsonParser &json)
void set_lattice(const Lattice &new_lat, COORD_TYPE mode)
sets lattice=new_lat and also updates all OrbitBranches, Orbits, and Clusters
double min_length() const
Structure specifies the lattice and atomic basis of a crystal.
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
void set_pivot(const ClustType &new_pivot)
void push_back(const Site &new_site)
void push_back(const GenericOrbit< ClustType > &new_orbit)
const MasterSymGroup & factor_group() const
void resize(Index NP)
Initialize NP orbitbranches in the Orbitree. Any existing orbits get deleted.
void collect_basis_info(const Structure &struc)
EigenIndex Index
For long integer indexing:
void set_bspecs(const jsonParser &_bspecs)
GenericOrbit< SiteCluster > SiteOrbit
const Structure & struc() const
double tol() const
Access orbitree tolerance.
CoordType get_site(const UnitCellCoord &ucc) const
UnitCellCoord get_unit_cell_coord(const CoordType2 &test_site, double tol=TOL) const
void reserve(Index new_max)
jsonParser & push_back(const T &value)
Puts new valued element at end of array of any type T for which 'jsonParser& to_json( const T &value...
bool contains(const std::string &name) const
Return true if JSON object contains 'name'.
Index size(Index no) const
How many equivalent clusters are int orbit 'no'.
jsonParser & put_array()
Puts new empty JSON array.
Index size(Index np) const
Number of orbits in OrbitBranch 'np'.
const jsonParser & bspecs() const
double max_length() const