Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
abacusroot.h
Go to the documentation of this file.
1
29#pragma once
30
31#include <ogdf/basic/Logger.h>
32#include <ogdf/basic/Array.h>
34
35#include <iomanip>
36#include <sstream>
37
38
39// TODO: just a temporary fix
40#ifdef _MSC_VER
41#pragma warning(disable : 4996)
42#endif
43
44
45#define ABACUS_VERSION 301
46#define ABACUS_VERSION_STRING "3.0.1/OGDF"
47
48#pragma GCC visibility push(default)
49namespace abacus {
50
53using ogdf::Array;
54using ogdf::Logger;
55
56using std::ostream;
57using std::ostringstream;
58using std::setw;
59using std::string;
60using std::to_string;
61using std::ws;
62
64
70public:
72
75 virtual ~AbacusRoot() { }
76
77
79
84 static const char *onOff(bool value);
85
87
92 static double fracPart(double x) {
93 return (x >= 0.0) ? x-floor(x) : ceil(x)-x;
94 }
95
97
100 static bool ascii2bool(const string &str);
101
103 static bool endsWith(const string &str, const string &end);
104};
105
106}
107#pragma GCC visibility pop
Declaration and implementation of Array class and Array algorithms.
Declaration and implementation of ArrayBuffer class.
Contains logging functionality.
Base class of all other classes of ABACUS.
Definition abacusroot.h:69
static bool endsWith(const string &str, const string &end)
Returns true if str ends with end, false otherwise.
static bool ascii2bool(const string &str)
Converts the string str to a boolean value.
static const char * onOff(bool value)
Converts a boolean variable to the strings "on" and "off".
virtual ~AbacusRoot()
The destructor.
Definition abacusroot.h:75
static double fracPart(double x)
Returns the absolute value of the fractional part of x.
Definition abacusroot.h:92
Exception thrown when an algorithm realizes an internal bug that prevents it from continuing.
Definition exceptions.h:247
An array that keeps track of the number of inserted elements; also usable as an efficient stack.
Definition ArrayBuffer.h:64
The parameterized class Array implements dynamic arrays of type E.
Definition Array.h:219
Centralized global and local logging facility working on streams like std::cout.
Definition Logger.h:102
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117