cloudy trunk
Loading...
Searching...
No Matches
Energy Class Reference

#include <energy.h>

Inheritance diagram for Energy:
Collaboration diagram for Energy:

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

Detailed Description

Definition at line 7 of file energy.h.

Constructor & Destructor Documentation

◆ Energy() [1/3]

Energy::Energy ( )
inline

Definition at line 12 of file energy.h.

References m_energy.

Referenced by EnergyEntry::EnergyEntry(), EnergyEntry::EnergyEntry(), and EnergyEntry::EnergyEntry().

◆ Energy() [2/3]

Energy::Energy ( double energy)
inline

Definition at line 13 of file energy.h.

References m_energy.

◆ Energy() [3/3]

Energy::Energy ( double energy,
const char * unit )
inline

Definition at line 14 of file energy.h.

References m_energy, and set().

Here is the call graph for this function:

Member Function Documentation

◆ Angstrom()

double Energy::Angstrom ( ) const
inline

Definition at line 70 of file energy.h.

References m_energy, and RYDLAM.

Referenced by cm(), get(), micron(), mm(), and nm().

◆ cm()

double Energy::cm ( ) const
inline

Definition at line 86 of file energy.h.

References Angstrom().

Referenced by get().

Here is the call graph for this function:

◆ Erg()

double Energy::Erg ( ) const
inline

Definition at line 34 of file energy.h.

References EN1RYD, and m_energy.

Referenced by get().

◆ eV()

double Energy::eV ( ) const
inline

Definition at line 42 of file energy.h.

References EVRYD, and m_energy.

Referenced by get(), keV(), and MeV().

◆ get()

double Energy::get ( const char * unit) const

◆ GHz()

double Energy::GHz ( ) const
inline

Definition at line 66 of file energy.h.

References Hz().

Referenced by get().

Here is the call graph for this function:

◆ Hz()

double Energy::Hz ( ) const
inline

Definition at line 54 of file energy.h.

References FR1RYD, and m_energy.

Referenced by get(), GHz(), kHz(), and MHz().

◆ K()

double Energy::K ( ) const
inline

Definition at line 30 of file energy.h.

References m_energy, and TE1RYD.

Referenced by get().

◆ keV()

double Energy::keV ( ) const
inline

Definition at line 46 of file energy.h.

References eV().

Referenced by get().

Here is the call graph for this function:

◆ kHz()

double Energy::kHz ( ) const
inline

Definition at line 58 of file energy.h.

References Hz().

Referenced by get().

Here is the call graph for this function:

◆ MeV()

double Energy::MeV ( ) const
inline

Definition at line 50 of file energy.h.

References eV().

Referenced by get().

Here is the call graph for this function:

◆ MHz()

double Energy::MHz ( ) const
inline

Definition at line 62 of file energy.h.

References Hz().

Referenced by get().

Here is the call graph for this function:

◆ micron()

double Energy::micron ( ) const
inline

Definition at line 78 of file energy.h.

References Angstrom().

Referenced by get().

Here is the call graph for this function:

◆ mm()

double Energy::mm ( ) const
inline

Definition at line 82 of file energy.h.

References Angstrom().

Referenced by get().

Here is the call graph for this function:

◆ nm()

double Energy::nm ( ) const
inline

Definition at line 74 of file energy.h.

References Angstrom().

Referenced by get().

Here is the call graph for this function:

◆ Ryd()

double Energy::Ryd ( ) const
inline

Definition at line 26 of file energy.h.

References m_energy.

Referenced by compareEnergies(), get(), EnergyEntry::p_set_ip(), and ParseSave().

◆ set() [1/2]

void Energy::set ( double energy)
inline

Definition at line 19 of file energy.h.

References m_energy.

Referenced by Energy(), ParseSave(), set(), EnergyEntry::set(), and EnergyEntry::set().

◆ set() [2/2]

void Energy::set ( double energy,
const char * unit )

◆ WN()

double Energy::WN ( ) const
inline

Definition at line 38 of file energy.h.

References m_energy, and RYD_INF.

Referenced by get().

Field Documentation

◆ m_energy

double Energy::m_energy
private

Definition at line 9 of file energy.h.

Referenced by Angstrom(), Energy(), Energy(), Energy(), Erg(), eV(), Hz(), K(), Ryd(), set(), and WN().


The documentation for this class was generated from the following files: