Changeset 1367:a490662291b9 in lemon-0.x for src/lemon/concept
- Timestamp:
- 04/18/05 16:59:24 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1812
- Location:
- src/lemon/concept
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lemon/concept/graph.h
r1359 r1367 186 186 /// Copy constructor. 187 187 /// 188 NodeIt(const NodeIt& ) { }188 NodeIt(const NodeIt& n) : Node(n) { } 189 189 /// Invalid constructor \& conversion. 190 190 … … 196 196 /// Sets the iterator to the first node of \c g. 197 197 /// 198 NodeIt(const StaticGraph& g) { }198 NodeIt(const StaticGraph&) { } 199 199 /// Node -> NodeIt conversion. 200 200 … … 268 268 /// Copy constructor. 269 269 /// 270 OutEdgeIt(const OutEdgeIt& ) { }270 OutEdgeIt(const OutEdgeIt& e) : Edge(e) { } 271 271 /// Initialize the iterator to be invalid. 272 272 … … 280 280 ///@param n the node 281 281 ///@param g the graph 282 OutEdgeIt(const StaticGraph& g, const Node& n) { }282 OutEdgeIt(const StaticGraph&, const Node&) { } 283 283 /// Edge -> OutEdgeIt conversion 284 284 … … 317 317 /// Copy constructor. 318 318 /// 319 InEdgeIt(const InEdgeIt& ) { }319 InEdgeIt(const InEdgeIt& e) : Edge(e) { } 320 320 /// Initialize the iterator to be invalid. 321 321 … … 329 329 ///@param n the node 330 330 ///@param g the graph 331 InEdgeIt(const StaticGraph& g, const Node& n) { }331 InEdgeIt(const StaticGraph&, const Node&) { } 332 332 /// Edge -> InEdgeIt conversion 333 333 … … 335 335 /// This feature necessitates that each time we 336 336 /// iterate the edge-set, the iteration order is the same. 337 InEdgeIt(const StaticGraph& g, const Edge& n) { }337 InEdgeIt(const StaticGraph&, const Edge&) { } 338 338 /// Next incoming edge 339 339 … … 362 362 /// Copy constructor. 363 363 /// 364 EdgeIt(const EdgeIt& ) { }364 EdgeIt(const EdgeIt& e) : Edge(e) { } 365 365 /// Initialize the iterator to be invalid. 366 366 … … 373 373 /// node 374 374 ///@param g the graph 375 EdgeIt(const StaticGraph& g) { }375 EdgeIt(const StaticGraph&) { } 376 376 /// Edge -> EdgeIt conversion 377 377 … … 414 414 415 415 ///Copy constructor 416 NodeMap(const NodeMap& ) { }416 NodeMap(const NodeMap& nm) : ReadWriteMap< Node, T >(nm) { } 417 417 ///Assignment operator 418 418 NodeMap& operator=(const NodeMap&) { return *this; } … … 437 437 EdgeMap(const StaticGraph&, T) { } 438 438 ///Copy constructor 439 EdgeMap(const EdgeMap& ) { }439 EdgeMap(const EdgeMap& em) : ReadWriteMap<Edge,T>(em) { } 440 440 ///Assignment operator 441 441 EdgeMap& operator=(const EdgeMap&) { return *this; } … … 471 471 ///and target node \c t. 472 472 ///\return the new edge. 473 Edge addEdge(Node s, Node t) { return INVALID; }473 Edge addEdge(Node, Node) { return INVALID; } 474 474 475 475 /// Resets the graph. … … 501 501 /// Deletes node \c n node. 502 502 /// 503 void erase(Node n) { }503 void erase(Node) { } 504 504 /// Deletes an edge. 505 505 506 506 /// Deletes edge \c e edge. 507 507 /// 508 void erase(Edge e) { }508 void erase(Edge) { } 509 509 510 510 template <typename _Graph> -
src/lemon/concept/graph_component.h
r1359 r1367 305 305 /// If the graph does not contain node with the given id 306 306 /// then the result of the function is undetermined. 307 Node fromId(int id, Node) const { return INVALID;}307 Node fromId(int , Node) const { return INVALID;} 308 308 309 309 /// \brief Gives back an unique integer id for the Edge. … … 318 318 /// If the graph does not contain edge with the given id 319 319 /// then the result of the function is undetermined. 320 Edge fromId(int id, Edge) const { return INVALID;}320 Edge fromId(int, Edge) const { return INVALID;} 321 321 322 322 template <typename _Graph> … … 399 399 /// Adds a new Edge connects the two Nodes to the graph. 400 400 /// 401 Edge addEdge(const Node& from, const Node& to) {401 Edge addEdge(const Node&, const Node&) { 402 402 return INVALID; 403 403 } … … 746 746 /// 747 747 /// Copy Constructor. 748 GraphMap(const GraphMap& ) {}748 GraphMap(const GraphMap& gm) :ReadWriteMap<Item, _Value>(gm) {} 749 749 750 750 /// \brief Assign operator. … … 810 810 /// 811 811 /// Copy Constructor. 812 NodeMap(const NodeMap& ) {}812 NodeMap(const NodeMap& nm) : GraphMap<Graph, Node, _Value>(nm) {} 813 813 814 814 /// \brief Assign operator. … … 840 840 /// 841 841 /// Copy Constructor. 842 EdgeMap(const EdgeMap& ) {}842 EdgeMap(const EdgeMap& em) :GraphMap<Graph, Edge, _Value>(em) {} 843 843 844 844 /// \brief Assign operator. … … 918 918 /// 919 919 /// Add an edge to the graph and notify the observers. 920 Edge addEdge(const Node& from, const Node& to) {920 Edge addEdge(const Node&, const Node&) { 921 921 return INVALID; 922 922 } -
src/lemon/concept/maps.h
r1359 r1367 77 77 78 78 /// Sets the value associated with a key. 79 void set(const Key & k,const Value &t) {}79 void set(const Key &,const Value &) {} 80 80 81 81 ///Default constructor … … 115 115 116 116 /// Returns the value associated with a key. 117 Value operator[](const Key & k) const {return Value();}117 Value operator[](const Key &) const {return Value();} 118 118 /// Sets the value associated with a key. 119 void set(const Key & k,const Value &t) {}119 void set(const Key & ,const Value &) {} 120 120 121 121 template<typename _ReadWriteMap> -
src/lemon/concept/path.h
r1359 r1367 55 55 /// \param _G The graph in which the path is. 56 56 /// 57 Path(const Graph & _G) {}57 Path(const Graph &) {} 58 58 59 59 /// Length of the path. … … 87 87 /// Returns node iterator pointing to the target node of the 88 88 /// given edge iterator. 89 NodeIt target(const EdgeIt& e) const {return INVALID;}89 NodeIt target(const EdgeIt&) const {return INVALID;} 90 90 91 91 /// \brief The source of an edge. … … 93 93 /// Returns node iterator pointing to the source node of the 94 94 /// given edge iterator. 95 NodeIt source(const EdgeIt& e) const {return INVALID;}95 NodeIt source(const EdgeIt&) const {return INVALID;} 96 96 97 97 … … 113 113 EdgeIt(Invalid) {} 114 114 /// Constructor with starting point 115 EdgeIt(const Path & _p) {}115 EdgeIt(const Path &) {} 116 116 117 117 operator GraphEdge () const {} … … 121 121 122 122 /// Comparison operator 123 bool operator==(const EdgeIt& e) const {return true;}124 /// Comparison operator 125 bool operator!=(const EdgeIt& e) const {return true;}123 bool operator==(const EdgeIt&) const {return true;} 124 /// Comparison operator 125 bool operator!=(const EdgeIt&) const {return true;} 126 126 // /// Comparison operator 127 127 // /// \todo It is not clear what is the "natural" ordering. … … 145 145 NodeIt(Invalid) {} 146 146 /// Constructor with starting point 147 NodeIt(const Path & _p) {}147 NodeIt(const Path &) {} 148 148 149 149 ///Conversion to Graph::Node … … 153 153 154 154 /// Comparison operator 155 bool operator==(const NodeIt& e) const {return true;}156 /// Comparison operator 157 bool operator!=(const NodeIt& e) const {return true;}155 bool operator==(const NodeIt&) const {return true;} 156 /// Comparison operator 157 bool operator!=(const NodeIt&) const {return true;} 158 158 // /// Comparison operator 159 159 // /// \todo It is not clear what is the "natural" ordering. … … 202 202 ///If the path is empty, you \em must call \ref setStartNode() before 203 203 ///the first use of \ref pushFront(). 204 void pushFront(const GraphEdge& e) {}204 void pushFront(const GraphEdge&) {} 205 205 206 206 ///Push a new edge to the back of the path … … 209 209 ///If the path is empty, you \em must call \ref setStartNode() before 210 210 ///the first use of \ref pushBack(). 211 void pushBack(const GraphEdge& e) {}211 void pushBack(const GraphEdge&) {} 212 212 213 213 ///Commit the changes to the path. … … 219 219 ///to add to the front of the path, 220 220 ///using this function you may speed up the building. 221 void reserveFront(size_t r) {}221 void reserveFront(size_t) {} 222 222 ///Reserve (back) storage for the builder in advance. 223 223 … … 225 225 ///to add to the back of the path, 226 226 ///using this function you may speed up the building. 227 void reserveBack(size_t r) {}227 void reserveBack(size_t) {} 228 228 }; 229 229 }; -
src/lemon/concept/undir_graph.h
r1359 r1367 47 47 48 48 /// \e 49 UndirGraphEdge(const UndirGraphEdge& ) {}49 UndirGraphEdge(const UndirGraphEdge& e) : UndirGraph::UndirEdge(e) {} 50 50 51 51 /// \e … … 470 470 /// 471 471 /// Returns the base node of the iterator 472 Node baseNode(IncEdgeIt e) const {472 Node baseNode(IncEdgeIt) const { 473 473 return INVALID; 474 474 } … … 476 476 /// 477 477 /// Returns the running node of the iterator 478 Node runningNode(IncEdgeIt e) const {478 Node runningNode(IncEdgeIt) const { 479 479 return INVALID; 480 480 }
Note: See TracChangeset
for help on using the changeset viewer.