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

#include <Field.h>

Inheritance diagram for GenericField:
Collaboration diagram for GenericField:

Public Types

typedef bool(* ptrfunction) (double, double, double, void *, double &)
 
typedef bool(* ptrfunctionextended) (double, double, double, void *, void *, double &)
 

Public Member Functions

 GenericField ()
 
 ~GenericField ()
 
virtual double operator() (double x, double y, double z, GEntity *ge=nullptr)
 
virtual const char * getName ()
 
void setCallbackWithData (ptrfunction fct, void *data)
 
void setCallbackWithData (ptrfunctionextended fct, void *data)
 
- 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)
 
virtual std::string getDescription ()
 
FieldOptiongetOption (const std::string &optionName)
 

Private Attributes

std::vector< std::pair< ptrfunction, void * > > cbs_with_data
 
std::vector< std::pair< ptrfunctionextended, void * > > cbs_extended_with_data
 

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 448 of file Field.h.

Member Typedef Documentation

◆ ptrfunction

typedef bool(* GenericField::ptrfunction) (double, double, double, void *, double &)

Definition at line 452 of file Field.h.

◆ ptrfunctionextended

typedef bool(* GenericField::ptrfunctionextended) (double, double, double, void *, void *, double &)

Definition at line 454 of file Field.h.

Constructor & Destructor Documentation

◆ GenericField()

GenericField::GenericField ( )

Definition at line 3289 of file Field.cpp.

◆ ~GenericField()

GenericField::~GenericField ( )

Definition at line 3291 of file Field.cpp.

Member Function Documentation

◆ getName()

virtual const char* GenericField::getName ( )
inlinevirtual

Implements Field.

Definition at line 462 of file Field.h.

◆ operator()()

double GenericField::operator() ( double  x,
double  y,
double  z,
GEntity ge = nullptr 
)
virtual

Implements Field.

Definition at line 3293 of file Field.cpp.

Here is the call graph for this function:

◆ setCallbackWithData() [1/2]

void GenericField::setCallbackWithData ( ptrfunction  fct,
void *  data 
)

Definition at line 3317 of file Field.cpp.

◆ setCallbackWithData() [2/2]

void GenericField::setCallbackWithData ( ptrfunctionextended  fct,
void *  data 
)

Definition at line 3322 of file Field.cpp.

Member Data Documentation

◆ cbs_extended_with_data

std::vector<std::pair<ptrfunctionextended, void *> > GenericField::cbs_extended_with_data
private

Definition at line 472 of file Field.h.

Referenced by operator()(), and setCallbackWithData().

◆ cbs_with_data

std::vector<std::pair<ptrfunction, void *> > GenericField::cbs_with_data
private

Definition at line 470 of file Field.h.

Referenced by operator()(), and setCallbackWithData().


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