Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

UpwardEdgeInserterModule.h
Go to the documentation of this file.
1 
32 #pragma once
33 
35 #include <ogdf/basic/Module.h>
36 
37 
38 namespace ogdf {
39 
40 
42 public:
43 
44 
47 
48  // destruction
50 
59  ReturnType call(UpwardPlanRep &UPR, const List<edge> &origEdges) {
60  return doCall(UPR, origEdges, nullptr, nullptr);
61  }
62 
74  const EdgeArray<int> &costOrig,
75  const List<edge> &origEdges)
76  {
77  return doCall(UPR, origEdges, &costOrig, nullptr);
78  }
79 
80 
93  const EdgeArray<int> &costOrig,
94  const EdgeArray<bool> &forbidOriginal,
95  const List<edge> &origEdges)
96  {
97  return doCall(UPR, origEdges, &costOrig, &forbidOriginal);
98  }
99 
100 
114  const EdgeArray<bool> &forbidOriginal,
115  const List<edge> &origEdges)
116  {
117  return doCall(UPR, origEdges, nullptr, &forbidOriginal);
118  }
119 
120 
121 
122 
123 
124 protected:
136  virtual ReturnType doCall(UpwardPlanRep &UPR,
137  const List<edge> &origEdges,
138  const EdgeArray<int> *costOrig,
139  const EdgeArray<bool> *forbiddenEdgeOrig
140  ) = 0;
141 
142 
144 };
145 
146 } // end namespace ogdf
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.