gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
constantPerElement< scalar > Class Template Reference

#include <simpleFunction.h>

Inheritance diagram for constantPerElement< scalar >:
Collaboration diagram for constantPerElement< scalar >:

Public Member Functions

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

Private Attributes

std::map< MElement *, scalar > _data
 
MElement_e
 

Additional Inherited Members

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

Detailed Description

template<class scalar>
class constantPerElement< scalar >

Definition at line 42 of file simpleFunction.h.

Constructor & Destructor Documentation

◆ constantPerElement()

template<class scalar >
constantPerElement< scalar >::constantPerElement ( )
inline

Definition at line 47 of file simpleFunction.h.

Member Function Documentation

◆ operator()()

template<class scalar >
virtual scalar constantPerElement< scalar >::operator() ( double  x,
double  y,
double  z 
) const
inlinevirtual

Reimplemented from simpleFunction< scalar >.

Definition at line 50 of file simpleFunction.h.

◆ set()

template<class scalar >
void constantPerElement< scalar >::set ( MElement e,
scalar  v 
)
inline

Definition at line 48 of file simpleFunction.h.

Referenced by backgroundMesh::propagateCrossField().

Here is the caller graph for this function:

◆ setElement()

template<class scalar >
void constantPerElement< scalar >::setElement ( MElement e) const
inlinevirtual

Reimplemented from simpleFunction< scalar >.

Definition at line 49 of file simpleFunction.h.

Member Data Documentation

◆ _data

template<class scalar >
std::map<MElement *, scalar> constantPerElement< scalar >::_data
private

◆ _e

template<class scalar >
MElement* constantPerElement< scalar >::_e
mutableprivate

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