#include <energy.h>
Inherited by EnergyEntry.
Public Member Functions | |
| Energy () | |
| Energy (double energy) | |
| Energy (double energy, const char *unit) | |
| void | set (double energy) |
| void | set (double energy, const char *unit) |
| double | get (const char *unit) const |
| double | Ryd () const |
| double | K () const |
| double | Erg () const |
| double | WN () const |
| double | eV () const |
| double | keV () const |
| double | MeV () const |
| double | Hz () const |
| double | kHz () const |
| double | MHz () const |
| double | GHz () const |
| double | Angstrom () const |
| double | nm () const |
| double | micron () const |
| double | mm () const |
| double | cm () const |
Private Attributes | |
| double | m_energy |
Definition at line 7 of file energy.h.
| Energy::Energy | ( | double | energy, | |
| const char * | unit | |||
| ) | [inline] |
| double Energy::Angstrom | ( | ) | const [inline] |
| double Energy::cm | ( | ) | const [inline] |
Definition at line 86 of file energy.h.
References Angstrom().
Referenced by get().
| double Energy::Erg | ( | ) | const [inline] |
| double Energy::eV | ( | ) | const [inline] |
| double Energy::get | ( | const char * | unit | ) | const |
Definition at line 141 of file energy.cpp.
References Angstrom(), cdEXIT, cm(), DEBUG_ENTRY, ENERGY_A, ENERGY_CM, ENERGY_ERG, ENERGY_EV, ENERGY_GHZ, ENERGY_HZ, ENERGY_K, ENERGY_KEV, ENERGY_KHZ, ENERGY_MEV, ENERGY_MHZ, ENERGY_MICRON, ENERGY_MM, ENERGY_NM, ENERGY_RYD, ENERGY_WN, Erg(), eV(), EXIT_FAILURE, GHz(), Hz(), ioQQQ, isSameUnit(), K(), keV(), kHz(), MeV(), MHz(), micron(), mm(), nm(), Ryd(), and WN().
| double Energy::GHz | ( | ) | const [inline] |
| double Energy::Hz | ( | ) | const [inline] |
Definition at line 54 of file energy.h.
References FR1RYD, and m_energy.
Referenced by get(), GHz(), kHz(), MHz(), Flux::p_get(), and Flux::p_set().
| double Energy::K | ( | ) | const [inline] |
| double Energy::keV | ( | ) | const [inline] |
| double Energy::kHz | ( | ) | const [inline] |
| double Energy::MeV | ( | ) | const [inline] |
| double Energy::MHz | ( | ) | const [inline] |
| double Energy::micron | ( | ) | const [inline] |
Definition at line 78 of file energy.h.
References Angstrom().
Referenced by get(), Flux::p_get(), and Flux::p_set().
| double Energy::mm | ( | ) | const [inline] |
Definition at line 82 of file energy.h.
References Angstrom().
Referenced by get().
| double Energy::nm | ( | ) | const [inline] |
Definition at line 74 of file energy.h.
References Angstrom().
Referenced by get(), Flux::p_get(), and Flux::p_set().
| double Energy::Ryd | ( | ) | const [inline] |
Definition at line 26 of file energy.h.
References m_energy.
Referenced by compareEnergies(), get(), EnergyEntry::p_set_ip(), ParseSave(), and SaveDo().
| void Energy::set | ( | double | energy, | |
| const char * | unit | |||
| ) |
Reimplemented in EnergyEntry.
Definition at line 217 of file energy.cpp.
References cdEXIT, DEBUG_ENTRY, EN1RYD, ENERGY_A, ENERGY_CM, ENERGY_ERG, ENERGY_EV, ENERGY_GHZ, ENERGY_HZ, ENERGY_K, ENERGY_KEV, ENERGY_KHZ, ENERGY_MEV, ENERGY_MHZ, ENERGY_MICRON, ENERGY_MM, ENERGY_NM, ENERGY_RYD, ENERGY_WN, EVRYD, EXIT_FAILURE, FR1RYD, ioQQQ, isSameUnit(), RYD_INF, RYDLAM, and TE1RYD.
| void Energy::set | ( | double | energy | ) | [inline] |
Reimplemented in EnergyEntry.
Definition at line 19 of file energy.h.
References m_energy.
Referenced by InitDefaultsPreparse(), and ParseSave().
| double Energy::WN | ( | ) | const [inline] |
double Energy::m_energy [private] |
1.6.1