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