cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
generic_state.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2022 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 
9 class molezone;
11 {
12 public:
13  genericState() : sp(NULL), val(NULL) {}
14  explicit genericState(const molezone* sp) : sp(sp), val(NULL) {}
15  explicit genericState(const qStateConstProxy& q)
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 };
27 
28 double column(const genericState&);
29 double density(const genericState&);
30 double depart(const genericState&);
31 double energy(const genericState&);
32 double levels(const genericState&);
33 
39 const molezone *getLevelsGeneric(const char *chLabel, bool lgValidate, vector<long> &LevelList);
40 
46 vector<genericState> matchGeneric(const char *chLabel, bool lgValidate);
47 
48 #endif // GENERIC_STATE_H_
genericState(const molezone *sp)
Definition: generic_state.h:14
double depart(const genericState &gs)
vector< genericState > matchGeneric(const char *chLabel, bool lgValidate)
Definition: mole.h:378
bool associated() const
const double * val
Definition: generic_state.h:21
double energy(const genericState &gs)
string valLabel
Definition: generic_state.h:22
const molezone * getLevelsGeneric(const char *chLabel, bool lgValidate, vector< long > &LevelList)
string database() const
double column(const genericState &gs)
const molezone * sp
Definition: generic_state.h:19
double levels(const genericState &gs)
double density(const genericState &gs)
genericState(const qStateConstProxy &q)
Definition: generic_state.h:15
string label() const
genericState(const char *valLabel, const double *val)
Definition: generic_state.h:17
qStateConstProxy q
Definition: generic_state.h:20