14 #ifndef FunctionWrap_H
15 #define FunctionWrap_H
42 boost::python::object
get_owner (
T * me )
const;
70 void setParmNames (
const std::vector < std::string > & names );
91 double operator () (
const std::vector < double > & )
const;
106 #endif // FunctionWrap_H
double operator()(double) const
void setParmNames(const std::vector< std::string > &names)
Sets the names of the parameters and re-sizes the number of parameters available. ...
void initialParameters(const FunctionHelper *)
Sets the FunctionHelper so that the function can calculate a reasonable set of initial parameter valu...
virtual bool hasDerivatives() const
Returns true if the Python function has implemented returning partial derivatives.
virtual ~FunctionWrap()
The destructor.
double derivByParm(int, double) const
A wrapper class for FunctionBase.
boost::python::object invert_ownership
The new ownership.
A function that can be added to a DataRep and used in a fitter.
An abstract base class to help FunctionBase objects perform some operations.
FunctionBase * clone() const
Make copy of object, including copy of Python object.
unsigned int dimensions() const
Returns the number of dimensions of the data coordinate.
hippodraw::FunctionBase class interface
boost::python::object get_owner(T *me) const
Find the Python object that owns this object.
void setName(const std::string &name)
Sets the name of the function.
const std::string & name() const
Returns the name of the function.
FunctionWrap()
The default constructor.