cloudy
trunk
source
monointerp.h
Go to the documentation of this file.
1
/* This file is part of Cloudy and is copyright (C)1978-2013 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
11
class
Monointerp
{
12
const
std::vector<double>
m_x
,
m_y
;
13
std::vector<double>
m_g
;
14
15
public
:
16
// CONSTRUCTORS
17
Monointerp
(
const
double
x[],
const
double
y[],
long
n);
18
~Monointerp
(
void
);
19
private
:
20
Monointerp
(
const
Monointerp
& );
// Not implemented
21
Monointerp
&
operator=
(
const
Monointerp
& );
// Not implemented
22
23
// MANIPULATORS -- None
24
25
// ACCESSORS
26
public
:
27
double
operator()
(
double
xval)
const
;
28
29
};
30
#endif
Monointerp::m_g
std::vector< double > m_g
Definition:
monointerp.h:13
Monointerp::operator()
double operator()(double xval) const
Definition:
monointerp.cpp:75
Monointerp::~Monointerp
~Monointerp(void)
Definition:
monointerp.cpp:70
Monointerp::operator=
Monointerp & operator=(const Monointerp &)
Monointerp::m_x
const std::vector< double > m_x
Definition:
monointerp.h:12
Monointerp::Monointerp
Monointerp(const double x[], const double y[], long n)
Definition:
monointerp.cpp:43
Monointerp::m_y
const std::vector< double > m_y
Definition:
monointerp.h:12
Monointerp
Definition:
monointerp.h:11
Generated by
1.8.17