CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <EnumInterface.hh>
Interface for casm enum
methods
Notes:
casm/app/enum/methods
for examples Definition at line 23 of file EnumInterface.hh.
Public Member Functions | |
virtual std::string | desc () const =0 |
virtual std::string | name () const =0 |
Enumeration method name (i.e. "ConfigEnumAllOccupations") More... | |
virtual void | run (PrimClex &primclex, jsonParser const &json_options, jsonParser const &cli_options_as_json) const =0 |
std::unique_ptr< Cloneable > | clone () const |
std::unique_ptr< Cloneable > | move () |
Private Member Functions | |
virtual Cloneable * | _clone () const =0 |
virtual Cloneable * | _move ()=0 |
|
privatepure virtualinherited |
|
privatepure virtualinherited |
|
inlineinherited |
Definition at line 92 of file cloneable_ptr.hh.
|
pure virtual |
Enumeration method description. What will be printed by casm enum --desc MethodName
.
Implemented in CASM::SuperConfigEnumInterface, CASM::ScelEnumInterface, CASM::ConfigEnumStrainInterface, CASM::ConfigEnumSiteDoFsInterface, CASM::ConfigEnumRandomOccupationsInterface, CASM::ConfigEnumRandomLocalInterface, and CASM::ConfigEnumAllOccupationsInterface.
|
inlineinherited |
Definition at line 95 of file cloneable_ptr.hh.
|
pure virtual |
Enumeration method name (i.e. "ConfigEnumAllOccupations")
Implemented in CASM::SuperConfigEnumInterface, CASM::ScelEnumInterface, CASM::ConfigEnumStrainInterface, CASM::ConfigEnumSiteDoFsInterface, CASM::ConfigEnumRandomOccupationsInterface, CASM::ConfigEnumRandomLocalInterface, and CASM::ConfigEnumAllOccupationsInterface.
|
pure virtual |
Enumeration method implementation
primclex | PrimClex gives access to project resources |
json_options | JSON input, as by –input or –settings CLI options |
cli_options_as_json | CLI options converted to JSON. Includes: –desc as "desc": array of string (method names to print help for) –help as "help": bool (print/return help, including list of available methods) –method as "method": string (name of enumeration method) –settings as "settings": string (path to settings JSON file) –input as "input": string (a JSON string) –min as "min": int (meaning depends on method, if any) –max as "max": int (meaning depends on method, if any) –all as "all": bool (meaning depends on method, if any) –scelnames as "scelnames": array of string (meaning depends on method, if any) –confignames as "confignames": array of string (meaning depends on method, if any) –verbosity as "verbosity": string (requested verbosity level) –filter as "filter": array of string (query expression used filter results) –dry-run as "dry_run": bool (if true, do not commit database upon completion) |
Notes:
json_options
and cli_options_as_json
, but by convention prefer using CLI input in case of collisions. Implemented in CASM::SuperConfigEnumInterface, CASM::ScelEnumInterface, CASM::ConfigEnumStrainInterface, CASM::ConfigEnumSiteDoFsInterface, CASM::ConfigEnumRandomOccupationsInterface, CASM::ConfigEnumRandomLocalInterface, and CASM::ConfigEnumAllOccupationsInterface.