ARTS
2.2.66
|
Container class for Quantum Numbers. More...
#include <quantum.h>
Public Types | |
typedef std::map< Index, Rational > | QuantumContainer |
Public Member Functions | |
const Rational | operator[] (const Index qn) const |
Return copy of quantum number. More... | |
void | Set (Index qn, Rational r) |
Set quantum number. More... | |
const QuantumContainer & | GetNumbers () const |
bool | Compare (const QuantumNumbers &qn) const |
Compare Quantum Numbers. More... | |
Private Attributes | |
QuantumContainer | mqnumbers |
typedef std::map<Index, Rational> QuantumNumbers::QuantumContainer |
bool QuantumNumbers::Compare | ( | const QuantumNumbers & | qn | ) | const |
Compare Quantum Numbers.
Ignores any undefined numbers in the comparison
[in] | qn | Quantum Numbers to compare to |
Definition at line 31 of file quantum.cc.
References GetNumbers(), and mqnumbers.
Referenced by main().
|
inline |
Definition at line 75 of file quantum.h.
References mqnumbers.
Referenced by Compare(), and xml_write_to_stream().
Return copy of quantum number.
Definition at line 63 of file quantum.h.
References mqnumbers, and RATIONAL_UNDEFINED.
Set quantum number.
Definition at line 73 of file quantum.h.
References mqnumbers, and QN_FINAL_ENTRY.
Referenced by main(), QuantumNumberRecord::SetLower(), and QuantumNumberRecord::SetUpper().
|
private |
Definition at line 88 of file quantum.h.
Referenced by Compare(), GetNumbers(), operator[](), and Set().