Changeset 1263:b9887ae63df0 in lemon
- Timestamp:
- 08/07/13 07:09:31 (11 years ago)
- Branch:
- 1.2
- Parents:
- 1249:2c2e8df67ddc (diff), 1260:a337a0dd3f75 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Phase:
- public
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/concepts/graph_components.h
r1175 r1263 109 109 110 110 bool b; 111 ignore_unused_variable_warning(b);111 ::lemon::ignore_unused_variable_warning(b); 112 112 113 113 b = (ia == ib) && (ia != ib); … … 290 290 ue = e; 291 291 bool d = graph.direction(e); 292 ignore_unused_variable_warning(d);292 ::lemon::ignore_unused_variable_warning(d); 293 293 } 294 294 } … … 369 369 370 370 nid = digraph.maxNodeId(); 371 ignore_unused_variable_warning(nid);371 ::lemon::ignore_unused_variable_warning(nid); 372 372 eid = digraph.maxArcId(); 373 ignore_unused_variable_warning(eid);373 ::lemon::ignore_unused_variable_warning(eid); 374 374 } 375 375 … … 424 424 edge = graph.edgeFromId(ueid); 425 425 ueid = graph.maxEdgeId(); 426 ignore_unused_variable_warning(ueid);426 ::lemon::ignore_unused_variable_warning(ueid); 427 427 } 428 428 … … 497 497 _GraphItemIt it3 = it1; 498 498 _GraphItemIt it4 = INVALID; 499 ignore_unused_variable_warning(it3);500 ignore_unused_variable_warning(it4);499 ::lemon::ignore_unused_variable_warning(it3); 500 ::lemon::ignore_unused_variable_warning(it4); 501 501 502 502 it2 = ++it1; … … 588 588 _GraphIncIt it3 = it1; 589 589 _GraphIncIt it4 = INVALID; 590 ignore_unused_variable_warning(it3);591 ignore_unused_variable_warning(it4);590 ::lemon::ignore_unused_variable_warning(it3); 591 ::lemon::ignore_unused_variable_warning(it4); 592 592 593 593 it2 = ++it1; … … 771 771 n = digraph.baseNode(oait); 772 772 n = digraph.runningNode(oait); 773 ignore_unused_variable_warning(n);773 ::lemon::ignore_unused_variable_warning(n); 774 774 } 775 775 } … … 954 954 = digraph.notifier(typename _Digraph::Arc()); 955 955 956 ignore_unused_variable_warning(nn);957 ignore_unused_variable_warning(en);956 ::lemon::ignore_unused_variable_warning(nn); 957 ::lemon::ignore_unused_variable_warning(en); 958 958 } 959 959 … … 997 997 typename _Graph::EdgeNotifier& uen 998 998 = graph.notifier(typename _Graph::Edge()); 999 ignore_unused_variable_warning(uen);999 ::lemon::ignore_unused_variable_warning(uen); 1000 1000 } 1001 1001 … … 1071 1071 // m3 = cmap; 1072 1072 1073 ignore_unused_variable_warning(m1);1074 ignore_unused_variable_warning(m2);1075 // ignore_unused_variable_warning(m3);1073 ::lemon::ignore_unused_variable_warning(m1); 1074 ::lemon::ignore_unused_variable_warning(m2); 1075 // ::lemon::ignore_unused_variable_warning(m3); 1076 1076 } 1077 1077 -
test/dfs_test.cc
r1175 r1263 68 68 int l, i; 69 69 bool b; 70 ignore_unused_variable_warning(l,i,b);70 ::lemon::ignore_unused_variable_warning(l,i,b); 71 71 72 72 DType::DistMap d(G); … … 154 154 Digraph g; 155 155 bool b; 156 ignore_unused_variable_warning(b);156 ::lemon::ignore_unused_variable_warning(b); 157 157 158 158 dfs(g).run(Node()); -
test/dfs_test.cc
r1259 r1263 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2011 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 224 224 check(dfs.run(s1,t1) && dfs.reached(t1),"Node 3 is reachable from Node 6."); 225 225 } 226 226 227 227 { 228 228 NullMap<Node,Arc> myPredMap; -
test/maps_test.cc
r1161 r1263 104 104 NullMap<A,B> map1; 105 105 NullMap<A,B> map2 = map1; 106 ignore_unused_variable_warning(map2);106 ::lemon::ignore_unused_variable_warning(map2); 107 107 map1 = nullMap<A,B>(); 108 108 } … … 115 115 ConstMap<A,B> map2 = B(); 116 116 ConstMap<A,B> map3 = map1; 117 ignore_unused_variable_warning(map2,map3);117 ::lemon::ignore_unused_variable_warning(map2,map3); 118 118 119 119 map1 = constMap<A>(B()); … … 122 122 ConstMap<A,C> map4(C(1)); 123 123 ConstMap<A,C> map5 = map4; 124 ignore_unused_variable_warning(map5);124 ::lemon::ignore_unused_variable_warning(map5); 125 125 126 126 map4 = constMap<A>(C(2)); … … 144 144 IdentityMap<A> map1; 145 145 IdentityMap<A> map2 = map1; 146 ignore_unused_variable_warning(map2);146 ::lemon::ignore_unused_variable_warning(map2); 147 147 148 148 map1 = identityMap<A>(); … … 205 205 checkConcept<ReadMap<B,double>, CompMap>(); 206 206 CompMap map1 = CompMap(DoubleMap(),ReadMap<B,A>()); 207 ignore_unused_variable_warning(map1);207 ::lemon::ignore_unused_variable_warning(map1); 208 208 CompMap map2 = composeMap(DoubleMap(), ReadMap<B,A>()); 209 ignore_unused_variable_warning(map2);209 ::lemon::ignore_unused_variable_warning(map2); 210 210 211 211 SparseMap<double, bool> m1(false); m1[3.14] = true; … … 220 220 checkConcept<ReadMap<A,double>, CombMap>(); 221 221 CombMap map1 = CombMap(DoubleMap(), DoubleMap()); 222 ignore_unused_variable_warning(map1);222 ::lemon::ignore_unused_variable_warning(map1); 223 223 CombMap map2 = combineMap(DoubleMap(), DoubleMap(), std::plus<double>()); 224 ignore_unused_variable_warning(map2);224 ::lemon::ignore_unused_variable_warning(map2); 225 225 226 226 check(combineMap(constMap<B,int,2>(), identityMap<B>(), &binc)[B()] == 3, … … 234 234 FunctorToMap<F> map1; 235 235 FunctorToMap<F> map2 = FunctorToMap<F>(F()); 236 ignore_unused_variable_warning(map2);236 ::lemon::ignore_unused_variable_warning(map2); 237 237 238 238 B b = functorToMap(F())[A()]; 239 ignore_unused_variable_warning(b);239 ::lemon::ignore_unused_variable_warning(b); 240 240 241 241 checkConcept<ReadMap<A,B>, MapToFunctor<ReadMap<A,B> > >(); 242 242 MapToFunctor<ReadMap<A,B> > map = 243 243 MapToFunctor<ReadMap<A,B> >(ReadMap<A,B>()); 244 ignore_unused_variable_warning(map);244 ::lemon::ignore_unused_variable_warning(map); 245 245 246 246 check(functorToMap(&func)[A()] == 3, … … 260 260 ConvertMap<ReadMap<double, int>, double> >(); 261 261 ConvertMap<RangeMap<bool>, int> map1(rangeMap(1, true)); 262 ignore_unused_variable_warning(map1);262 ::lemon::ignore_unused_variable_warning(map1); 263 263 ConvertMap<RangeMap<bool>, int> map2 = convertMap<int>(rangeMap(2, false)); 264 ignore_unused_variable_warning(map2);264 ::lemon::ignore_unused_variable_warning(map2); 265 265 266 266 } -
test/maps_test.cc
r1259 r1263 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2011 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/preflow_test.cc
r1175 r1263 87 87 VType v; 88 88 bool b; 89 ignore_unused_variable_warning(v,b);89 ::lemon::ignore_unused_variable_warning(v,b); 90 90 91 91 typedef Preflow<Digraph, CapMap> … … 121 121 const_preflow_test.minCutMap(cut); 122 122 123 ignore_unused_variable_warning(fm);123 ::lemon::ignore_unused_variable_warning(fm); 124 124 } 125 125 -
test/preflow_test.cc
r1259 r1263 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2011 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 161 161 { 162 162 DIGRAPH_TYPEDEFS(SmartDigraph); 163 163 164 164 SmartDigraph g; 165 165 SmartDigraph::ArcMap<int> cap(g),iflow(g); … … 273 273 274 274 initFlowTest(); 275 275 276 276 return 0; 277 277 }
Note: See TracChangeset
for help on using the changeset viewer.