Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
Module.h
Go to the documentation of this file.
1
32#pragma once
33
34#include <ogdf/basic/basic.h>
35
36namespace ogdf {
37
38
48public:
50 enum class ReturnType {
51 Feasible,
52 Optimal,
53 NoFeasibleSolution,
54 TimeoutFeasible,
55 TimeoutInfeasible,
56 Error
57 };
58
60 Module() { }
61
62 virtual ~Module() { }
63
65 static bool isSolution(ReturnType ret) {
66 return ret == ReturnType::Feasible || ret == ReturnType::Optimal
67 || ret == ReturnType::TimeoutFeasible;
68 }
69};
70
71OGDF_EXPORT std::ostream& operator<<(std::ostream& os, const Module::ReturnType& r);
72
73}
Basic declarations, included by all source files.
Base class for modules.
Definition Module.h:47
Module()
Initializes a module.
Definition Module.h:60
ReturnType
The return type of a module.
Definition Module.h:50
virtual ~Module()
Definition Module.h:62
static bool isSolution(ReturnType ret)
Returns true iff ret indicates that the module returned a feasible solution.
Definition Module.h:65
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
int r[]
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.
std::ostream & operator<<(std::ostream &os, const ogdf::Array< E, INDEX > &a)
Prints array a to output stream os.
Definition Array.h:978