Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
generic_state.h
Go to the documentation of this file.
1/* This file is part of Cloudy and is copyright (C)1978-2025 by Gary J. Ferland and
2 * others. For conditions of distribution and use see copyright notice in license.txt */
3
4#ifndef GENERIC_STATE_H_
5#define GENERIC_STATE_H_
6
7#include "quantumstate.h"
8
9class molezone;
11{
12public:
14 explicit genericState(const molezone* sp) : sp(sp), val(NULL) {}
16 : sp(NULL), q(q), val(NULL) {}
17 explicit genericState(const char *valLabel, const double *val)
18 : sp(NULL), val(val), valLabel(valLabel) {}
19 const molezone* sp;
21 const double* val;
22 string valLabel;
23 bool associated() const;
24 string label() const;
25 string database() const;
26 bool isSpecies() const;
27};
28
29double column(const genericState&);
30double density(const genericState&);
31double depart(const genericState&);
32double energy(const genericState&);
33double levels(const genericState&);
34
42void extractLevels( const string &chLabel,
43 string &species,
44 long &nLevelLo,
45 long &nLevelHi,
46 bool &lgLevels );
47
53const molezone *getLevelsGeneric(const string &chLabel, bool lgValidate, vector<long> &LevelList);
54
60vector<genericState> matchGeneric(const string &chLabel, bool lgValidate);
61
68genericState getSpeciesGeneric( const string &speciesLabel );
69
70
71#endif // GENERIC_STATE_H_
#define NULL
Definition cddefines.h:115
Definition generic_state.h:11
genericState(const qStateConstProxy &q)
Definition generic_state.h:15
string valLabel
Definition generic_state.h:22
bool isSpecies() const
Definition generic_state.cpp:73
genericState(const molezone *sp)
Definition generic_state.h:14
const molezone * sp
Definition generic_state.h:19
qStateConstProxy q
Definition generic_state.h:20
genericState()
Definition generic_state.h:13
genericState(const char *valLabel, const double *val)
Definition generic_state.h:17
bool associated() const
Definition generic_state.cpp:101
string database() const
Definition generic_state.cpp:93
string label() const
Definition generic_state.cpp:81
const double * val
Definition generic_state.h:21
Definition mole.h:407
Definition quantumstate.h:286
Definition species.h:12
double density(const genericState &)
Definition generic_state.cpp:27
double energy(const genericState &)
Definition generic_state.cpp:51
genericState getSpeciesGeneric(const string &speciesLabel)
Definition generic_state.cpp:357
vector< genericState > matchGeneric(const string &chLabel, bool lgValidate)
Definition generic_state.cpp:292
double column(const genericState &)
Definition generic_state.cpp:15
const molezone * getLevelsGeneric(const string &chLabel, bool lgValidate, vector< long > &LevelList)
Definition generic_state.cpp:221
void extractLevels(const string &chLabel, string &species, long &nLevelLo, long &nLevelHi, bool &lgLevels)
Definition generic_state.cpp:114
double depart(const genericState &)
Definition generic_state.cpp:39
double levels(const genericState &)
Definition generic_state.cpp:63