UnivariatePolicy.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2005 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/MEAL/MEAL/UnivariatePolicy.h
10 
11 #ifndef __MEAL_UnivariatePolicy_H
12 #define __MEAL_UnivariatePolicy_H
13 
14 #include "MEAL/ArgumentPolicy.h"
15 
16 namespace MEAL {
17 
19  class UnivariatePolicy : public ArgumentPolicy {
20 
21  public:
22 
25 
28 
31 
34 
36  UnivariatePolicy* clone (Function* context) const;
37 
39  void set_abscissa (double value);
40 
42  double get_abscissa () const;
43 
45  void set_argument (unsigned dimension, Argument* axis);
46 
47  protected:
48 
50  double abscissa;
51 
52  };
53 
54 }
55 
56 #endif
57 
UnivariatePolicy * clone(Function *context) const
Clone operator.
Definition: UnivariatePolicy.C:44
~UnivariatePolicy()
Desctructor.
Definition: UnivariatePolicy.C:22
An argument of a specified type.
Definition: Axis.h:31
void set_abscissa(double value)
Set the abscissa value.
Definition: UnivariatePolicy.C:52
Pure virtual base class of function arguments.
Definition: Argument.h:30
Managers of Function arguments.
Definition: ArgumentPolicy.h:26
void set_argument(unsigned dimension, Argument *axis)
If Argument is an Axis<double>, connect it to set_abscissa.
Definition: UnivariatePolicy.C:70
A function of one scalar variable.
Definition: UnivariatePolicy.h:24
Namespace in which all modeling and calibration related code is declared.
Definition: ExampleComplex2.h:16
static bool verbose
Verbosity flag.
Definition: Function.h:54
Callback< Type > signal
The mechanism by which methods are connected.
Definition: Axis.h:102
double get_abscissa() const
Get the abscissa value.
Definition: UnivariatePolicy.C:65
Pure virtual base class of all functions.
Definition: Function.h:49
const UnivariatePolicy & operator=(const UnivariatePolicy &)
Assignment operator.
Definition: UnivariatePolicy.C:35
UnivariatePolicy(Function *context)
Default constructor.
Definition: UnivariatePolicy.C:15
double abscissa
The abscissa value.
Definition: UnivariatePolicy.h:60

Generated using doxygen 1.8.17