CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <DoFIsEquivalent.hh>
Class for checking equivalence of two OccupantDoF objects, with respect to symmetry transformations.
OccupantDoFs dofA and dofB are considered equivalent if
Definition at line 75 of file DoFIsEquivalent.hh.
Public Types | |
using | OccDoFType = std::vector< OccType > |
Public Member Functions | |
OccupantDoFIsEquivalent (OccDoFType const &_dof, double tol=TOL) | |
bool | operator() (OccDoFType const &_other) const |
bool | operator() (xtal::SymOp const &_op) const |
returns true if copy_apply(_op,m_dof) = P.permute(m_dof) More... | |
bool | operator() (xtal::SymOp const &_op, OccDoFType const &_other) const |
returns true if copy_apply(_op,m_dof) = P.permute(_other) More... | |
Permutation const & | perm () const |
Private Attributes | |
OccDoFType | m_dof |
double | m_tol |
Permutation | m_P |
using CASM::OccupantDoFIsEquivalent< OccType >::OccDoFType = std::vector<OccType> |
Definition at line 77 of file DoFIsEquivalent.hh.
|
inline |
Definition at line 79 of file DoFIsEquivalent.hh.
bool CASM::OccupantDoFIsEquivalent< OccType >::operator() | ( | OccDoFType const & | _other | ) | const |
returns true if m_dof and _other have matching labels, and m_dof = P.permute(_other)
Definition at line 8 of file DoFIsEquivalent_impl.hh.
bool CASM::OccupantDoFIsEquivalent< OccType >::operator() | ( | xtal::SymOp const & | _op | ) | const |
returns true if copy_apply(_op,m_dof) = P.permute(m_dof)
Definition at line 28 of file DoFIsEquivalent_impl.hh.
bool CASM::OccupantDoFIsEquivalent< OccType >::operator() | ( | xtal::SymOp const & | _op, |
OccDoFType const & | _other | ||
) | const |
returns true if copy_apply(_op,m_dof) = P.permute(_other)
Definition at line 48 of file DoFIsEquivalent_impl.hh.
|
inline |
return transformation permutation P calculated during last successful comparison
Definition at line 94 of file DoFIsEquivalent.hh.
|
private |
Definition at line 97 of file DoFIsEquivalent.hh.
|
mutableprivate |
Definition at line 101 of file DoFIsEquivalent.hh.
|
private |
Definition at line 99 of file DoFIsEquivalent.hh.