![]() |
ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
|
Extends InterestingDecay for using with the DataQueryIsomer class. More...
#include <InterestingDecayIsomer.h>
Public Member Functions | |
InterestingDecayIsomer (Nukleid nukleidToSet, double halfLifeToSet, double energyToSet) | |
Constructs the object. | |
double | getHalfLife () const |
Get the half life. | |
double | getEnergy () const |
Get the energy. | |
string | toString () const |
Get a string consisting of atomic number, mass number and nucleid name, used for plotting the isomers in a nucleid chart. | |
bool | operator== (const InterestingDecayIsomer &other) const |
Comparision operator. | |
bool | operator< (const InterestingDecayIsomer &other) const |
Comparition operator. | |
Protected Attributes | |
double | myHalfLife |
The half-life. | |
double | myEnergy |
The energy. |
Extends InterestingDecay for using with the DataQueryIsomer class.
Definition at line 24 of file InterestingDecayIsomer.h.
InterestingDecayIsomer::InterestingDecayIsomer | ( | Nukleid | nukleidToSet, |
double | halfLifeToSet, | ||
double | energyToSet | ||
) |
Constructs the object.
nukleidToSet | The nucleid corresponding to this InterestingDecayIsomer. |
halfLifeToSet | The half-life. |
energyToSet | The energy. |
Definition at line 3 of file InterestingDecayIsomer.cpp.
References myEnergy, and myHalfLife.
:InterestingDecay(nukleidToSet) { myHalfLife = halfLifeToSet; myEnergy = energyToSet; }
double InterestingDecayIsomer::getEnergy | ( | ) | const |
Get the energy.
Definition at line 15 of file InterestingDecayIsomer.cpp.
References myEnergy.
{ return myEnergy; }
double InterestingDecayIsomer::getHalfLife | ( | ) | const |
Get the half life.
Definition at line 10 of file InterestingDecayIsomer.cpp.
References myHalfLife.
{ return myHalfLife; }
bool InterestingDecayIsomer::operator< | ( | const InterestingDecayIsomer & | other | ) | const |
Comparition operator.
other | To compare with. |
Definition at line 33 of file InterestingDecayIsomer.cpp.
References doubleEquality(), InterestingDecay::getNukleid(), myEnergy, and myHalfLife.
{ if(getNukleid()!=other.getNukleid()) return getNukleid()<other.getNukleid(); if(!doubleEquality(myHalfLife,other.myHalfLife)) return myHalfLife<other.myHalfLife; if(!doubleEquality(myEnergy, other.myEnergy)) return myEnergy<other.myEnergy; return false; }
bool InterestingDecayIsomer::operator== | ( | const InterestingDecayIsomer & | other | ) | const |
Comparision operator.
other | To compare with. |
Definition at line 28 of file InterestingDecayIsomer.cpp.
References doubleEquality(), InterestingDecay::getNukleid(), myEnergy, and myHalfLife.
{ return (getNukleid()==other.getNukleid() && doubleEquality(myHalfLife,other.myHalfLife) && doubleEquality(myEnergy,other.myEnergy)); }