10 const std::multimap<ORBIT_PRINT_MODE, std::vector<std::string> >
11 traits<ORBIT_PRINT_MODE>::strval = {
20 json[
"indent_space"] = opt.indent_space;
22 json[
"prec"] = opt.prec;
25 json[
"print_coordinates"] = opt.print_coordinates;
26 json[
"print_equivalence_map"] = opt.print_equivalence_map;
27 json[
"print_invariant_group"] = opt.print_invariant_group;
28 json[
"sym_info_opt"] = opt.sym_info_opt;
78 out.
ostream().flags(std::ios::showpoint | std::ios::fixed |
80 for (
const auto &coord : clust) {
82 vec = coord.coordinate(clust.prim()).cart();
83 else if (_mode ==
FRAC)
84 vec = coord.coordinate(clust.prim()).frac();
89 Eigen::IOFormat format(prec, width + 1);
90 for (
const auto &coord : clust) {
92 coord.site(clust.prim()).print(out, format);
100 out.
ostream().flags(std::ios::showpoint | std::ios::fixed |
102 for (
const auto &coord : clust) {
107 Eigen::IOFormat format(prec, width);
108 for (
const auto &coord : clust) {
#define ENUM_JSON_IO_DEF(ENUM)
#define ENUM_IO_DEF(ENUM)
std::string indent_str() const
jsonParser & put_obj()
Puts new empty JSON object.
COORD_MODE specifies the current coordinate mode (Fractional or Cartesian)
static COORD_TYPE CHECK()
get the current mode (call using COORD_MODE::CHECK())
static void print_occupant_dof(const std::vector< Molecule > &allowed_occupants, std::ostream &out_stream)
bool get_if(T &t, const std::string &key, Args &&... args) const
GenericDatumFormatter< std::string, ConfigEnumDataType > name()
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
const COORD_TYPE INTEGRAL
void from_json(ClexDescription &desc, const jsonParser &json)
const COORD_TYPE COORD_DEFAULT
Index print_matrix_width(std::ostream &s, const Derived &m, Index width)
SymInfoOptions sym_info_opt
ORBIT_PRINT_MODE orbit_print_mode
bool print_equivalence_map
bool print_invariant_group
void coord_type(Log &out)
PrinterBase(const OrbitPrinterOptions &_opt=OrbitPrinterOptions())
void print(const Element &element, Log &out) const
static ReturnType from_json(const jsonParser &json)
Default from_json is equivalent to.