Null.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2007 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/MEAL/MEAL/Null.h
10 
11 #ifndef __MEAL_Null_H
12 #define __MEAL_Null_H
13 
14 #include "MEAL/Function.h"
15 #include "MEAL/Parameters.h"
16 
17 namespace MEAL {
18 
20  class Null : public Function {
21 
22  public:
23 
25  Null (unsigned nparam = 0);
26 
28  Null (const Null&);
29 
31  Null& operator = (const Null&);
32 
34  void resize (unsigned nparam);
35 
36  // ///////////////////////////////////////////////////////////////////
37  //
38  // Function implementation
39  //
40  // ///////////////////////////////////////////////////////////////////
41 
43  std::string get_name () const;
44 
45  private:
46 
48  Parameters parameters;
49 
51  void init ();
52 
53  };
54 
55 }
56 
57 #endif
Abstract base class implements parameter storage and access.
Definition: Parameters.h:28
Null function holds an arbitrary number of parameters.
Definition: Null.h:25
Null(unsigned nparam=0)
Default constructor.
Definition: Null.C:19
Null & operator=(const Null &)
Assignment operator.
Definition: Null.C:33
Namespace in which all modeling and calibration related code is declared.
Definition: ExampleComplex2.h:16
void resize(unsigned nparam)
Resize, setting fit=true for new parameters.
Definition: Null.C:47
virtual void copy(const Function *model)
Does the work for operator =.
Definition: Function.C:58
std::string get_name() const
Return the name of the class.
Definition: Null.C:42

Generated using doxygen 1.8.17