1 #ifndef CASM_enum_enumerate_configurations
2 #define CASM_enum_enumerate_configurations
61 template <
typename EnumeratorType,
typename InitialStateType>
64 std::string
const &_initial_state_name,
65 InitialStateType
const &_initial_state,
66 EnumeratorType
const &_enumerator,
87 template <
typename MakeEnumeratorFunction,
typename InputNameValuePairIterator,
91 MakeEnumeratorFunction make_enumerator_f,
92 InputNameValuePairIterator name_value_pairs_begin,
93 InputNameValuePairIterator name_value_pairs_end,
PrimClex is the top-level data structure for a CASM project.
ConfigEnumData< ConfigEnumSiteDoFs, ConfigEnumInput > ConfigEnumDataType
void enumerate_configurations(PrimClex const &primclex, ConfigEnumOptions const &options, MakeEnumeratorFunction make_enumerator_f, InputNameValuePairIterator name_value_pairs_begin, InputNameValuePairIterator name_value_pairs_end, DataFormatter< ConfigEnumDataType > const &formatter)
Enumerate configurations.
INDEX_TYPE Index
For long integer indexing:
Index initial_state_index
ConfigEnumData(PrimClex const &_primclex, Index _initial_state_index, std::string const &_initial_state_name, InitialStateType const &_initial_state, EnumeratorType const &_enumerator, Configuration const &_configuration)
EnumeratorType const & enumerator
InitialStateType const & initial_state
Configuration const & configuration
PrimClex const & primclex
bool is_excluded_by_filter
ConfigInsertResult insert_result
std::string const & initial_state_name
Options for the enumerate_configurations function.
bool dry_run
If dry_run==true, do not save results, just print to screen.
int verbosity
Printing verbosity level.
FormattedDataFileOptions output_options
Options for construcing FormattedDataFile object.
std::string method_name
Method name, for printing progress.
std::function< bool(Configuration const &)> filter
If filter(configuration)==true, keep configuration, else skip.
ConfigEnumOptions(PrimClex const &primclex)
bool output_filtered_configurations
If true, include output for configurations that were filtered out.
std::string filter_expression
If not empty, expression used to construct filter.
PrimClex const * primclex_ptr
Use while transitioning Supercell to no longer need a PrimClex const *
bool output_configurations
Holds results of Configuration::insert.