cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Data Fields | Static Public Attributes
t_LineSave Struct Reference

#include <lines.h>

Inheritance diagram for t_LineSave:
Inheritance graph
[legend]
Collaboration diagram for t_LineSave:
Collaboration graph
[legend]

Public Member Functions

const char * chName () const
 
void zero ()
 
void comment (t_warnings &)
 
long findline (const char *chLabel, realnum wavelength)
 
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)
 
- Public Member Functions inherited from module
 module ()
 
virtual ~module ()
 

Data Fields

long int nsum
 
long int nComment
 
long int ipass
 
char chHoldComments [NHOLDCOMMENTS][INPUT_LINE_LENGTH]
 
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 malloced to form a large array after number of lines is counted, but this is the final form

Definition at line 76 of file lines.h.

Member Function Documentation

const char* t_LineSave::chName ( ) const
inlinevirtual

Implements module.

Definition at line 77 of file lines.h.

void t_LineSave::clear ( )
inline

Definition at line 135 of file lines.h.

References lines, and m_wavelength.

Referenced by LineStackCreate().

void t_LineSave::comment ( t_warnings )
inlinevirtual

Implements module.

Definition at line 82 of file lines.h.

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

Definition at line 436 of file lines.h.

References lines, m_wavelength, and wavelength().

Referenced by lincom().

Here is the call graph for this function:

void t_LineSave::resize ( long  nlines)
inline

Definition at line 450 of file lines.h.

References lines, and m_wavelength.

Referenced by LineStackCreate().

void t_LineSave::setSortWL ( )

Definition at line 283 of file lines.cpp.

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

Implements module.

Definition at line 13 of file lines.cpp.

References chNormLab, DEBUG_ENTRY, ipNormWavL, lgNormSet, ScaleNormLine, sig_figs, sig_figs_max, and WavLNorm.

Field Documentation

char t_LineSave::chHoldComments[NHOLDCOMMENTS][INPUT_LINE_LENGTH]

holds comment strings associated with various blocks of output lines

Definition at line 99 of file lines.h.

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

char t_LineSave::chNormLab[NCHLAB]

chNormLab is optional label

Definition at line 120 of file lines.h.

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

long int t_LineSave::ipass

there are three types of calls to lines() ipass = -1, first call, only count number off lines ipass = 0, second pass, save labels and wavelengths ipass = 1, integrate intensity

Definition at line 96 of file lines.h.

Referenced by LinSv::addComponent(), findline(), FindStrongestLineLabels(), diatomics::H2_LinesAdd(), lincom(), lindst(), lindst1(), lines(), lines_continuum(), lines_general(), lines_helium(), lines_hydro(), LineStackCreate(), LinSv::makeBlend(), PntForLine(), PrtLineSum(), PutLine(), SpeciesPseudoContAccum(), and StuffComment().

long int t_LineSave::ipNormWavL

NormWL is array index for emission line on normalize command

Definition at line 102 of file lines.h.

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

bool t_LineSave::lgIsoContSubSignif

Definition at line 150 of file lines.h.

Referenced by IterStart(), prt_smooth_predictions(), and set_xIntensity().

bool t_LineSave::lgNormSet

flag saying whether norm has been set

Definition at line 123 of file lines.h.

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

vector<LinSv> t_LineSave::lines
vector<realnum> t_LineSave::m_wavelength

Definition at line 133 of file lines.h.

Referenced by clear(), init(), resize(), and wavelength().

long int t_LineSave::nComment

index to number of comments printed within the block of lines

Definition at line 90 of file lines.h.

Referenced by lines(), and StuffComment().

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

Definition at line 87 of file lines.h.

Referenced by badprt(), cdEmis_ip(), cdLine_ip(), debugLine(), Drive_cdLine(), findline(), FindStrongestLineLabels(), diatomics::H2_PunchDo(), IterEnd(), IterStart(), lgCheckMonitors(), lincom(), lindst(), lines(), lines_continuum(), lines_hydro(), LineStackCreate(), LinSv::makeBlend(), PrintSpectrum(), prt_LineLabels(), PrtFinal(), save_line(), SaveDo(), SaveLineIntensity(), SaveResults(), setSortWL(), and totlin().

realnum t_LineSave::RecCoefCNO[4][NRECCOEFCNO]

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

Definition at line 126 of file lines.h.

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

double t_LineSave::ScaleNormLine

ScaleNormLine is the scale factor for its appearance

Definition at line 117 of file lines.h.

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

Definition at line 109 of file lines.h.

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

const long t_LineSave::sig_figs_max = 6
static

Definition at line 110 of file lines.h.

Referenced by lgCheckMonitors(), ParsePrint(), WavlenErrorGet(), and zero().

vector<size_t> t_LineSave::SortWL

Definition at line 134 of file lines.h.

Referenced by findline(), FindStrongestLineLabels(), and setSortWL().

realnum t_LineSave::WavLNorm

WavLNorm is wavelength of emission line on normalize command

Definition at line 105 of file lines.h.

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)

Definition at line 114 of file lines.h.

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


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