CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <SymGroupRepID.hh>
Type-safe ID object for communicating and accessing Symmetry representation info.
SymGroupRepIDs can be returned by routines that creat a SymGroupRep inside the MasterSymGroup and then be shared among all objects that transform according to that representation. The representation can be accessed from the MasterSymGroup or from any SymOpRepresentation that belongs to the MasterSymGroup
Definition at line 25 of file SymGroupRepID.hh.
Public Member Functions | |
SymGroupRepID (Index _group_index, Index _rep_index) | |
Construct from group index (i.e., MasterSymGroup::group_index()) and representation index This constructor is typically only used by SymGroup class throws if _group_index or _rep_index are out-of-bounds (less than zero, for signed Index) More... | |
SymGroupRepID () | |
Default constructor initializes group_index and rep_index as out-of-bounds SymGroupRepID::empty() returns true for default-constructed object. More... | |
Index | group_index () const |
Index of master group in which the corresponding SymGroupRep is stored Used internally to MasterSymGroup to verify provenance of the SymGroupRepID. More... | |
Index | rep_index () const |
Index of SymGroupRep within the master group Used internally to MasterSymGroup to access the correct representation. More... | |
bool | is_identity () const |
Returns true if SymGroupRepID corresponds to an Identity representation. More... | |
bool | empty () const |
Returns true if SymGroupRepID has not been initialized with valid group_index or rep_index. More... | |
jsonParser const & | from_json (jsonParser const &json) |
Output internal state to JSON. More... | |
Static Public Member Functions | |
static SymGroupRepID | identity (Index dim) |
Static function to construct an ID for identity representations. More... | |
Private Member Functions | |
SymGroupRepID (Index _group_index, Index _rep_index, bool override) | |
Private Attributes | |
Index | m_group_index |
Index | m_rep_index |
Construct from group index (i.e., MasterSymGroup::group_index()) and representation index This constructor is typically only used by SymGroup class throws if _group_index or _rep_index are out-of-bounds (less than zero, for signed Index)
Definition at line 31 of file SymGroupRepID.hh.
|
inline |
Default constructor initializes group_index and rep_index as out-of-bounds SymGroupRepID::empty() returns true for default-constructed object.
Definition at line 42 of file SymGroupRepID.hh.
|
inlineprivate |
Private constructor skips bounds checks – Used for identity() and default construction
Definition at line 75 of file SymGroupRepID.hh.
|
inline |
Returns true if SymGroupRepID has not been initialized with valid group_index or rep_index.
Definition at line 65 of file SymGroupRepID.hh.
jsonParser const & CASM::SymGroupRepID::from_json | ( | jsonParser const & | json | ) |
Output internal state to JSON.
Definition at line 8 of file SymGroupRepID.cc.
|
inline |
Index of master group in which the corresponding SymGroupRep is stored Used internally to MasterSymGroup to verify provenance of the SymGroupRepID.
Definition at line 53 of file SymGroupRepID.hh.
|
inlinestatic |
Static function to construct an ID for identity representations.
dim | is dimension of vector space |
Definition at line 46 of file SymGroupRepID.hh.
|
inline |
Returns true if SymGroupRepID corresponds to an Identity representation.
Definition at line 61 of file SymGroupRepID.hh.
|
inline |
Index of SymGroupRep within the master group Used internally to MasterSymGroup to access the correct representation.
Definition at line 57 of file SymGroupRepID.hh.
|
private |
Definition at line 78 of file SymGroupRepID.hh.
|
private |
Definition at line 79 of file SymGroupRepID.hh.