gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
simpleFunctionPython Class Reference

#include <simpleFunctionPython.h>

Inheritance diagram for simpleFunctionPython:
Collaboration diagram for simpleFunctionPython:

Public Member Functions

 simpleFunctionPython (PyObject *callback)
 
 ~simpleFunctionPython ()
 
double operator() (double x, double y, double z) const
 
- Public Member Functions inherited from simpleFunction< double >
 simpleFunction (double val=0.0)
 
virtual ~simpleFunction ()
 
virtual bool hasDerivatives ()
 
virtual void setElement (MElement *e) const
 
virtual void gradient (double x, double y, double z, double &dfdx, double &dfdy, double &dfdz) const
 
virtual void hessian (double x, double y, double z, double &dfdxx, double &dfdxy, double &dfdxz, double &dfdyx, double &dfdyy, double &dfdyz, double &dfdzx, double &dfdzy, double &dfdzz) const
 

Private Attributes

PyObject * _pycallback
 

Additional Inherited Members

- Protected Attributes inherited from simpleFunction< double >
double _val
 
bool _hasDerivatives
 

Detailed Description

Definition at line 12 of file simpleFunctionPython.h.

Constructor & Destructor Documentation

◆ simpleFunctionPython()

simpleFunctionPython::simpleFunctionPython ( PyObject *  callback)
inline

Definition at line 16 of file simpleFunctionPython.h.

◆ ~simpleFunctionPython()

simpleFunctionPython::~simpleFunctionPython ( )
inline

Definition at line 20 of file simpleFunctionPython.h.

Member Function Documentation

◆ operator()()

double simpleFunctionPython::operator() ( double  x,
double  y,
double  z 
) const
inlinevirtual

Reimplemented from simpleFunction< double >.

Definition at line 21 of file simpleFunctionPython.h.

Here is the call graph for this function:

Member Data Documentation

◆ _pycallback

PyObject* simpleFunctionPython::_pycallback
private

Definition at line 13 of file simpleFunctionPython.h.

Referenced by operator()(), simpleFunctionPython(), and ~simpleFunctionPython().


The documentation for this class was generated from the following file: