|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
77 double machineEps = 1.0e-7,
80 machineEps_(machineEps),
109 virtual AbaOStream& lout()
const;
122 virtual AbaOStream& fout()
const;
127 double eps()
const {
return eps_; }
133 void eps(
double e) { eps_ = e; }
180 return ( x >= infinity_ );
188 return ( x <= -infinity_ );
196 bool equal(
double x,
double y)
const {
197 return ( fabs(x-y) < machineEps_ );
203 return isInteger(x, machineEps_);
207 bool isInteger(
double x,
double eps)
const;
215 void readParameters(
const string &fileName);
224 void insertParameter(
const char *name,
const char *value);
238 int getParameter(
const char *name,
int ¶m)
const;
239 int getParameter(
const char *name,
unsigned int ¶m)
const;
240 int getParameter(
const char *name,
double ¶m)
const;
241 int getParameter(
const char *name,
string ¶m)
const;
242 int getParameter(
const char *name,
bool ¶m)
const;
243 int getParameter(
const char *name,
char ¶m)
const;
268 void assignParameter (
275 void assignParameter (
279 unsigned maxVal)
const;
282 void assignParameter (
286 double maxVal)
const;
289 void assignParameter(
bool ¶m,
const char *name)
const;
301 void assignParameter(
304 unsigned nFeasible = 0,
305 const char *feasible[] =
nullptr)
const;
314 void assignParameter(
char ¶m,
const char *name,
315 const char *feasible=
nullptr)
const;
328 void assignParameter(
336 void assignParameter(
341 unsigned defVal)
const;
344 void assignParameter(
349 double defVal)
const;
352 void assignParameter(
bool ¶m,
const char *name,
bool defVal)
const;
365 void assignParameter(
369 const char *feasible[],
370 const char *defVal)
const;
379 void assignParameter(
char ¶m,
const char *name,
380 const char *feasible,
char defVal)
const;
397 int findParameter(
const char *name,
unsigned nFeasible,
const int *feasible)
const;
400 int findParameter(
const char *name,
401 unsigned nFeasible,
const char *feasible[])
const;
404 int findParameter(
const char *name,
const char *feasible)
const;
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 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.