Base class of all other classes of ABACUS. More...
#include <ogdf/lib/abacus/abacusroot.h>
Public Member Functions | |
virtual | ~AbacusRoot () |
The destructor. | |
Static Public Member Functions | |
static bool | ascii2bool (const string &str) |
Converts the string str to a boolean value. | |
static bool | endsWith (const string &str, const string &end) |
Returns true if str ends with end, false otherwise. | |
static double | fracPart (double x) |
Returns the absolute value of the fractional part of x. | |
static const char * | onOff (bool value) |
Converts a boolean variable to the strings "on" and "off". | |
Base class of all other classes of ABACUS.
This class is the base class of all other classes of ABACUS. By embedding an enumeration and some useful functions in this class we can avoid a global scope of these names.
Definition at line 68 of file abacusroot.h.
|
inlinevirtual |
The destructor.
Is only implemented since it should be virtual in derived classes.
Definition at line 74 of file abacusroot.h.
Converts the string str to a boolean value.
This is only possible for the strings "true"
and "false"
.
Returns true if str ends with end, false otherwise.
Returns the absolute value of the fractional part of x.
E.g., it holds fracPart(2.33) == 0.33 and fracPart(-1.77) == 0.77.
x | The value of which the fractional part is computed. |
Definition at line 91 of file abacusroot.h.
Converts a boolean variable to the strings "on" and "off".
value | The boolean variable being converted. |