Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Energy Class Reference

#include <energy.h>

Inheritance diagram for Energy:

Public Member Functions

 Energy ()
 
 Energy (double energy)
 
 Energy (double energy, const char *unit)
 
bool operator< (const Energy &e) const
 
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
 

Constructor & Destructor Documentation

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

References set().

Here is the call graph for this function:

Member Function Documentation

double Energy::Angstrom ( ) const
inline

References m_energy.

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

double Energy::cm ( ) const
inline

References Angstrom().

Referenced by get().

Here is the call graph for this function:

double Energy::Erg ( ) const
inline

References m_energy.

Referenced by get().

double Energy::eV ( ) const
inline

References m_energy.

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

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

References Hz().

Referenced by get().

Here is the call graph for this function:

double Energy::Hz ( ) const
inline

References m_energy.

Referenced by get(), GHz(), kHz(), MHz(), Flux::p_get(), and Flux::p_set().

double Energy::K ( ) const
inline

References m_energy.

Referenced by get().

double Energy::keV ( ) const
inline

References eV().

Referenced by get().

Here is the call graph for this function:

double Energy::kHz ( ) const
inline

References Hz().

Referenced by get().

Here is the call graph for this function:

double Energy::MeV ( ) const
inline

References eV().

Referenced by get().

Here is the call graph for this function:

double Energy::MHz ( ) const
inline

References Hz().

Referenced by get().

Here is the call graph for this function:

double Energy::micron ( ) const
inline

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

References Angstrom().

Referenced by get().

Here is the call graph for this function:

double Energy::nm ( ) const
inline

References Angstrom().

Referenced by get(), Flux::p_get(), and Flux::p_set().

Here is the call graph for this function:

bool Energy::operator< ( const Energy e) const
inline

References m_energy.

void Energy::set ( double  energy)
inline

References energy(), and m_energy.

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

Here is the call graph for this function:

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

References m_energy.

Referenced by get(), and iso_init_energies().

Member Data Documentation

double Energy::m_energy
private

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


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