gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
Go to the documentation of this file.
13 #include "GmshConfig.h"
22 #if defined(HAVE_POST)
44 virtual void run() = 0;
63 FieldOption(
const std::string &help,
bool *_status,
bool deprecated)
81 default:
return "unknown";
86 virtual const std::list<int> &
list()
const
88 static std::list<int> l;
93 static std::list<double> l;
96 virtual void list(std::list<int> value) {}
98 virtual std::string
string()
const {
return ""; }
99 virtual void string(
const std::string value) {}
131 #if defined(HAVE_POST)
132 void putOnView(
PView *view,
int comp = -1);
175 for(std::size_t i = 0; i <
tags.size(); ++i)
213 virtual double operator()(
double x,
double y,
double z,
239 if(*it1 == iV)
return *it2;
255 if(i == iV)
return h;
270 bool *
status =
nullptr,
bool deprecated =
false)
282 std::ostringstream sstream;
283 sstream <<
"\"" <<
val <<
"\"";
284 v_str = sstream.str();
293 bool *
status =
nullptr,
bool deprecated =
false)
305 std::ostringstream sstream;
306 sstream.precision(16);
308 v_str = sstream.str();
317 bool deprecated =
false)
329 std::ostringstream sstream;
331 v_str = sstream.str();
340 bool *
status =
nullptr,
bool deprecated =
false)
344 void list(std::list<int> value)
349 const std::list<int> &
list()
const {
return val; }
352 std::ostringstream sstream;
354 for(
auto it =
val.begin(); it !=
val.end(); it++) {
355 if(it !=
val.begin()) sstream <<
", ";
359 v_str = sstream.str();
368 bool *
status =
nullptr,
bool deprecated =
false)
380 std::ostringstream sstream;
381 sstream.precision(16);
383 for(
auto it =
val.begin(); it !=
val.end(); it++) {
384 if(it !=
val.begin()) sstream <<
", ";
388 v_str = sstream.str();
396 bool *
status =
nullptr,
bool deprecated =
false)
407 bool deprecated =
false)
419 std::ostringstream sstream;
421 v_str = sstream.str();
432 const std::string description)
452 typedef bool (*
ptrfunction)(double, double, double,
void *,
double &);
459 using Field::operator();
460 virtual double operator()(
double x,
double y,
double z,
462 virtual const char *
getName() {
return "GenericField"; };
469 std::vector<std::pair<ptrfunction, void *> >
471 std::vector<std::pair<ptrfunctionextended, void *> >
void getTextRepresentation(std::string &v_str)
void getTextRepresentation(std::string &v_str)
virtual std::string getDescription()
bool isEdgeBLSaved(int iE) const
virtual void numericalValue(double val)
static std::map< SPoint2, unsigned int > tags
DistanceField * currentClosest
FieldOptionBool(bool &_val, const std::string &help, bool *status=nullptr, bool deprecated=false)
bool(* ptrfunction)(double, double, double, void *, double &)
std::map< std::string, FieldCallback * > callbacks
void setCallbackWithData(ptrfunction fct, void *data)
std::string getTypeName()
virtual void getTextRepresentation(std::string &v_str)=0
virtual const char * getName()
virtual void operator()(double x, double y, double z, SMetric3 &, GEntity *ge=nullptr)
virtual std::string string() const
std::vector< int > _boundaryLayerFields
FieldCallback(const std::string &help)
virtual const std::list< double > & listdouble() const
void list(std::list< int > value)
std::list< int > _pointTagsSaved
virtual bool isotropic() const
FieldOptionInt(int &_val, const std::string &help, bool *status=nullptr, bool deprecated=false)
virtual std::string getDescription()
virtual const std::list< int > & list() const
FieldCallbackGeneric(t *field, void(t::*callback)(), const std::string description)
virtual std::string getDescription()
virtual double operator()(double x, double y, double z, GEntity *ge=nullptr)
std::vector< std::pair< ptrfunction, void * > > cbs_with_data
virtual void list(std::list< int > value)
virtual std::string getDescription()
virtual double numericalValue() const
virtual int numComponents() const
void addBoundaryLayerFieldId(std::vector< int > &tags)
void computeFor1dMesh(double x, double y, double z, SMetric3 &metr)
virtual FieldOptionType getType()=0
std::list< int > _curveTagsSaved
virtual const char * getName()
double numericalValue() const
void numericalValue(double v)
void string(const std::string value)
virtual Field * operator()()=0
std::list< double > _hWallNNodes
std::list< int > _curveTags
std::list< int > _pointTags
std::list< int > _fanPointTags
FieldOption * getOption(const std::string &optionName)
void setBackgroundFieldId(int id)
virtual FieldOptionType getType()
virtual void operator()(double x, double y, double z, SVector3 &, GEntity *ge=0)
double numericalValue() const
std::map< std::string, FieldFactory * > mapTypeName
FieldOptionString(std::string &_val, const std::string &help, bool *status=nullptr, bool deprecated=false)
FieldOption(const std::string &help, bool *_status, bool deprecated)
void getTextRepresentation(std::string &v_str)
std::list< int > _excludedSurfaceTags
virtual FieldOptionType getType()
void getTextRepresentation(std::string &v_str)
FieldOptionListDouble(std::list< double > &_val, const std::string &help, bool *status=nullptr, bool deprecated=false)
void getTextRepresentation(std::string &v_str)
const std::list< double > & listdouble() const
bool(* ptrfunctionextended)(double, double, double, void *, void *, double &)
FieldOptionList(std::list< int > &_val, const std::string &help, bool *status=nullptr, bool deprecated=false)
FieldOptionType getType()
void numericalValue(double v)
void setBackgroundMesh(int iView)
std::list< DistanceField * > _attFields
FieldOptionType getType()
virtual bool isotropic() const
std::vector< std::pair< ptrfunctionextended, void * > > cbs_extended_with_data
void getTextRepresentation(std::string &v_str)
virtual const char * getName()=0
virtual void listdouble(std::list< double > value)
int getBoundaryLayerField(int i)
void listdouble(std::list< double > value)
std::list< double > & val
std::map< std::string, FieldOption * > options
FieldOptionType getType()
bool isEndNode(int iV) const
bool isFanNode(int iV) const
std::list< int > _fanSizes
double numericalValue() const
virtual void string(const std::string value)
void putOnNewView(int viewTag=-1)
void addBoundaryLayerFieldId(int id)
FieldOptionType getType()
int getNumBoundaryLayerFields()
virtual double operator()(double x, double y, double z, GEntity *ge=nullptr)=0
FieldOptionType getType()
@ FIELD_OPTION_LIST_DOUBLE
std::string string() const
const std::list< int > & list() const
Field * newField(int id, const std::string &type_name)
void operator()(DistanceField *cc, double dist, double x, double y, double z, SMetric3 &metr, GEntity *ge)
FieldOptionDouble(double &_val, const std::string &help, bool *status=nullptr, bool deprecated=false)
int boundaryLayerFanElements
void numericalValue(double v)
FieldOptionPath(std::string &val, const std::string &help, bool *status=nullptr, bool deprecated=false)
bool isEdgeBL(int iE) const
void setBackgroundField(Field *BGF)