Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

UpwardEdgeInserterModule.h
Go to the documentation of this file.
1 
32 #pragma once
33 
35 #include <ogdf/basic/Module.h>
36 
37 namespace ogdf {
38 
40 public:
43 
44  // destruction
46 
55  ReturnType call(UpwardPlanRep &UPR, const List<edge> &origEdges) {
56  return doCall(UPR, origEdges, nullptr, nullptr);
57  }
58 
70  const EdgeArray<int> &costOrig,
71  const List<edge> &origEdges)
72  {
73  return doCall(UPR, origEdges, &costOrig, nullptr);
74  }
75 
88  const EdgeArray<int> &costOrig,
89  const EdgeArray<bool> &forbidOriginal,
90  const List<edge> &origEdges)
91  {
92  return doCall(UPR, origEdges, &costOrig, &forbidOriginal);
93  }
94 
108  const EdgeArray<bool> &forbidOriginal,
109  const List<edge> &origEdges)
110  {
111  return doCall(UPR, origEdges, nullptr, &forbidOriginal);
112  }
113 
114 protected:
126  virtual ReturnType doCall(UpwardPlanRep &UPR,
127  const List<edge> &origEdges,
128  const EdgeArray<int> *costOrig,
129  const EdgeArray<bool> *forbiddenEdgeOrig
130  ) = 0;
131 
133 };
134 
135 }
UpwardEdgeInserterModule()
Initializes an edge insertion module.
ReturnType call(UpwardPlanRep &UPR, const EdgeArray< int > &costOrig, const List< edge > &origEdges)
Inserts all edges in origEdges with given costs into UPR.
#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
Declaration of a base class for planar representations of graphs and cluster graphs.
Upward planarized representations (of a connected component) of a graph.
Definition: UpwardPlanRep.h:51
ReturnType
The return type of a module.
Definition: Module.h:51
ReturnType call(UpwardPlanRep &UPR, const List< edge > &origEdges)
Inserts all edges in origEdges into UPR.
The namespace for all OGDF objects.
ReturnType call(UpwardPlanRep &UPR, const EdgeArray< bool > &forbidOriginal, const List< edge > &origEdges)
Inserts all edges in origEdges with given forbidden edges into UPR.
ReturnType call(UpwardPlanRep &UPR, const EdgeArray< int > &costOrig, const EdgeArray< bool > &forbidOriginal, const List< edge > &origEdges)
Inserts all edges in origEdges with given forbidden edges into UPR.