# HG changeset patch # User deba # Date 1132132116 0 # Node ID 990ef198f64de67202819cf59d2dd25e318ecd75 # Parent 8b91105d5374778085acf6c2073b8e51ad2d24f0 Warning because unused parameters diff -r 8b91105d5374 -r 990ef198f64d lemon/bfs.h --- a/lemon/bfs.h Wed Nov 16 05:01:04 2005 +0000 +++ b/lemon/bfs.h Wed Nov 16 09:08:36 2005 +0000 @@ -228,7 +228,7 @@ template struct DefPredMapTraits : public Traits { typedef T PredMap; - static PredMap *createPredMap(const Graph &G) + static PredMap *createPredMap(const Graph &) { throw UninitializedParameter(); } @@ -245,7 +245,7 @@ template struct DefDistMapTraits : public Traits { typedef T DistMap; - static DistMap *createDistMap(const Graph &G) + static DistMap *createDistMap(const Graph &) { throw UninitializedParameter(); } @@ -262,7 +262,7 @@ template struct DefReachedMapTraits : public Traits { typedef T ReachedMap; - static ReachedMap *createReachedMap(const Graph &G) + static ReachedMap *createReachedMap(const Graph &) { throw UninitializedParameter(); } diff -r 8b91105d5374 -r 990ef198f64d lemon/dfs.h --- a/lemon/dfs.h Wed Nov 16 05:01:04 2005 +0000 +++ b/lemon/dfs.h Wed Nov 16 09:08:36 2005 +0000 @@ -1049,6 +1049,7 @@ return DfsWizard >(g,s); } +#ifdef DOXYGEN /// \brief Visitor class for dfs. /// /// It gives a simple interface for a functional interface for dfs @@ -1084,10 +1085,25 @@ /// \brief Called for the source node of the dfs. /// /// It is called for the source node of the dfs. - void start(const Node&) {} + void start(const Node& node) {} /// \brief Called when we leave the source node of the dfs. /// /// It is called when we leave the source node of the dfs. + void stop(const Node& node) {} + + }; +#else + template + struct DfsVisitor { + typedef _Graph Graph; + typedef typename Graph::Edge Edge; + typedef typename Graph::Node Node; + void discover(const Edge&) {} + void reach(const Node&) {} + void backtrack(const Edge&) {} + void leave(const Node&) {} + void examine(const Edge&) {} + void start(const Node&) {} void stop(const Node&) {} template @@ -1106,6 +1122,7 @@ _Visitor& visitor; }; }; +#endif /// \brief Default traits class of DfsVisit class. ///