0
2
0
12
12
... | ... |
@@ -193,7 +193,7 @@ |
193 | 193 |
///@{ |
194 | 194 |
|
195 | 195 |
template <typename _FlowMap> |
196 |
struct |
|
196 |
struct SetFlowMapTraits : public Traits { |
|
197 | 197 |
typedef _FlowMap FlowMap; |
198 | 198 |
static FlowMap *createFlowMap(const Digraph&) { |
199 | 199 |
LEMON_ASSERT(false, "FlowMap is not initialized"); |
... | ... |
@@ -207,14 +207,14 @@ |
207 | 207 |
/// \ref named-templ-param "Named parameter" for setting FlowMap |
208 | 208 |
/// type |
209 | 209 |
template <typename _FlowMap> |
210 |
struct DefFlowMap |
|
211 |
: public Preflow<Digraph, CapacityMap, DefFlowMapTraits<_FlowMap> > { |
|
210 |
struct SetFlowMap |
|
211 |
: public Preflow<Digraph, CapacityMap, SetFlowMapTraits<_FlowMap> > { |
|
212 | 212 |
typedef Preflow<Digraph, CapacityMap, |
213 |
|
|
213 |
SetFlowMapTraits<_FlowMap> > Create; |
|
214 | 214 |
}; |
215 | 215 |
|
216 | 216 |
template <typename _Elevator> |
217 |
struct |
|
217 |
struct SetElevatorTraits : public Traits { |
|
218 | 218 |
typedef _Elevator Elevator; |
219 | 219 |
static Elevator *createElevator(const Digraph&, int) { |
220 | 220 |
LEMON_ASSERT(false, "Elevator is not initialized"); |
... | ... |
@@ -228,14 +228,14 @@ |
228 | 228 |
/// \ref named-templ-param "Named parameter" for setting Elevator |
229 | 229 |
/// type |
230 | 230 |
template <typename _Elevator> |
231 |
struct DefElevator |
|
232 |
: public Preflow<Digraph, CapacityMap, DefElevatorTraits<_Elevator> > { |
|
231 |
struct SetElevator |
|
232 |
: public Preflow<Digraph, CapacityMap, SetElevatorTraits<_Elevator> > { |
|
233 | 233 |
typedef Preflow<Digraph, CapacityMap, |
234 |
|
|
234 |
SetElevatorTraits<_Elevator> > Create; |
|
235 | 235 |
}; |
236 | 236 |
|
237 | 237 |
template <typename _Elevator> |
238 |
struct |
|
238 |
struct SetStandardElevatorTraits : public Traits { |
|
239 | 239 |
typedef _Elevator Elevator; |
240 | 240 |
static Elevator *createElevator(const Digraph& digraph, int max_level) { |
241 | 241 |
return new Elevator(digraph, max_level); |
... | ... |
@@ -249,11 +249,11 @@ |
249 | 249 |
/// type. The Elevator should be standard constructor interface, ie. |
250 | 250 |
/// the digraph and the maximum level should be passed to it. |
251 | 251 |
template <typename _Elevator> |
252 |
struct |
|
252 |
struct SetStandardElevator |
|
253 | 253 |
: public Preflow<Digraph, CapacityMap, |
254 |
|
|
254 |
SetStandardElevatorTraits<_Elevator> > { |
|
255 | 255 |
typedef Preflow<Digraph, CapacityMap, |
256 |
|
|
256 |
SetStandardElevatorTraits<_Elevator> > Create; |
|
257 | 257 |
}; |
258 | 258 |
|
259 | 259 |
/// @} |
... | ... |
@@ -46,7 +46,7 @@ |
46 | 46 |
FlowMap flow; |
47 | 47 |
CutMap cut; |
48 | 48 |
|
49 |
Preflow<Digraph, CapMap>:: |
|
49 |
Preflow<Digraph, CapMap>::SetFlowMap<FlowMap>::Create preflow_test(g,cap,n,n); |
|
50 | 50 |
|
51 | 51 |
preflow_test.capacityMap(cap); |
52 | 52 |
flow = preflow_test.flowMap(); |
0 comments (0 inline)