1 #ifndef CASM_MappedProperties
2 #define CASM_MappedProperties
81 std::map<std::string, Eigen::MatrixXd>
global;
86 std::map<std::string, Eigen::MatrixXd>
site;
88 bool has_scalar(std::string
const &_name)
const;
90 double const &
scalar(std::string
const &_name)
const;
92 double &
scalar(std::string
const &_name);
155 return "direct_selection";
157 return "deformation_cost";
163 :
Option(_method, _name, -1.) {}
166 :
Option(_method,
"", _lattice_weight) {}
177 Option(
Method _method, std::string _name,
double _lattice_weight);
#define ENUM_TRAITS(ENUM)
#define ENUM_IO_DECL(ENUM)
Interface class to check and/or store path and last_write_time of file on disk. Used to determine if ...
bool operator==(const ScoreMappedProperties &B) const
const Option & option() const
bool operator!=(const ScoreMappedProperties &B) const
bool validate(const MappedProperties &obj) const
ScoreMappedProperties(Option _opt=Option(Method::minimum, "energy"))
Default uses minimum energy.
static std::string method_name(Method m)
double operator()(const MappedProperties &obj) const
GenericDatumFormatter< double, Result > score()
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
void from_json(ClexDescription &desc, const jsonParser &json)
double const & scalar(std::string const &_name) const
MappedProperties()
default construction sets init_config field to "import"
std::map< std::string, Eigen::MatrixXd > site
bool has_scalar(std::string const &_name) const
std::map< std::string, Eigen::MatrixXd > global
Option(Method _method=Method::minimum, std::string _name="energy")
Option(Method _method, double _lattice_weight=0.5)
Method method
Method for scoring.
std::string name
Property name or configname used for scoring.