CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <DoFMod.hh>
Describes the modification of a variable on a basis site.
SiteMod has information about the occupational change on a single site. It holds only an index corresponding to the site in the ConfigDoF and the final value a variable on that site will have after the modification takes place.
Public Types | |
typedef Index | size_type |
Public Member Functions | |
SiteMod () | |
Default constructor. More... | |
SiteMod (size_type _site_linear_index, size_type _sublat, const T &_to_value) | |
Construct a SiteMod. More... | |
size_type | site_index () const |
Returns the linear index corresponding to site in ConfigDoF. More... | |
size_type | sublat () const |
Returns the sublattice index of site being modified. More... | |
const T & | to_value () const |
Returns the value the variable on the site being modified will change to. More... | |
void | set (size_type _site_linear_index, size_type _sublat, const T &_to_value) |
Set the values of a SiteMod. More... | |
Private Attributes | |
size_type | m_site_index |
size_type | m_sublat |
T | m_to_value |
typedef Index CASM::Monte::SiteMod< T >::size_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |