Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

MMEdgeInsertionModule.h
Go to the documentation of this file.
1 
33 #pragma once
34 
36 #include <ogdf/basic/Module.h>
37 
38 
39 namespace ogdf {
40 
47 public:
50 
51  // destruction
52  virtual ~MMEdgeInsertionModule() { }
53 
62  ReturnType call(PlanRepExpansion &PG, const List<edge> &origEdges) {
63  return doCall(PG, origEdges, nullptr);
64  }
65 
77  const List<edge> &origEdges,
78  const EdgeArray<bool> &forbiddenEdgeOrig)
79  {
80  return doCall(PG, origEdges, &forbiddenEdgeOrig);
81  }
82 
83 protected:
93  virtual ReturnType doCall(PlanRepExpansion &PG,
94  const List<edge> &origEdges, const EdgeArray<bool> *forbiddenEdgeOrig) = 0;
95 
97 };
98 
99 }
#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
Planarized representations (of a connected component) of a graph.
Declares base class for all module types.
Base class for modules.
Definition: Module.h:47
ReturnType call(PlanRepExpansion &PG, const List< edge > &origEdges, const EdgeArray< bool > &forbiddenEdgeOrig)
Inserts all edges in origEdges into PG and forbids crossing forbiddenEdges.
ReturnType
The return type of a module.
Definition: Module.h:51
MMEdgeInsertionModule()
Initializes a minor-monotone edge insertion module.
Declaration of class PlanRepExpansion representing a planarized representation of the expansion of a ...
Interface for minor-monotone edge insertion algorithms.
ReturnType call(PlanRepExpansion &PG, const List< edge > &origEdges)
Inserts all edges in origEdges into PG.
The namespace for all OGDF objects.