Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

LayoutModule.h
Go to the documentation of this file.
1 
33 #pragma once
34 
35 #include <ogdf/basic/basic.h>
36 #include <ogdf/basic/memory.h>
37 
38 namespace ogdf {
39 class GraphAttributes;
40 
46 public:
49 
50  virtual ~LayoutModule() { }
51 
59  virtual void call(GraphAttributes& GA) = 0;
60 
66  void operator()(GraphAttributes& GA) { call(GA); }
67 
69 };
70 
71 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::GraphAttributes
Stores additional attributes of a graph (like layout information).
Definition: GraphAttributes.h:72
OGDF_MALLOC_NEW_DELETE
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:92
ogdf::LayoutModule::~LayoutModule
virtual ~LayoutModule()
Definition: LayoutModule.h:50
ogdf::LayoutModule::LayoutModule
LayoutModule()
Initializes a layout module.
Definition: LayoutModule.h:48
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::LayoutModule::operator()
void operator()(GraphAttributes &GA)
Computes a layout of graph GA.
Definition: LayoutModule.h:66
memory.h
Declaration of memory manager for allocating small pieces of memory.
ogdf::LayoutModule
Interface of general layout algorithms.
Definition: LayoutModule.h:45