[Lemon-commits] [lemon_svn] deba: r2342 - hugo/trunk/lemon
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:51:55 CET 2006
Author: deba
Date: Wed Nov 16 10:08:36 2005
New Revision: 2342
Modified:
hugo/trunk/lemon/bfs.h
hugo/trunk/lemon/dfs.h
Log:
Warning because unused parameters
Modified: hugo/trunk/lemon/bfs.h
==============================================================================
--- hugo/trunk/lemon/bfs.h (original)
+++ hugo/trunk/lemon/bfs.h Wed Nov 16 10:08:36 2005
@@ -228,7 +228,7 @@
template <class T>
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 <class T>
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 <class T>
struct DefReachedMapTraits : public Traits {
typedef T ReachedMap;
- static ReachedMap *createReachedMap(const Graph &G)
+ static ReachedMap *createReachedMap(const Graph &)
{
throw UninitializedParameter();
}
Modified: hugo/trunk/lemon/dfs.h
==============================================================================
--- hugo/trunk/lemon/dfs.h (original)
+++ hugo/trunk/lemon/dfs.h Wed Nov 16 10:08:36 2005
@@ -1049,6 +1049,7 @@
return DfsWizard<DfsWizardBase<GR> >(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 <typename _Graph>
+ 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 <typename _Visitor>
@@ -1106,6 +1122,7 @@
_Visitor& visitor;
};
};
+#endif
/// \brief Default traits class of DfsVisit class.
///
More information about the Lemon-commits
mailing list