 |
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
35 #pragma GCC visibility push(default)
78 double machineEps = 1.0e-7,
81 machineEps_(machineEps),
110 virtual AbaOStream& lout()
const;
123 virtual AbaOStream& fout()
const;
128 double eps()
const {
return eps_; }
134 void eps(
double e) { eps_ = e; }
181 return ( x >= infinity_ );
189 return ( x <= -infinity_ );
197 bool equal(
double x,
double y)
const {
198 return ( fabs(x-y) < machineEps_ );
204 return isInteger(x, machineEps_);
208 bool isInteger(
double x,
double eps)
const;
216 void readParameters(
const string &fileName);
225 void insertParameter(
const char *name,
const char *value);
239 int getParameter(
const char *name,
int ¶m)
const;
240 int getParameter(
const char *name,
unsigned int ¶m)
const;
241 int getParameter(
const char *name,
double ¶m)
const;
242 int getParameter(
const char *name,
string ¶m)
const;
243 int getParameter(
const char *name,
bool ¶m)
const;
244 int getParameter(
const char *name,
char ¶m)
const;
269 void assignParameter (
276 void assignParameter (
280 unsigned maxVal)
const;
283 void assignParameter (
287 double maxVal)
const;
290 void assignParameter(
bool ¶m,
const char *name)
const;
302 void assignParameter(
305 unsigned nFeasible = 0,
306 const char *feasible[] =
nullptr)
const;
315 void assignParameter(
char ¶m,
const char *name,
316 const char *feasible=
nullptr)
const;
329 void assignParameter(
337 void assignParameter(
342 unsigned defVal)
const;
345 void assignParameter(
350 double defVal)
const;
353 void assignParameter(
bool ¶m,
const char *name,
bool defVal)
const;
366 void assignParameter(
370 const char *feasible[],
371 const char *defVal)
const;
380 void assignParameter(
char ¶m,
const char *name,
381 const char *feasible,
char defVal)
const;
398 int findParameter(
const char *name,
unsigned nFeasible,
const int *feasible)
const;
401 int findParameter(
const char *name,
402 unsigned nFeasible,
const char *feasible[])
const;
405 int findParameter(
const char *name,
const char *feasible)
const;
427 #pragma GCC visibility pop
double machineEps() const
Provides a machine dependent zero tolerance.
double eps() const
Returns the zero tolerance.
TWeight infinity()
Helper function to get the maximum value for a given weight type.
std::ostream & operator<<(std::ostream &out, const Active< BaseType, CoType > &rhs)
bool isInteger(double x) const
Returns whether the value x differs at most by the machine dependent zero tolerance from an integer v...
void machineEps(double e)
Sets the machine dependent zero tolerance to e.
void eps(double e)
Sets the zero tolerance to e.
double machineEps_
The machine dependent zero tolerance, which is used to , e.g., to test if a floating point value is 0...
virtual ~AbacusGlobal()
The destructor.
Base class of all other classes of ABACUS.
double infinity_
An "infinite" big number.
AbaHash< string, string > paramTable_
AbacusGlobal(double eps=1.0e-4, double machineEps=1.0e-7, double infinity=1.0e32)
The constructor.
bool isInfinity(double x) const
Returns true if x is regarded as "infinite" large, false otherwise.
void infinity(double x)
Sets the "infinite value" to x.
double infinity() const
Provides a floating point value of "infinite" size.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
bool equal(double x, double y) const
Returns whether the absolute difference between x and y is less than the machine dependent zero toler...
double eps_
A zero tolerance.
Global data and functions.
bool isMinusInfinity(double x) const
Returns true if x is regarded as infinite small, false otherwise.