CASM  1.1.0
A Clusters Approach to Statistical Mechanics
IntegralClusterSymCompareTraits_impl.hh
Go to the documentation of this file.
1 #ifndef CASM_IntegralClusterSymCompareTraits_impl
2 #define CASM_IntegralClusterSymCompareTraits_impl
3 
8 
9 namespace CASM {
10 
11 template <typename SymCompareType>
13  IntegralCluster const &clust, SymCompareType const &sym_compare) {
14  return clust[0];
15 }
16 
17 template <typename SymCompareType>
19  SymOp const &op, IntegralCluster const &clust,
20  SymCompareType const &sym_compare) {
21  return CASM::sym::copy_apply(op, clust, sym_compare.prim());
22 }
23 
24 template <typename SymCompareType>
27  IntegralCluster const &clust, SymCompareType const &sym_compare) {
28  return ClusterInvariants{clust};
29 }
30 
31 } // namespace CASM
32 
33 #endif
Stores cluster invariants: number of sites and site distances.
const PrimType & prim() const
SymOp is the Coordinate representation of a symmetry operation it keeps fraction (FRAC) and Cartesian...
Definition: SymOp.hh:28
Unit Cell Coordinates.
xtal::Coordinate copy_apply(const xtal::SymOp &op, xtal::Coordinate coord)
Copy and apply SymOp to a Coordinate.
Definition: Coordinate.cc:354
Main CASM namespace.
Definition: APICommand.hh:8
static xtal::UnitCellCoord position(IntegralCluster const &clust, SymCompareType const &sym_compare)
Returns clust[0].
static ClusterInvariants make_invariants(IntegralCluster const &clust, SymCompareType const &sym_compare)
static Element copy_apply(SymOp const &op, IntegralCluster const &clust, SymCompareType const &sym_compare)