MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Interpol.h
Go to the documentation of this file.
1 // Interpol.h ---
2 //
3 // Filename: Interpol.h
4 // Description:
5 // Author: Subhasis Ray
6 // Maintainer:
7 // Created: Wed Jun 25 15:13:52 2014 (+0530)
8 // Version:
9 // Last-Updated:
10 // By:
11 // Update #: 0
12 // URL:
13 // Keywords:
14 // Compatibility:
15 //
16 //
17 
18 // Commentary:
19 //
20 //
21 //
22 //
23 
24 // Change log:
25 //
26 //
27 //
28 //
29 // This program is free software; you can redistribute it and/or
30 // modify it under the terms of the GNU General Public License as
31 // published by the Free Software Foundation; either version 3, or
32 // (at your option) any later version.
33 //
34 // This program is distributed in the hope that it will be useful,
35 // but WITHOUT ANY WARRANTY; without even the implied warranty of
36 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
37 // General Public License for more details.
38 //
39 // You should have received a copy of the GNU General Public License
40 // along with this program; see the file COPYING. If not, write to
41 // the Free Software Foundation, Inc., 51 Franklin Street, Fifth
42 // Floor, Boston, MA 02110-1301, USA.
43 //
44 //
45 
46 // Code:
47 
48 #ifndef _INTERPOL_H
49 #define _INTERPOL_H
50 
56 class Interpol: public TableBase
57 {
58  public:
59  Interpol();
60  Interpol(double xmin, double xmax);
61 
63  // Here are the interface functions for the MOOSE class
65  void setXmin( double value );
66  double getXmin() const;
67  void setXmax( double value );
68  double getXmax() const;
69  double getY() const;
71  // Here are the Interpol Destination functions
73  void handleInput(double x);
74  void process( const Eref& e, ProcPtr p );
75  void reinit( const Eref& e, ProcPtr p );
76 
77 
78  static const Cinfo* initCinfo();
79  static const unsigned int MAX_DIVS;
80  protected:
81  double x_;
82  double xmin_;
83  double xmax_;
84  double y_;
85 };
86 
87 
88 #endif // _INTERPOL_H
89 
90 
91 //
92 // Interpol.h ends here
uint32_t value
Definition: moosemodule.h:42
void setXmin(double value)
Definition: Interpol.cpp:157
double xmin_
Definition: Interpol.h:82
void handleInput(double x)
Definition: Interpol.cpp:209
void process(const Eref &e, ProcPtr p)
Definition: Interpol.cpp:194
void reinit(const Eref &e, ProcPtr p)
Definition: Interpol.cpp:200
double xmax_
Definition: Interpol.h:83
static const unsigned int MAX_DIVS
Definition: Interpol.h:79
Definition: Eref.h:26
static const Cinfo * initCinfo()
Definition: Interpol.cpp:61
void setXmax(double value)
Definition: Interpol.cpp:171
double x_
Definition: Interpol.h:81
double getXmin() const
Definition: Interpol.cpp:166
double y_
Definition: Interpol.h:84
double getY() const
Definition: Interpol.cpp:185
Definition: Cinfo.h:18
double getXmax() const
Definition: Interpol.cpp:180