Changeset 2618:6aa6fcaeaea5 in lemon-0.x
- Timestamp:
- 09/19/08 17:14:41 (15 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3503
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bits/bezier.h
r2553 r2618 35 35 class BezierBase { 36 36 public: 37 typedef Point<double> Point;37 typedef lemon::dim2::Point<double> Point; 38 38 protected: 39 39 static Point conv(Point x,Point y,double t) {return (1-t)*x+t*y;} -
lemon/bits/traits.h
r2553 r2618 225 225 typedef typename Map::Value Value; 226 226 227 typedef constValue ConstReturnValue;228 typedef constValue ReturnValue;227 typedef Value ConstReturnValue; 228 typedef Value ReturnValue; 229 229 }; 230 230 … … 253 253 typedef typename MatrixMap::Value Value; 254 254 255 typedef constValue ConstReturnValue;256 typedef constValue ReturnValue;255 typedef Value ConstReturnValue; 256 typedef Value ReturnValue; 257 257 }; 258 258 -
lemon/circulation.h
r2553 r2618 89 89 /// \sa Elevator 90 90 /// \sa LinkedElevator 91 typedef Elevator<Graph, typename Graph::Node> Elevator;91 typedef lemon::Elevator<Graph, typename Graph::Node> Elevator; 92 92 93 93 /// \brief Instantiates an Elevator. … … 103 103 /// 104 104 /// The tolerance used by the algorithm to handle inexact computation. 105 typedef Tolerance<Value> Tolerance;105 typedef lemon::Tolerance<Value> Tolerance; 106 106 107 107 }; -
lemon/dijkstra.h
r2553 r2618 31 31 #include <lemon/error.h> 32 32 #include <lemon/maps.h> 33 34 #include <limits> 33 35 34 36 -
lemon/edge_set.h
r2553 r2618 155 155 Node node; 156 156 for (first(node); node != INVALID && (*nodes)[node].first_in == -1; 157 next(node)) ;157 next(node)) { } 158 158 edge.id = (node == INVALID) ? -1 : (*nodes)[node].first_in; 159 159 } … … 165 165 Node node = edges[edge.id].target; 166 166 for (next(node); node != INVALID && (*nodes)[node].first_in == -1; 167 next(node)) ;167 next(node)) { } 168 168 edge.id = (node == INVALID) ? -1 : (*nodes)[node].first_in; 169 169 } -
lemon/graph_to_eps.h
r2569 r2618 1002 1002 else for(EdgeIt e(g);e!=INVALID;++e) 1003 1003 if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0 1004 &&g.source(e)!=g.target(e)) 1004 &&g.source(e)!=g.target(e)) { 1005 1005 if(_drawArrows) { 1006 1006 dim2::Point<double> d(mycoords[g.target(e)]-mycoords[g.source(e)]); … … 1031 1031 << _edgeColors[e].blue() << ' ' 1032 1032 << _edgeWidths[e]*_edgeWidthScale << " l\n"; 1033 } 1033 1034 os << "grestore\n"; 1034 1035 } -
lemon/lemon_reader.h
r2553 r2618 3473 3473 maps.push_back(name); 3474 3474 } 3475 while (getline(is, line)) ;3475 while (getline(is, line)) { } 3476 3476 } 3477 3477 -
lemon/list_graph.h
r2553 r2618 119 119 for(n = first_node; 120 120 n!=-1 && nodes[n].first_in == -1; 121 n = nodes[n].next) ;121 n = nodes[n].next) { } 122 122 e.id = (n == -1) ? -1 : nodes[n].first_in; 123 123 } … … 129 129 int n; 130 130 for(n = nodes[edges[edge.id].target].next; 131 n!=-1 && nodes[n].first_in == -1;132 n = nodes[n].next);131 n!=-1 && nodes[n].first_in == -1; 132 n = nodes[n].next) { } 133 133 edge.id = (n == -1) ? -1 : nodes[n].first_in; 134 134 } -
lemon/lp_base.h
r2609 r2618 44 44 { 45 45 typedef std::numeric_limits<T> Lim; 46 if ( Lim::has_infinity && (value == Lim::infinity() || value ==47 -Lim::infinity()) ||48 ( Lim::has_quiet_NaN || Lim::has_signaling_NaN) && value != value)46 if ((Lim::has_infinity && (value == Lim::infinity() || value == 47 -Lim::infinity())) || 48 ((Lim::has_quiet_NaN || Lim::has_signaling_NaN) && value != value)) 49 49 { 50 50 return false; -
lemon/min_mean_cycle.h
r2588 r2618 56 56 57 57 typedef typename LengthMap::Value Length; 58 typedef Path<Graph> Path;58 typedef lemon::Path<Graph> Path; 59 59 60 60 private: -
lemon/preflow.h
r2553 r2618 87 87 /// 88 88 /// The tolerance used by the algorithm to handle inexact computation. 89 typedef Tolerance<Value> Tolerance;89 typedef lemon::Tolerance<Value> Tolerance; 90 90 91 91 }; -
lemon/random.h
r2608 r2618 68 68 69 69 #include <ctime> 70 #include <limits> 70 71 71 72 #include <lemon/math.h> -
test/bipartite_matching_test.cc
r2571 r2618 196 196 197 197 bpmatch.greedyInit(); 198 while (bpmatch.simpleAugment()) ;198 while (bpmatch.simpleAugment()) { } 199 199 200 200 Graph::UEdgeMap<bool> mm(graph); -
tools/lgf-gen.cc
r2569 r2618 121 121 do { 122 122 Node n; 123 for(IncEdgeIt e(g,v2);(n=g.runningNode(e))==u2;++e) ;123 for(IncEdgeIt e(g,v2);(n=g.runningNode(e))==u2;++e) { } 124 124 u2=v2; 125 125 v2=n;
Note: See TracChangeset
for help on using the changeset viewer.