Energy Class Reference

#include <energy.h>

Inherited by EnergyEntry.

Collaboration diagram for Energy:
[legend]

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::Energy (  )  [inline]

Definition at line 12 of file energy.h.

Energy::Energy ( double  energy  )  [inline]

Definition at line 13 of file energy.h.

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

Definition at line 14 of file energy.h.


Member Function Documentation

double Energy::Angstrom (  )  const [inline]

Definition at line 70 of file energy.h.

References m_energy, and RYDLAM.

Referenced by cm(), get(), micron(), mm(), nm(), Flux::p_get(), and Flux::p_set().

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:

double Energy::Erg (  )  const [inline]

Definition at line 34 of file energy.h.

References EN1RYD, and m_energy.

Referenced by get().

double Energy::eV (  )  const [inline]

Definition at line 42 of file energy.h.

References EVRYD, and m_energy.

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

double Energy::get ( const char *  unit  )  const
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:

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]

Definition at line 30 of file energy.h.

References m_energy, and TE1RYD.

Referenced by get().

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:

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:

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:

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:

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().

Here is the call graph for this function:

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:

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().

Here is the call graph for this function:

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 
)
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]

Definition at line 38 of file energy.h.

References m_energy, and RYD_INF.

Referenced by get().


Field Documentation

double Energy::m_energy [private]

Definition at line 9 of file energy.h.

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


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Nov 2012 for cloudy by  doxygen 1.6.1