FunctionInterface.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2009 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/MEAL/MEAL/FunctionInterface.h
10 
11 #ifndef __MEAL_FunctionInterface_h
12 #define __MEAL_FunctionInterface_h
13 
14 #include "MEAL/Function.h"
15 #include "TextInterface.h"
16 
17 namespace MEAL
18 {
19 
21  class Function::Interface : public TextInterface::To<Function>
22  {
23 
24  public:
25 
27  Interface ( Function* = 0 );
28 
30  std::string get_interface_name() const { return "Function::Interface"; }
31  };
32 
33 }
34 
35 
36 #endif
virtual void print_parameters(std::string &text, const std::string &separator) const
Prints the values of model parameters and fit flags to a string.
Definition: Function_print.C:22
virtual void print(std::string &text) const
Prints the values of model parameters and fit flags to a string.
Definition: Function_print.C:14
const ScalarMath sqrt(const ScalarMath &x)
Return a ScalarMath instance representing x^.5.
Definition: ScalarMath.C:151
static Function * factory(const std::string &text)
Construct a new Function instance from a string.
Definition: Function_factory.C:40
Namespace in which all modeling and calibration related code is declared.
Definition: ExampleComplex2.h:16
static List & get_registry()
static bool verbose
Verbosity flag.
Definition: Function.h:54
Interface(Function *=0)
Default constructor that takes an optional instance.
Definition: FunctionInterface.C:12
unsigned size() const
Pure virtual base class of all functions.
Definition: Function.h:49
virtual void parse(const std::string &text)
Parses the values of model parameters and fit flags from a string.
Definition: Function_parse.C:16
static Function * load_Function(const std::string &filename)
Construct a new Function instance from a file.
Definition: Function_load.C:12
Classes derived from Function are registered for use via an Advocate.
Definition: Agent.h:53
Function()
Default constructor.
Definition: Function.C:24
std::string get_interface_name() const
Get the interface name.
Definition: FunctionInterface.h:40

Generated using doxygen 1.8.17