CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::xtal::Translatable< Base > Struct Template Reference

#include <UnitCellCoord.hh>

+ Inheritance diagram for CASM::xtal::Translatable< Base >:

Detailed Description

template<typename Base>
struct CASM::xtal::Translatable< Base >

CRTP class to implement '-=', '+', and '-' in terms of '+='.

Requires:

  • MostDerived& MostDerived::operator+=(UnitCell frac)

Definition at line 97 of file UnitCellCoord.hh.

Public Types

typedef Base::MostDerived MostDerived
 

Public Member Functions

MostDerivedoperator-= (UnitCell frac)
 
MostDerived operator+ (UnitCell frac) const
 
MostDerived operator- (UnitCell frac) const
 

Member Typedef Documentation

◆ MostDerived

template<typename Base >
typedef Base::MostDerived CASM::xtal::Translatable< Base >::MostDerived

Definition at line 98 of file UnitCellCoord.hh.

Member Function Documentation

◆ operator+()

template<typename Base >
MostDerived CASM::xtal::Translatable< Base >::operator+ ( UnitCell  frac) const
inline

Definition at line 103 of file UnitCellCoord.hh.

◆ operator-()

template<typename Base >
MostDerived CASM::xtal::Translatable< Base >::operator- ( UnitCell  frac) const
inline

Definition at line 108 of file UnitCellCoord.hh.

◆ operator-=()

template<typename Base >
MostDerived& CASM::xtal::Translatable< Base >::operator-= ( UnitCell  frac)
inline

Definition at line 101 of file UnitCellCoord.hh.


The documentation for this struct was generated from the following file: