Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
t_LineSave Struct Reference

#include <lines.h>

Inheritance diagram for t_LineSave:
Collaboration diagram for t_LineSave:

Public Member Functions

const char * chName () const
void zero ()
void comment (t_warnings &)
long findline (const LineID &line, bool lgQuiet=false)
void clear ()
size_t size () const
void resize (long nlines)
void setSortWL ()
void init (long index, char chSumTyp, const char *chComment, const char *label, bool lgAdd, t_wavl wavelength, const TransitionProxy &tr)
realnum wavlVac (long index) const
t_wavl twav (long index) const
void resetWavlVac (long index, realnum wl)
Public Member Functions inherited from module
 module ()
virtual ~module ()

Public Attributes

long int nsum
long int nComment
long int ipass
string chHoldComments [NHOLDCOMMENTS]
LineID NormLine
long int ipNormLine
double ScaleNormLine
long int sig_figs
int wl_length
realnum RecCoefCNO [4][NRECCOEFCNO]
vector< LinSvlines
vector< realnumm_wavelength
vector< size_t > SortWL
bool lgIsoContSubSignif

Static Public Attributes

static const long sig_figs_max = 6

Detailed Description

this struc is different from following since they are only pointer here, will be allocated to form a large array after number of lines is counted, but this is the final form

Member Function Documentation

◆ chName()

const char * t_LineSave::chName ( ) const
inlinevirtual

Implements module.

◆ clear()

void t_LineSave::clear ( )
inline

References lines, and m_wavelength.

◆ comment()

void t_LineSave::comment ( t_warnings & )
inlinevirtual

Implements module.

◆ findline()

◆ init()

void t_LineSave::init ( long index,
char chSumTyp,
const char * chComment,
const char * label,
bool lgAdd,
t_wavl wavelength,
const TransitionProxy & tr )

References lines, m_wavelength, resize(), size(), and wavelength.

Here is the call graph for this function:

◆ resetWavlVac()

void t_LineSave::resetWavlVac ( long index,
realnum wl )
inline

References m_wavelength.

◆ resize()

void t_LineSave::resize ( long nlines)
inline

References lines, and m_wavelength.

Referenced by init().

◆ setSortWL()

void t_LineSave::setSortWL ( )

References DEBUG_ENTRY, nsum, SortWL, and wavelength_compare().

Here is the call graph for this function:

◆ size()

size_t t_LineSave::size ( ) const
inline

References ASSERT, lines, and m_wavelength.

Referenced by init().

◆ twav()

t_wavl t_LineSave::twav ( long index) const
inline

References t_vac(), and wavlVac().

Here is the call graph for this function:

◆ wavlVac()

realnum t_LineSave::wavlVac ( long index) const
inline

References m_wavelength.

Referenced by findline(), and twav().

◆ zero()

void t_LineSave::zero ( void )
virtual

Member Data Documentation

◆ chHoldComments

string t_LineSave::chHoldComments[NHOLDCOMMENTS]

holds comment strings associated with various blocks of output lines

◆ ipass

long int t_LineSave::ipass

there are two types of calls to lines() ipass = 0, first pass, save labels and wavelengths ipass = 1, integrate intensity

Referenced by findline().

◆ ipNormLine

long int t_LineSave::ipNormLine

array index for emission line on normalize command

Referenced by zero().

◆ lgIsoContSubSignif

bool t_LineSave::lgIsoContSubSignif

◆ lines

vector<LinSv> t_LineSave::lines

number of lines allocated in emission line stack must not change between iterations or grid points

Referenced by clear(), findline(), init(), resize(), and size().

◆ m_wavelength

vector<realnum> t_LineSave::m_wavelength

◆ nComment

long int t_LineSave::nComment

index to number of comments printed within the block of lines

◆ NormLine

LineID t_LineSave::NormLine

normalization line for line ratios in main output

Referenced by zero().

◆ nsum

long int t_LineSave::nsum

number of emission lines in main stack nsum is current index, to last line entered in the array linadd increments nsum before doing anything else

Referenced by findline(), and setSortWL().

◆ RecCoefCNO

realnum t_LineSave::RecCoefCNO[4][NRECCOEFCNO]

save rec coefficient data for recombination lines of C, N, O

◆ ScaleNormLine

double t_LineSave::ScaleNormLine

ScaleNormLine is the scale factor for its appearance

Referenced by zero().

◆ sig_figs

long int t_LineSave::sig_figs

number of significant figures for lines this affects all aspects of reading and writing lines

Referenced by zero().

◆ sig_figs_max

const long t_LineSave::sig_figs_max = 6
static

Referenced by zero().

◆ SortWL

vector<size_t> t_LineSave::SortWL

Referenced by findline(), and setSortWL().

◆ wl_length

int t_LineSave::wl_length

length of string wl not including units typically, sig_figs+2 (dot & unit)


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