Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

EmbedderModule.h
Go to the documentation of this file.
1 
33 #pragma once
34 
36 #include <ogdf/basic/Module.h>
37 #include <ogdf/basic/Timeouter.h>
38 
39 namespace ogdf {
40 
49 class OGDF_EXPORT EmbedderModule : public Module, public Timeouter {
50 public:
53 
54  virtual ~EmbedderModule() { }
55 
63  void call(Graph& G, adjEntry& adjExternal) {
65  doCall(G, adjExternal);
66  };
67 
69  void operator()(Graph& G, adjEntry& adjExternal) { call(G, adjExternal); }
70 
72 protected:
73 
79  virtual void doCall(Graph& G, adjEntry& adjExternal) = 0;
80 };
81 
82 } // end namespace ogdf
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:472
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:91
Declares base class for all module types.
Base class for modules.
Definition: Module.h:47
class for timeout funtionality.
Definition: Timeouter.h:47
bool isPlanar(const Graph &G)
Returns true, if G is planar, false otherwise.
void call(Graph &G, adjEntry &adjExternal)
Calls the embedder algorithm for graph G.
void operator()(Graph &G, adjEntry &adjExternal)
Calls the embedder algorithm for graph G.
Declares base class for modules with timeout functionality.
The namespace for all OGDF objects.
Declaration of extended graph algorithms.
Base class for embedder algorithms.
EmbedderModule()
Initializes an embedder module.
Class for adjacency list elements.
Definition: Graph_d.h:78
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
Definition: basic.h:41