Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
EnergyEntry Class Reference

#include <energy.h>

Inheritance diagram for EnergyEntry:
Collaboration diagram for EnergyEntry:

Public Member Functions

 EnergyEntry ()
 
 EnergyEntry (double energy)
 
 EnergyEntry (double energy, const char *unit)
 
void set (double energy, const char *unit)
 
void set (double energy)
 
long ip_C ()
 
long ip_fortran ()
 
- Public Member Functions inherited from Energy
 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 angstromVac () const
 
double nmVac () const
 
double micronVac () const
 
double mmVac () const
 
double cmVac () const
 

Private Member Functions

void p_set_ip ()
 

Private Attributes

long p_ip
 

Detailed Description

EnergyEntry: class for storing a continuum energy and its associated pointer as a pair. This class is safe to construct even before the mesh is set up, as in that case calculating the pointer is delayed until it is actually needed. The energy can be changed after construction using the set() methods, but only if the mesh is already set up.

Constructor & Destructor Documentation

◆ EnergyEntry() [1/3]

EnergyEntry::EnergyEntry ( )
inline

References Energy::Energy(), and p_ip.

Here is the call graph for this function:

◆ EnergyEntry() [2/3]

EnergyEntry::EnergyEntry ( double energy)
inline

References Energy::Energy(), energy(), and p_ip.

Here is the call graph for this function:

◆ EnergyEntry() [3/3]

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

References Energy::Energy(), energy(), and p_ip.

Here is the call graph for this function:

Member Function Documentation

◆ ip_C()

long EnergyEntry::ip_C ( )
inline

References p_ip, and p_set_ip().

Referenced by ip_fortran().

Here is the call graph for this function:

◆ ip_fortran()

long EnergyEntry::ip_fortran ( )
inline

References ip_C().

Here is the call graph for this function:

◆ p_set_ip()

void EnergyEntry::p_set_ip ( )
private

References ASSERT, cdEXIT, DEBUG_ENTRY, energy(), EXIT_FAILURE, fprintf(), ioQQQ, ipoint(), p_ip, rfield, and Energy::Ryd().

Referenced by ip_C(), set(), and set().

Here is the call graph for this function:

◆ set() [1/2]

void EnergyEntry::set ( double energy)
inline

References energy(), p_set_ip(), and Energy::set().

Here is the call graph for this function:

◆ set() [2/2]

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

References energy(), p_set_ip(), and Energy::set().

Here is the call graph for this function:

Member Data Documentation

◆ p_ip

long EnergyEntry::p_ip
private

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