77 double machineEps = 1.0e-7,
78 double infinity = 1.0e32) :
80 machineEps_(machineEps),
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_);
279 unsigned maxVal)
const;
286 double maxVal)
const;
305 const char *feasible[] =
nullptr)
const;
315 const char *feasible=
nullptr)
const;
369 const char *feasible[],
370 const char *
defVal)
const;
380 const char *feasible,
char defVal)
const;
401 unsigned nFeasible,
const char *feasible[])
const;
Global data and functions.
void eps(double e)
Sets the zero tolerance to e.
friend std::ostream & operator<<(std::ostream &out, const AbacusGlobal &rhs)
The output operator writes some of the data members to an ouput stream out.
int findParameter(const char *name, const char *feasible) const
See AbacusGlobal::findParameter(const char *name, unsigned nFeasible, const int *feasible) for descri...
virtual ~AbacusGlobal()
The destructor.
double machineEps_
The machine dependent zero tolerance, which is used to , e.g., to test if a floating point value is 0...
void assignParameter(string ¶m, const char *name, unsigned nFeasible, const char *feasible[], const char *defVal) const
See AbacusGlobal::assignParameter(int&,const char*,int,int) for a description.
void machineEps(double e)
Sets the machine dependent zero tolerance to e.
bool equal(double x, double y) const
Returns whether the absolute difference between x and y is less than the machine dependent zero toler...
void assignParameter(string ¶m, const char *name, unsigned nFeasible=0, const char *feasible[]=nullptr) const
See AbacusGlobal::assignParameter(int&,const char*,int,int) for a description.
int findParameter(const char *name, unsigned nFeasible, const int *feasible) const
Searches for parameter name in the parameter table.
void assignParameter(double ¶m, const char *name, double minVal, double maxVal) const
See AbacusGlobal::assignParameter(int&,const char*,int,int) for a description.
void assignParameter(unsigned ¶m, const char *name, unsigned minVal, unsigned maxVal) const
See AbacusGlobal::assignParameter(int&,const char*,int,int) for a description.
double infinity_
An "infinite" big number.
int getParameter(const char *name, int ¶m) const
Searches for parameter name in the parameter table and returns its value in param.
void assignParameter(char ¶m, const char *name, const char *feasible, char defVal) const
See AbacusGlobal::assignParameter(int&,const char*,int,int) for a description.
void assignParameter(double ¶m, const char *name, double minVal, double maxVal, double defVal) const
See AbacusGlobal::assignParameter(int&,const char*,int,int) for a description.
int getParameter(const char *name, double ¶m) const
void readParameters(const string &fileName)
Opens the parameter file fileName, reads all parameters, and inserts them in the parameter table.
void assignParameter(bool ¶m, const char *name) const
See AbacusGlobal::assignParameter(int&,const char*,int,int) for a description.
int getParameter(const char *name, char ¶m) const
void assignParameter(unsigned ¶m, const char *name, unsigned minVal, unsigned maxVal, unsigned defVal) const
See AbacusGlobal::assignParameter(int&,const char*,int,int) for a description.
AbacusGlobal(double eps=1.0e-4, double machineEps=1.0e-7, double infinity=1.0e32)
The constructor.
double eps() const
Returns the zero tolerance.
int getParameter(const char *name, unsigned int ¶m) const
double infinity() const
Provides a floating point value of "infinite" size.
bool isInteger(double x) const
Returns whether the value x differs at most by the machine dependent zero tolerance from an integer v...
int findParameter(const char *name, unsigned nFeasible, const char *feasible[]) const
See AbacusGlobal::findParameter(const char *name, unsigned nFeasible, const int *feasible) for descri...
void assignParameter(char ¶m, const char *name, const char *feasible=nullptr) const
See AbacusGlobal::assignParameter(int&,const char*,int,int) for a description.
AbaHash< string, string > paramTable_
void assignParameter(int ¶m, const char *name, int minVal, int maxVal, int defVal) const
See AbacusGlobal::assignParameter(int&,const char*,int,int) for a description.
void assignParameter(int ¶m, const char *name, int minVal, int maxVal) const
Searches for parameter name in the parameter table and returns its value in param.
bool isMinusInfinity(double x) const
Returns true if x is regarded as infinite small, false otherwise.
int getParameter(const char *name, string ¶m) const
double eps_
A zero tolerance.
bool isInfinity(double x) const
Returns true if x is regarded as "infinite" large, false otherwise.
int getParameter(const char *name, bool ¶m) const
void insertParameter(const char *name, const char *value)
Inserts parameter name with value value into the parameter table.
void infinity(double x)
Sets the "infinite value" to x.
AbacusGlobal(const AbacusGlobal &rhs)
void assignParameter(bool ¶m, const char *name, bool defVal) const
See AbacusGlobal::assignParameter(int&,const char*,int,int) for a description.
bool isInteger(double x, double eps) const
Returns whether the value x differs at most by eps from an integer value.
double machineEps() const
Provides a machine dependent zero tolerance.
const AbacusGlobal & operator=(const AbacusGlobal &rhs)
Base class of all other classes of ABACUS.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()