CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <DoFSet.hh>
Comparator class for checking equivalence of two DoFSet values. Behaves exactly like DoFSetIsEquivalent, but also checks for excluded occupants. Evaluate by constructing object with one of the values, and then pass the other DoFSet to the oveloaded operator().
DoFSets are considered equivalent if:
Public Member Functions | |
SiteDoFSetIsEquivalent_f (const SiteDoFSet &reference_value, double tol) | |
bool | operator() (const SiteDoFSet &other_value) const |
Private Member Functions | |
bool | _excluded_occupants_match (const SiteDoFSet &other_value) const |
bool | operator() (const DoFSet &other_value) const |
bool | _traits_match (const DoFSet &other_value) const |
Returns true if the traits match. Only compares the names. More... | |
bool | _basis_spans_same_space (const DoFSet &other_value) const |
Private Attributes | |
std::unordered_set< std::string > | m_reference_excluded_occs |
DoFSet | m_reference_dofset |
Values passed to operator() will be compared against this. More... | |
double | m_tol |
Tolerance value for making comparisons. More... | |
|
inline |
|
privateinherited |
|
inlineprivate |
|
privateinherited |
|
inherited |
|
inline |
|
privateinherited |
|
private |
|
privateinherited |