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

#include <FieldPython.h>

Inheritance diagram for FieldPython:
Collaboration diagram for FieldPython:

Public Member Functions

const char * getName ()
 
std::string getDescription ()
 
 FieldPython (PyObject *cb, PyObject *arg=NULL)
 
 ~FieldPython ()
 
double operator() (double x, double y, double z, GEntity *ge=0)
 
- Public Member Functions inherited from Field
 Field ()
 
virtual ~Field ()
 
bool isDeprecated ()
 
virtual void update ()
 
virtual int numComponents () const
 
virtual bool isotropic () const
 
virtual void operator() (double x, double y, double z, SVector3 &, GEntity *ge=0)
 
virtual void operator() (double x, double y, double z, SMetric3 &, GEntity *ge=nullptr)
 
void putOnNewView (int viewTag=-1)
 
FieldOptiongetOption (const std::string &optionName)
 

Private Attributes

PyObject * _callback
 

Additional Inherited Members

- Public Attributes inherited from Field
int id
 
std::map< std::string, FieldOption * > options
 
std::map< std::string, FieldCallback * > callbacks
 
bool updateNeeded
 
- Protected Attributes inherited from Field
bool _deprecated
 

Detailed Description

Definition at line 12 of file FieldPython.h.

Constructor & Destructor Documentation

◆ FieldPython()

FieldPython::FieldPython ( PyObject *  cb,
PyObject *  arg = NULL 
)
inline

Definition at line 20 of file FieldPython.h.

◆ ~FieldPython()

FieldPython::~FieldPython ( )
inline

Definition at line 26 of file FieldPython.h.

Member Function Documentation

◆ getDescription()

std::string FieldPython::getDescription ( )
inlinevirtual

Reimplemented from Field.

Definition at line 18 of file FieldPython.h.

◆ getName()

const char* FieldPython::getName ( )
inlinevirtual

Implements Field.

Definition at line 16 of file FieldPython.h.

◆ operator()()

double FieldPython::operator() ( double  x,
double  y,
double  z,
GEntity ge = 0 
)
inlinevirtual

Implements Field.

Definition at line 28 of file FieldPython.h.

Here is the call graph for this function:

Member Data Documentation

◆ _callback

PyObject* FieldPython::_callback
private

Definition at line 13 of file FieldPython.h.

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


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