Changeset 354:0e8eb96c22ca in lemon0.x
 Timestamp:
 04/20/04 15:43:36 (17 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@479
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/work/list_graph.h
r335 r354 506 506 //node_item* v; 507 507 //protected: 508 p ublic: //for alpar508 protected: //for alpar 509 509 SymEdgeIt(const Node& _v) /*: v(_v.node)*/ { 510 510 out_or_in=1; … … 537 537 return (out_or_in) ? Node(edge>_head) : Node(edge>_tail); } 538 538 }; 539 540 539 }; 541 540 542 // template< typename T > 543 // T ListGraph::first() const { 544 // std::cerr << "Invalid use of template<typemane T> T ListGraph::first<T>();" << std::endl; 545 // return T(); 546 // } 547 548 // template<> 549 // ListGraph::NodeIt ListGraph::first<ListGraph::NodeIt>() const { 550 // return firstNode(); 551 // } 552 553 // template<> 554 // ListGraph::EdgeIt ListGraph::first<ListGraph::EdgeIt>() const { 555 // return firstEdge(); 556 // } 557 558 // template< typename T > 559 // T ListGraph::first(ListGraph::Node v) const { 560 // std::cerr << "Invalid use of template<typemane T> T ListGraph::first<T>(ListGRaph::Node);" << std::endl; 561 // return T(); 562 // } 563 564 // template<> 565 // ListGraph::OutEdgeIt ListGraph::first<ListGraph::OutEdgeIt>(const ListGraph::Node v) const { 566 // return firstOutEdge(v); 567 // } 568 569 // template<> 570 // ListGraph::InEdgeIt ListGraph::first<ListGraph::InEdgeIt>(const ListGraph::Node v) const { 571 // return firstInEdge(v); 572 // } 573 574 // template<> 575 // ListGraph::SymEdgeIt ListGraph::first<ListGraph::SymEdgeIt>(const ListGraph::Node v) const { 576 // return firstSymEdge(v); 577 // } 578 541 class UndirListGraph : public ListGraph { 542 typedef SymEdgeIt OutEdgeIt; 543 typedef SymEdgeIt InEdgeIt; 544 }; 579 545 580 546 } //namespace hugo
Note: See TracChangeset
for help on using the changeset viewer.