Changeset 174:44700ed9ffaa in lemon-0.x for src/work/alpar/emptygraph.h
- Timestamp:
- 03/12/04 10:19:54 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@250
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/alpar/emptygraph.h
r165 r174 1 // -*-mode: c++; -*- 1 // -*- c++ -*- 2 #ifndef EMPTYGRAPH_H 3 #define EMPTYGRAPH_H 2 4 3 5 #include <invalid.h> … … 35 37 Node() {} //FIXME 36 38 /// Initialize the iterator to be invalid 37 Node(Invalid) {} ;39 Node(Invalid) {} 38 40 //Node(const Node &) {} 39 41 bool operator==(Node n) const { return true; } //FIXME … … 48 50 NodeIt() {} //FIXME 49 51 /// Initialize the iterator to be invalid 50 NodeIt(Invalid) {} ;52 NodeIt(Invalid) {} 51 53 /// Sets the iterator to the first node of \c G. 52 54 NodeIt(const EmptyGraph &G) {} … … 62 64 Edge() {} //FIXME 63 65 /// Initialize the iterator to be invalid 64 Edge(Invalid) {} ;66 Edge(Invalid) {} 65 67 //Edge(const Edge &) {} 66 68 bool operator==(Edge n) const { return true; } //FIXME … … 76 78 OutEdgeIt() {} 77 79 /// Initialize the iterator to be invalid 78 OutEdgeIt(Invalid) {} ;80 OutEdgeIt(Invalid) {} 79 81 /// This constructor sets the iterator to first outgoing edge. 80 82 … … 92 94 InEdgeIt() {} 93 95 /// Initialize the iterator to be invalid 94 InEdgeIt(Invalid) {} ;96 InEdgeIt(Invalid) {} 95 97 InEdgeIt(const EmptyGraph &, Node) {} 96 98 }; … … 102 104 EdgeIt() {} 103 105 /// Initialize the iterator to be invalid 104 EdgeIt(Invalid) {} ;106 EdgeIt(Invalid) {} 105 107 EdgeIt(const EmptyGraph &) {} 106 108 }; … … 150 152 151 153 /// Checks if a node iterator is valid 152 bool valid(const Node) const { return true;} ;154 bool valid(const Node) const { return true;} 153 155 /// Checks if an edge iterator is valid 154 bool valid(const Edge) const { return true;} ;156 bool valid(const Edge) const { return true;} 155 157 156 158 ///Gives back the \e id of a node. 157 int id(const Node) const { return 0;} ;159 int id(const Node) const { return 0;} 158 160 ///Gives back the \e id of an edge. 159 int id(const Edge) const { return 0;} ;161 int id(const Edge) const { return 0;} 160 162 161 163 //void setInvalid(Node &) const {}; … … 173 175 int edgeNum() { return 0;} 174 176 175 EmptyGraph() {} ;176 EmptyGraph(const EmptyGraph &G) {} ;177 EmptyGraph() {} 178 EmptyGraph(const EmptyGraph &G) {} 177 179 178 180 … … 218 220 // @} 219 221 220 } ;222 } //namespace hugo 221 223 222 224 … … 237 239 238 240 // } 241 242 #endif // EMPTYGRAPH_H
Note: See TracChangeset
for help on using the changeset viewer.