Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
monointerp.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 MONOINTERP_H_
5#define MONOINTERP_H_
6
7// Usage:
8// Monointerp m(xvals,yvals, npt); -- Constructor
9// y_interp = m(x_interp); -- Interpolate value
10
12 const std::vector<double> m_x, m_y;
13 std::vector<double> m_g;
14
15public:
16 // CONSTRUCTORS
17 Monointerp ( const double x[], const double y[], long n);
18 ~Monointerp(void);
19private:
20 Monointerp ( const Monointerp& ); // Not implemented
21 Monointerp& operator= ( const Monointerp& ); // Not implemented
22
23 // MANIPULATORS -- None
24
25 // ACCESSORS
26public:
27 double operator() ( double xval) const;
28
29};
30#endif
std::vector< double > m_g
Definition monointerp.h:13
Monointerp(const Monointerp &)
double operator()(double xval) const
Definition monointerp.cpp:75
Monointerp & operator=(const Monointerp &)
~Monointerp(void)
Definition monointerp.cpp:70
const std::vector< double > m_y
Definition monointerp.h:12
Monointerp(const double x[], const double y[], long n)
Definition monointerp.cpp:43
const std::vector< double > m_x
Definition monointerp.h:12