Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
depth_table.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 DEPTH_TABLE_H_
5#define DEPTH_TABLE_H_
6
8{
9public:
10 /* lg is true if depth, false if radius to be used*/
11 bool lgDepth;
13 vector<double> dist;
14 vector<double> val;
15
17 long int nvals() const
18 {
19 ASSERT( dist.size() == val.size() );
20 return long(dist.size());
21 }
22
27 double tabval( double r0, double depth) const;
28 void clear()
29 {
30 lgDepth = false;
31 dist.resize(0);
32 val.resize(0);
33 }
34};
35
36#endif // DEPTH_TABLE_H_
#define ASSERT(exp)
Definition cddefines.h:637
Definition depth_table.h:8
vector< double > val
Definition depth_table.h:14
bool lgDepth
Definition depth_table.h:11
double tabval(double r0, double depth) const
Definition depth_table.cpp:8
void clear()
Definition depth_table.h:28
vector< double > dist
Definition depth_table.h:13
long int nvals() const
Definition depth_table.h:17