Version: SMASH-3.1
smash::ClebschGordan::ThreeSpins Struct Reference

#include <clebschgordan_lookup.h>

Auxiliary struct to be used as key in the look up table of Clebsch-Gordan coefficients.

It basically contains the input to retrieve one coefficient. Note that this is public since it is useful to be used from client code, e.g. in tests.

Definition at line 41 of file clebschgordan_lookup.h.

Public Member Functions

bool operator== (const ThreeSpins &other) const
 Comparison operator between two set of spin information. More...
 

Public Attributes

int j1
 First isospin. More...
 
int j2
 Second isospin. More...
 
int j3
 Third isospin. More...
 
int m1
 z component of first isospin More...
 
int m2
 z component of second isospin More...
 
int m3
 z component of third isospin More...
 

Private Member Functions

auto tied () const
 A utility function to avoid duplication in comparison operator(s). More...
 

Member Function Documentation

◆ tied()

auto smash::ClebschGordan::ThreeSpins::tied ( ) const
inlineprivate

A utility function to avoid duplication in comparison operator(s).

Note that in order to use auto deduced returned type, this member has to be defined before using it.

Returns
A tuple of constant references to members.

Definition at line 57 of file clebschgordan_lookup.h.

57 { return std::tie(j1, j2, j3, m1, m2, m3); }
int m2
z component of second isospin
int m1
z component of first isospin
int m3
z component of third isospin

◆ operator==()

bool smash::ClebschGordan::ThreeSpins::operator== ( const ThreeSpins other) const
inline

Comparison operator between two set of spin information.

This is needed in order to use this object in a std::unordered_map container.

Parameters
otherThe object to be compared to
Returns
true If all 6 spins value are identical
false otherwise

Definition at line 68 of file clebschgordan_lookup.h.

68  {
69  return tied() == other.tied();
70  }
auto tied() const
A utility function to avoid duplication in comparison operator(s).

Member Data Documentation

◆ j1

int smash::ClebschGordan::ThreeSpins::j1

First isospin.

Definition at line 42 of file clebschgordan_lookup.h.

◆ j2

int smash::ClebschGordan::ThreeSpins::j2

Second isospin.

Definition at line 43 of file clebschgordan_lookup.h.

◆ j3

int smash::ClebschGordan::ThreeSpins::j3

Third isospin.

Definition at line 44 of file clebschgordan_lookup.h.

◆ m1

int smash::ClebschGordan::ThreeSpins::m1

z component of first isospin

Definition at line 45 of file clebschgordan_lookup.h.

◆ m2

int smash::ClebschGordan::ThreeSpins::m2

z component of second isospin

Definition at line 46 of file clebschgordan_lookup.h.

◆ m3

int smash::ClebschGordan::ThreeSpins::m3

z component of third isospin

Definition at line 47 of file clebschgordan_lookup.h.


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