27 SiteMod(size_type _site_linear_index, size_type _sublat,
const T &_to_value) {
28 set(_site_linear_index, _sublat, _to_value);
53 void set(size_type _site_linear_index, size_type _sublat,
const T &_to_value) {
SiteMod()
Default constructor.
size_type site_index() const
Returns the linear index corresponding to site in ConfigDoF.
void set(size_type _site_linear_index, size_type _sublat, const T &_to_value)
Set the values of a SiteMod.
Describes the modification of a variable on a basis site.
SiteMod< int > OccMod
An OccMod describes the change in occupation variable on a site.
const T & to_value() const
Returns the value the variable on the site being modified will change to.
size_type sublat() const
Returns the sublattice index of site being modified.
EigenIndex Index
For long integer indexing:
SiteMod(size_type _site_linear_index, size_type _sublat, const T &_to_value)
Construct a SiteMod.