CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::SymGroupRepID Class Reference

#include <SymGroupRepID.hh>

Detailed Description

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
 

Constructor & Destructor Documentation

◆ SymGroupRepID() [1/3]

CASM::SymGroupRepID::SymGroupRepID ( Index  _group_index,
Index  _rep_index 
)
inline

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.

◆ SymGroupRepID() [2/3]

CASM::SymGroupRepID::SymGroupRepID ( )
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.

◆ SymGroupRepID() [3/3]

CASM::SymGroupRepID::SymGroupRepID ( Index  _group_index,
Index  _rep_index,
bool  override 
)
inlineprivate

Private constructor skips bounds checks – Used for identity() and default construction

Definition at line 75 of file SymGroupRepID.hh.

Member Function Documentation

◆ empty()

bool CASM::SymGroupRepID::empty ( ) const
inline

Returns true if SymGroupRepID has not been initialized with valid group_index or rep_index.

Definition at line 65 of file SymGroupRepID.hh.

◆ from_json()

jsonParser const & CASM::SymGroupRepID::from_json ( jsonParser const &  json)

Output internal state to JSON.

Definition at line 8 of file SymGroupRepID.cc.

◆ group_index()

Index CASM::SymGroupRepID::group_index ( ) const
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.

◆ identity()

static SymGroupRepID CASM::SymGroupRepID::identity ( Index  dim)
inlinestatic

Static function to construct an ID for identity representations.

Parameters
dimis dimension of vector space

Definition at line 46 of file SymGroupRepID.hh.

◆ is_identity()

bool CASM::SymGroupRepID::is_identity ( ) const
inline

Returns true if SymGroupRepID corresponds to an Identity representation.

Definition at line 61 of file SymGroupRepID.hh.

◆ rep_index()

Index CASM::SymGroupRepID::rep_index ( ) const
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.

Member Data Documentation

◆ m_group_index

Index CASM::SymGroupRepID::m_group_index
private

Definition at line 78 of file SymGroupRepID.hh.

◆ m_rep_index

Index CASM::SymGroupRepID::m_rep_index
private

Definition at line 79 of file SymGroupRepID.hh.


The documentation for this class was generated from the following files: