CASM
AClustersApproachtoStatisticalMechanics
|
#include <ConfigDoFIsEquivalent.hh>
Wrapper class for generic equality comparison of ConfigDoF.
Definition at line 420 of file ConfigDoFIsEquivalent.hh.
Public Member Functions | |
template<typename ConfigDoFIsEquivalentType > | |
ConfigDoFIsEquivalent (std::unique_ptr< ConfigDoFIsEquivalentType > f) | |
Construct a ConfigDoFCompare object for a particular DoF type. More... | |
bool | is_less () const |
Returns less than comparison. More... | |
bool | operator() (const Configuration &other) const |
Return config == other. More... | |
bool | operator() (const ConfigDoF &other) const |
Return config == other. More... | |
bool | operator() (const PermuteIterator &A) const |
Return config == A*config. More... | |
bool | operator() (const PermuteIterator &A, const PermuteIterator &B) const |
Return A*config == B*config. More... | |
Private Attributes | |
notstd::cloneable_ptr < DoFIsEquivalent::ConfigDoFIsEquivalentBase > | m_f |
Related Functions | |
(Note that these are not member functions.) | |
template<typename ConfigDoFIsEquivalentType , typename... Args> | |
ConfigDoFIsEquivalent | make_dof_is_equivalent (Args &&...args) |
|
inline |
Construct a ConfigDoFCompare object for a particular DoF type.
Easiest construction is probably using 'make_dof_compare'.
Example:
Definition at line 435 of file ConfigDoFIsEquivalent.hh.
|
inline |
Returns less than comparison.
Definition at line 441 of file ConfigDoFIsEquivalent.hh.
|
inline |
Return config == other.
Definition at line 446 of file ConfigDoFIsEquivalent.hh.
|
inline |
Return config == other.
Definition at line 451 of file ConfigDoFIsEquivalent.hh.
|
inline |
Return config == A*config.
Definition at line 456 of file ConfigDoFIsEquivalent.hh.
|
inline |
Return A*config == B*config.
Definition at line 461 of file ConfigDoFIsEquivalent.hh.
|
related |
Factory function to make ConfigDoFIsEquivalent
Definition at line 474 of file ConfigDoFIsEquivalent.hh.
|
private |
Definition at line 466 of file ConfigDoFIsEquivalent.hh.