Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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>
33 #include <ogdf/basic/ArrayBuffer.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 namespace abacus {
49 
51 using ogdf::ArrayBuffer;
52 using ogdf::Array;
53 using ogdf::Logger;
54 
55 using std::ostream;
56 using std::ostringstream;
57 using std::setw;
58 using std::string;
59 using std::to_string;
60 using std::ws;
61 
63 
69 public:
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 }
ogdf::ArrayBuffer
An array that keeps track of the number of inserted elements; also usable as an efficient stack.
Definition: Array.h:53
ArrayBuffer.h
Declaration and implementation of ArrayBuffer class.
abacus
Definition: ILPClusterPlanarity.h:50
abacus::AbacusRoot::~AbacusRoot
virtual ~AbacusRoot()
The destructor.
Definition: abacusroot.h:74
Logger.h
Contains logging functionality.
ogdf::AlgorithmFailureException
Exception thrown when an algorithm realizes an internal bug that prevents it from continuing.
Definition: exceptions.h:247
abacus::AbacusRoot
Base class of all other classes of ABACUS.
Definition: abacusroot.h:68
ogdf::Array
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:219
ogdf::end
HypergraphRegistry< HypernodeElement >::iterator end(const HypergraphRegistry< HypernodeElement > &self)
abacus::AbacusRoot::fracPart
static double fracPart(double x)
Returns the absolute value of the fractional part of x.
Definition: abacusroot.h:91
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
Array.h
Declaration and implementation of Array class and Array algorithms.
ogdf::Logger
Centralized global and local logging facility working on streams like std::cout.
Definition: Logger.h:102
ogdf::sync_plan::internal::to_string
std::string to_string(const std::function< std::ostream &(std::ostream &)> &func)