Changeset 503:769f31e9f7b0 in lemon-0.x for src/work/alpar
- Timestamp:
- 05/03/04 09:27:29 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@663
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/alpar/list_graph.h
r491 r503 317 317 public: 318 318 Node() {} 319 Node (Invalid i) { n=-1; }319 Node (Invalid) { n=-1; } 320 320 bool operator==(const Node i) const {return n==i.n;} 321 321 bool operator!=(const Node i) const {return n!=i.n;} … … 504 504 DynMapBase<Edge>(*m.G), container(m.container) 505 505 { 506 G->dyn_ node_maps.push_back(this);506 G->dyn_edge_maps.push_back(this); 507 507 } 508 508 … … 514 514 DynMapBase<Edge>(*m.G) 515 515 { 516 G->dyn_ node_maps.push_back(this);516 G->dyn_edge_maps.push_back(this); 517 517 typename std::vector<TT>::const_iterator i; 518 518 for(typename std::vector<TT>::const_iterator i=m.container.begin(); … … 1295 1295 } 1296 1296 else { 1297 typename NodeGraphType::Noden;1298 for(n= G.next(edges[it.n].head);1299 G.valid(n) && nodes[n].first_in == -1;1300 G.next(n)) ;1301 it.n = ( G.valid(n))?-1:nodes[n].first_in;1297 NodeIt n; 1298 for(n=next(edges[it.n].head); 1299 valid(n) && nodes[n].first_in == -1; 1300 next(n)) ; 1301 it.n = (valid(n))?-1:nodes[n].first_in; 1302 1302 } 1303 1303 return it; … … 1386 1386 // } 1387 1387 1388 public: 1388 1389 class Node : public NodeGraphType::Node { 1389 1390 friend class EdgeSet; … … 1445 1446 public: 1446 1447 EdgeIt(const EdgeSet& G) : Edge() { 1447 typename NodeGraphType::Node m; 1448 // typename NodeGraphType::Node m; 1449 NodeIt m; 1448 1450 for(G.first(m); 1449 G.valid(m) && nodes[m].first_in == -1; G.next[m]);1450 n = G.valid(m)?-1: nodes[m].first_in;1451 G.valid(m) && G.nodes[m].first_in == -1; G.next(m)); 1452 n = G.valid(m)?-1:G.nodes[m].first_in; 1451 1453 } 1452 1454 EdgeIt (Invalid i) : Edge(i) { } … … 1515 1517 DynMapBase<Edge>(*m.G), container(m.container) 1516 1518 { 1517 G->dyn_ node_maps.push_back(this);1519 G->dyn_edge_maps.push_back(this); 1518 1520 } 1519 1521 … … 1525 1527 DynMapBase<Edge>(*m.G) 1526 1528 { 1527 G->dyn_ node_maps.push_back(this);1529 G->dyn_edge_maps.push_back(this); 1528 1530 typename std::vector<TT>::const_iterator i; 1529 1531 for(typename std::vector<TT>::const_iterator i=m.container.begin();
Note: See TracChangeset
for help on using the changeset viewer.