1 #ifndef CASM_ConfigDatabaseTools_impl
2 #define CASM_ConfigDatabaseTools_impl
17 template <
typename EnumeratorType>
19 EnumeratorType
const &enumerator,
Configuration const &configuration,
25 configuration_db.
insert(configuration);
31 configuration_db, primitive_only);
virtual std::pair< iterator, bool > insert(const ValueType &obj)=0
bool is_guaranteed_for_database_insert(ConfigEnumAllOccupations const &enumerator)
ConfigInsertResult make_canonical_and_insert(Configuration const &configuration, Database< Supercell > &supercell_db, Database< Configuration > &configuration_db, bool primitive_only)
Insert this configuration (in primitive & canonical form) in the database.
Holds results of Configuration::insert.
bool insert_canonical
True if canonical configuration did not exist before insertion.
iterator primitive_it
Iterator pointing at primitive.
bool insert_primitive
True if primitive did not exist before insertion.
iterator canonical_it
Iterator pointing at canonical, if existing.