ParameterTracer.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/MEAL/MEAL/ParameterTracer.h
10 
11 #ifndef __MEAL_ParameterTracer_H
12 #define __MEAL_ParameterTracer_H
13 
14 #include "MEAL/Tracer.h"
15 
16 namespace MEAL
17 {
18 
20  class ParameterTracer : public Tracer
21  {
22  public:
23 
25  ParameterTracer (Function* model = 0, unsigned param = 0);
26 
28  virtual void watch (Function* model, unsigned param);
29 
30  protected:
31 
33  unsigned parameter;
34 
36  double current_value;
37 
39  void report ();
40 
41  };
42 
43 }
44 
45 #endif
46 
void report()
Report the parameter value.
Definition: ParameterTracer.C:32
Reference::To< Function > model
The function to watch.
Definition: Tracer.h:46
double current_value
The current value of the watched parameter.
Definition: ParameterTracer.h:46
unsigned parameter
The parameter to watch.
Definition: ParameterTracer.h:43
virtual void watch(Function *model, unsigned param)
Trace the specified parameter of the specified function.
Definition: ParameterTracer.C:22
Namespace in which all modeling and calibration related code is declared.
Definition: ExampleComplex2.h:16
ParameterTracer(Function *model=0, unsigned param=0)
Default constructor.
Definition: ParameterTracer.C:13
Pure virtual base class of all functions.
Definition: Function.h:49

Generated using doxygen 1.8.17