Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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)
 
void clear ()
 
void resize (long nlines)
 
void setSortWL ()
 
void init (long index, char chSumTyp, const char *chComment, const char *label, bool lgAdd, realnum wavelength, const TransitionProxy &tr)
 
realnum wavelength (long index)
 
void resetWavelength (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]
 
long int ipNormWavL
 
realnum WavLNorm
 
long int sig_figs
 
int wl_length
 
double ScaleNormLine
 
char chNormLab [NCHLAB]
 
bool lgNormSet
 
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

const char* t_LineSave::chName ( ) const
inlinevirtual

Implements module.

void t_LineSave::clear ( )
inline

References lines, and m_wavelength.

Referenced by LineStackCreate().

void t_LineSave::comment ( t_warnings )
inlinevirtual

Implements module.

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

References lines, m_wavelength, and wavelength().

Referenced by lincom().

Here is the call graph for this function:

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

References m_wavelength.

Referenced by LinSv::setBlendWavl().

void t_LineSave::resize ( long  nlines)
inline

References lines, and m_wavelength.

Referenced by LineStackCreate().

void t_LineSave::setSortWL ( )

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

Referenced by lines().

Here is the call graph for this function:

realnum t_LineSave::wavelength ( long  index)
inline
void t_LineSave::zero ( void  )
virtual

Member Data Documentation

string t_LineSave::chHoldComments[NHOLDCOMMENTS]

holds comment strings associated with various blocks of output lines

Referenced by PrintSpectrum(), prt_LineLabels(), and StuffComment().

char t_LineSave::chNormLab[NCHLAB]

chNormLab is optional label

Referenced by IterStart(), ParseNorm(), and zero().

long int t_LineSave::ipass
long int t_LineSave::ipNormWavL

NormWL is array index for emission line on normalize command

Referenced by cdLine_ip(), diatomics::getLine(), diatomics::H2_PunchDo(), IterStart(), optimize_func(), PrintSpectrum(), and zero().

bool t_LineSave::lgIsoContSubSignif
bool t_LineSave::lgNormSet

flag saying whether norm has been set

Referenced by IterStart(), ParseNorm(), and zero().

vector<realnum> t_LineSave::m_wavelength
long int t_LineSave::nComment

index to number of comments printed within the block of lines

Referenced by lines(), and StuffComment().

long int t_LineSave::nsum
realnum t_LineSave::RecCoefCNO[4][NRECCOEFCNO]

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

Referenced by GetLineRec(), lines(), and SaveLineData().

double t_LineSave::ScaleNormLine

ScaleNormLine is the scale factor for its appearance

Referenced by cdLine_ip(), diatomics::getLine(), diatomics::H2_PunchDo(), optimize_func(), ParseNorm(), PrintSpectrum(), and zero().

long int t_LineSave::sig_figs

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

Referenced by debugLine(), findline(), GetOptLineInt(), lgCheckMonitors(), ParsePrint(), ParseTest(), PrintSpectrum(), PrtFinal(), SetPrintLineCol(), sprt_wl(), and zero().

const long t_LineSave::sig_figs_max = 6
static
vector<size_t> t_LineSave::SortWL
realnum t_LineSave::WavLNorm

WavLNorm is wavelength of emission line on normalize command

Referenced by IterStart(), lines_helium(), ParseNorm(), and zero().

int t_LineSave::wl_length

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

Referenced by lgCheckMonitors(), prt_wl(), PrtOneMonitor(), SetPrintLineCol(), and sprt_wl().


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