CASM
AClustersApproachtoStatisticalMechanics
|
#include <DoF.hh>
Public Member Functions | |
OccupantDoF () | |
OccupantDoF (const std::string &_name, const Array< T > &_domain, int _current_state=0) | |
OccupantDoF (const Array< T > &_domain, int _current_state=0) | |
OccupantDoF (std::initializer_list< T > _domain, int _current_state=0) | |
const T & | get_occ () const |
DiscreteDoF * | copy () const override |
void | set_value (int new_state) override |
void | set_current_state (const T &new_state) |
bool | compare (const OccupantDoF &RHS, bool compare_value) const |
bool | operator== (const OccupantDoF &RHS) const |
void | set_domain (const Array< T > &new_dom) |
const Array< T > & | get_domain () const |
T & | operator[] (Index i) |
const T & | operator[] (Index i) const |
Index | size () const override |
void | print (std::ostream &out) const |
void | print_occ (std::ostream &out) const |
jsonParser & | to_json (jsonParser &json) const override |
template<> | |
jsonParser & | to_json (jsonParser &json) const |
template<> | |
jsonParser & | to_json (jsonParser &json) const |
SymGroupRepID | sym_rep_ID () const |
void | set_sym_rep_ID (SymGroupRepID _id) |
bool | is_specified () const |
void | invalidate () |
int | value () const |
int | remote_value () const |
int const * | remote_ptr () const |
void | register_remote (const RemoteHandle &handle) |
virtual bool | operator== (const DiscreteDoF &RHS) const |
const std::string & | type_name () const |
std::string | type_name_prefix () const |
std::string | type_name_suffix () const |
Index | ID () const |
void | set_ID (Index new_ID) |
bool | is_locked () const |
void | lock_ID () |
void | unlock_ID () |
Protected Attributes | |
int | m_current_state |
index into domain of the current state, -1 if unspecified More... | |
const int * | m_remote_state |
Allows DoF to point to a remote value for faster/easier evaluation. More... | |
SymGroupRepID | m_sym_rep_ID |
std::string | m_type_name |
Index | m_dof_ID |
bool | m_ID_lock |
Private Attributes | |
Array< T > | m_domain |
Allowed values, assume class T has member 'T.name'. More... | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements CASM::DiscreteDoF.
|
inline |
|
inline |
|
inlineinherited |
|
inlinevirtualinherited |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inline |
|
inlineinherited |
|
inlineoverridevirtual |
Reimplemented from CASM::DiscreteDoF.
|
inlineoverridevirtual |
Implements CASM::DiscreteDoF.
|
inlineinherited |
|
virtual |
Implements CASM::DiscreteDoF.
|
virtual |
Implements CASM::DiscreteDoF.
|
overridevirtual |
Implements CASM::DiscreteDoF.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
|
protectedinherited |
dof_ID is a way to distinguish between DoFs with the same name but different identities dof_ID for now usually refers to the site index of a cluster (e.g., 0, 1, 2 of a triplet) or an index into the primitive cell neighbor list. Other usage cases may be introduced later
|
private |
|
protectedinherited |
|
protectedinherited |