Changeset 16:dd19ef4d7ba4 in lemon-0.x for src/work
- Timestamp:
- 01/16/04 12:21:47 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@29
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/marci_list_graph.hh
r13 r16 138 138 node_iterator b_node(const sym_edge_iterator& e) { return e.b_node(); } 139 139 140 node_iterator invalid_node() { return node_iterator(); }141 edge_iterator invalid_edge() { return edge_iterator(); }142 out_edge_iterator invalid_out_edge() { return out_edge_iterator(); }143 in_edge_iterator invalid_in_edge() { return in_edge_iterator(); }144 sym_edge_iterator invalid_sym_edge() { return sym_edge_iterator(); }140 //node_iterator invalid_node() { return node_iterator(); } 141 //edge_iterator invalid_edge() { return edge_iterator(); } 142 //out_edge_iterator invalid_out_edge() { return out_edge_iterator(); } 143 //in_edge_iterator invalid_in_edge() { return in_edge_iterator(); } 144 //sym_edge_iterator invalid_sym_edge() { return sym_edge_iterator(); } 145 145 146 146 /* same methods in other style */ … … 167 167 void get_b_node(node_iterator& n, const in_edge_iterator& e) { n=e.b_node(); } 168 168 void get_b_node(node_iterator& n, const sym_edge_iterator& e) { n=e.b_node(); } 169 void get_invalid(node_iterator& n) { n=node_iterator(); }170 void get_invalid(edge_iterator& e) { e=edge_iterator(); }171 void get_invalid(out_edge_iterator& e) { e=out_edge_iterator(); }172 void get_invalid(in_edge_iterator& e) { e=in_edge_iterator(); }173 void get_invalid(sym_edge_iterator& e) { e=sym_edge_iterator(); }169 //void get_invalid(node_iterator& n) { n=node_iterator(); } 170 //void get_invalid(edge_iterator& e) { e=edge_iterator(); } 171 //void get_invalid(out_edge_iterator& e) { e=out_edge_iterator(); } 172 //void get_invalid(in_edge_iterator& e) { e=in_edge_iterator(); } 173 //void get_invalid(sym_edge_iterator& e) { e=sym_edge_iterator(); } 174 174 175 175 … … 211 211 node_iterator(node_item* _node) : node(_node) { } 212 212 bool is_valid() { return (node!=0); } 213 void make_invalid() { node=0; } 213 214 friend bool operator==(const node_iterator& u, const node_iterator& v) { 214 215 return v.node==u.node; … … 240 241 edge_iterator(edge_item* _edge) : edge(_edge) { } 241 242 bool is_valid() { return (edge!=0); } 243 void make_invalid() { edge=0; } 242 244 friend bool operator==(const edge_iterator& u, const edge_iterator& v) { 243 245 return v.edge==u.edge;
Note: See TracChangeset
for help on using the changeset viewer.