1 #ifndef SYMGROUPREPID_HH
2 #define SYMGROUPREPID_HH
28 throw std::runtime_error(std::string(
"SymGroupRepID initialized with out-of-bounds values!\n"));
Index rep_index() const
Index of SymGroupRep within the master group Used internally to MasterSymGroup to access the correct ...
void from_json(ClexDescription &desc, const jsonParser &json)
Type-safe ID object for communicating and accessing Symmetry representation info. ...
bool empty() const
Returns true if SymGroupRepID has not been initialized with valid group_index or rep_index.
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
bool is_identity() const
Returns true if SymGroupRepID corresponds to an Identity representation.
bool operator<(const ClexDescription &A, const ClexDescription &B)
Compare using name strings: A.name < B.name.
SymGroupRepID(Index _group_index, Index _rep_index)
Construct from group index (i.e., MasterSymGroup::group_index()) and representation index This constr...
bool operator!=(const UnitCellCoord &A, const UnitCellCoord &B)
Compare UnitCellCoord.
Index group_index() const
Index of master group in which the corresponding SymGroupRep is stored Used internally to MasterSymGr...
std::ostream & operator<<(std::ostream &_stream, const FormattedPrintable &_formatted)
bool operator==(const UnitCellCoord &A, const UnitCellCoord &B)
Compare UnitCellCoord.
EigenIndex Index
For long integer indexing:
bool get_else(T &t, const std::string &key, const T &default_value, Args...args) const
SymGroupRepID(Index _group_index, Index _rep_index, bool override)
Private constructor skips bounds checks – Used for identity() and default construction.
SymGroupRepID()
Default constructor initializes group_index and rep_index as out-of-bounds SymGroupRepID::empty() ret...
jsonParser const & from_json(jsonParser const &json)
Output internal state to JSON.
static SymGroupRepID identity(Index dim)
Static function to construct an ID for identity representations.
bool valid_index(Index i)