Loading [MathJax]/extensions/tex2jax.js

Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
48namespace abacus {
49
52using ogdf::Array;
53using ogdf::Logger;
54
55using std::ostream;
56using std::ostringstream;
57using std::setw;
58using std::string;
59using std::to_string;
60using std::ws;
61
63
69public:
71
74 virtual ~AbacusRoot() { }
75
76
78
83 static const char *onOff(bool value);
84
86
91 static double fracPart(double x) {
92 return (x >= 0.0) ? x-floor(x) : ceil(x)-x;
93 }
94
96
99 static bool ascii2bool(const string &str);
100
102 static bool endsWith(const string &str, const string &end);
103};
104
105}
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:68
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:74
static double fracPart(double x)
Returns the absolute value of the fractional part of x.
Definition abacusroot.h:91
Exception thrown when an algorithm realizes an internal bug that prevents it from continuing.
Definition exceptions.h:241
An array that keeps track of the number of inserted elements; also usable as an efficient stack.
Definition ArrayBuffer.h:56
The parameterized class Array implements dynamic arrays of type E.
Definition Array.h:214
Centralized global and local logging facility working on streams like std::cout.
Definition Logger.h:100
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()