[Lemon-commits] Peter Kovacs: Fix the incorrect tab replacements...
Lemon HG
hg at lemon.cs.elte.hu
Mon Jul 14 11:57:34 CEST 2008
details: http://lemon.cs.elte.hu/hg/lemon/rev/1ae84dea7d09
changeset: 212:1ae84dea7d09
user: Peter Kovacs <kpeter [at] inf.elte.hu>
date: Mon Jul 14 09:15:23 2008 +0200
description:
Fix the incorrect tab replacements of unify-sources.sh
diffstat:
11 files changed, 106 insertions(+), 116 deletions(-)
doc/Doxyfile.in | 2 -
doc/lgf.dox | 10 +++---
lemon/assert.h | 62 +++++++++++++++++-------------------------
lemon/concepts/path.h | 12 ++++----
lemon/error.h | 2 -
lemon/graph_to_eps.h | 4 +-
lemon/graph_utils.h | 72 ++++++++++++++++++++++++-------------------------
lemon/lgf_reader.h | 10 +++---
lemon/lgf_writer.h | 2 -
lemon/list_graph.h | 2 -
test/heap_test.cc | 44 ++++++++++++++---------------
diffs (truncated from 462 to 300 lines):
diff -r 81cfc04531e8 -r 1ae84dea7d09 doc/Doxyfile.in
--- a/doc/Doxyfile.in Sun Jul 13 20:09:47 2008 +0100
+++ b/doc/Doxyfile.in Mon Jul 14 09:15:23 2008 +0200
@@ -102,7 +102,7 @@
EXAMPLE_PATTERNS =
EXAMPLE_RECURSIVE = NO
IMAGE_PATH = @abs_top_srcdir@/doc/images \
- @abs_top_builddir@/doc/gen-images
+ @abs_top_builddir@/doc/gen-images
INPUT_FILTER =
FILTER_PATTERNS =
FILTER_SOURCE_FILES = NO
diff -r 81cfc04531e8 -r 1ae84dea7d09 doc/lgf.dox
--- a/doc/lgf.dox Sun Jul 13 20:09:47 2008 +0100
+++ b/doc/lgf.dox Mon Jul 14 09:15:23 2008 +0200
@@ -57,10 +57,10 @@
\code
@nodes
- label coordinates size title
- 1 (10,20) 10 "First node"
- 2 (80,80) 8 "Second node"
- 3 (40,10) 10 "Third node"
+ label coordinates size title
+ 1 (10,20) 10 "First node"
+ 2 (80,80) 8 "Second node"
+ 3 (40,10) 10 "Third node"
\endcode
The \c \@arcs section is very similar to the \c \@nodes section,
@@ -72,7 +72,7 @@
\code
@arcs
- capacity
+ capacity
1 2 16
1 3 12
2 3 18
diff -r 81cfc04531e8 -r 1ae84dea7d09 lemon/assert.h
--- a/lemon/assert.h Sun Jul 13 20:09:47 2008 +0100
+++ b/lemon/assert.h Mon Jul 14 09:15:23 2008 +0200
@@ -66,17 +66,17 @@
#undef LEMON_FIXME
#undef LEMON_DEBUG
-#if (defined(LEMON_ASSERT_LOG) ? 1 : 0) + \
- (defined(LEMON_ASSERT_ABORT) ? 1 : 0) + \
+#if (defined(LEMON_ASSERT_LOG) ? 1 : 0) + \
+ (defined(LEMON_ASSERT_ABORT) ? 1 : 0) + \
(defined(LEMON_ASSERT_CUSTOM) ? 1 : 0) > 1
#error "LEMON assertion system is not set properly"
#endif
-#if ((defined(LEMON_ASSERT_LOG) ? 1 : 0) + \
- (defined(LEMON_ASSERT_ABORT) ? 1 : 0) + \
- (defined(LEMON_ASSERT_CUSTOM) ? 1 : 0) == 1 || \
- defined(LEMON_ENABLE_ASSERTS)) && \
- (defined(LEMON_DISABLE_ASSERTS) || \
+#if ((defined(LEMON_ASSERT_LOG) ? 1 : 0) + \
+ (defined(LEMON_ASSERT_ABORT) ? 1 : 0) + \
+ (defined(LEMON_ASSERT_CUSTOM) ? 1 : 0) == 1 || \
+ defined(LEMON_ENABLE_ASSERTS)) && \
+ (defined(LEMON_DISABLE_ASSERTS) || \
defined(NDEBUG))
#error "LEMON assertion system is not set properly"
#endif
@@ -168,9 +168,9 @@
/// \ref lemon/assert.h "assert.h" file is reincluded, then the
/// behaviour is changed appropiately to the new settings.
# define LEMON_ASSERT(exp, msg) \
- (static_cast<void> (!!(exp) ? 0 : ( \
- LEMON_ASSERT_HANDLER(__FILE__, __LINE__, \
- LEMON_FUNCTION_NAME, \
+ (static_cast<void> (!!(exp) ? 0 : ( \
+ LEMON_ASSERT_HANDLER(__FILE__, __LINE__, \
+ LEMON_FUNCTION_NAME, \
::lemon::_assert_bits::cstringify(msg), #exp), 0)))
/// \ingroup exceptions
@@ -184,9 +184,9 @@
/// \endcode
///
/// \see LEMON_ASSERT
-# define LEMON_FIXME(msg) \
+# define LEMON_FIXME(msg) \
(LEMON_ASSERT_HANDLER(__FILE__, __LINE__, LEMON_FUNCTION_NAME, \
- ::lemon::_assert_bits::cstringify(msg), \
+ ::lemon::_assert_bits::cstringify(msg), \
static_cast<const char*>(0)))
/// \ingroup exceptions
@@ -212,10 +212,10 @@
/// macro.
///
/// \see LEMON_ASSERT
-# define LEMON_DEBUG(exp, msg) \
- (static_cast<void> (!!(exp) ? 0 : ( \
+# define LEMON_DEBUG(exp, msg) \
+ (static_cast<void> (!!(exp) ? 0 : ( \
LEMON_ASSERT_HANDLER(__FILE__, __LINE__, \
- LEMON_FUNCTION_NAME, \
+ LEMON_FUNCTION_NAME, \
::lemon::_assert_bits::cstringify(msg), #exp), 0)))
#else
@@ -225,23 +225,23 @@
# define LEMON_FIXME(msg) (static_cast<void>(0))
# define LEMON_DEBUG(exp, msg) (static_cast<void>(0))
# else
-# define LEMON_ASSERT(exp, msg) \
- (static_cast<void> (!!(exp) ? 0 : ( \
+# define LEMON_ASSERT(exp, msg) \
+ (static_cast<void> (!!(exp) ? 0 : ( \
LEMON_ASSERT_HANDLER(__FILE__, __LINE__, \
- LEMON_FUNCTION_NAME, \
- ::lemon::_assert_bits::cstringify(msg), \
+ LEMON_FUNCTION_NAME, \
+ ::lemon::_assert_bits::cstringify(msg), \
#exp), 0)))
-# define LEMON_FIXME(msg) \
- (LEMON_ASSERT_HANDLER(__FILE__, __LINE__, LEMON_FUNCTION_NAME, \
- ::lemon::_assert_bits::cstringify(msg), \
+# define LEMON_FIXME(msg) \
+ (LEMON_ASSERT_HANDLER(__FILE__, __LINE__, LEMON_FUNCTION_NAME, \
+ ::lemon::_assert_bits::cstringify(msg), \
static_cast<const char*>(0)))
# if LEMON_ENABLE_DEBUG
# define LEMON_DEBUG(exp, msg)
- (static_cast<void> (!!(exp) ? 0 : ( \
- LEMON_ASSERT_HANDLER(__FILE__, __LINE__, \
- LEMON_FUNCTION_NAME, \
- ::lemon::_assert_bits::cstringify(msg), \
+ (static_cast<void> (!!(exp) ? 0 : ( \
+ LEMON_ASSERT_HANDLER(__FILE__, __LINE__, \
+ LEMON_FUNCTION_NAME, \
+ ::lemon::_assert_bits::cstringify(msg), \
#exp), 0)))
# else
# define LEMON_DEBUG(exp, msg) (static_cast<void>(0))
@@ -249,13 +249,3 @@
# endif
#endif
-
-#ifdef DOXYGEN
-
-
-#else
-
-
-#endif
-
-
diff -r 81cfc04531e8 -r 1ae84dea7d09 lemon/concepts/path.h
--- a/lemon/concepts/path.h Sun Jul 13 20:09:47 2008 +0100
+++ b/lemon/concepts/path.h Mon Jul 14 09:15:23 2008 +0200
@@ -100,8 +100,8 @@
bool operator==(const ArcIt&) const {return true;}
/// Comparison operator
bool operator!=(const ArcIt&) const {return true;}
- /// Comparison operator
- bool operator<(const ArcIt&) const {return false;}
+ /// Comparison operator
+ bool operator<(const ArcIt&) const {return false;}
};
@@ -255,8 +255,8 @@
bool operator==(const ArcIt&) const {return true;}
/// Comparison operator
bool operator!=(const ArcIt&) const {return true;}
- /// Comparison operator
- bool operator<(const ArcIt&) const {return false;}
+ /// Comparison operator
+ bool operator<(const ArcIt&) const {return false;}
};
@@ -283,8 +283,8 @@
bool operator==(const RevArcIt&) const {return true;}
/// Comparison operator
bool operator!=(const RevArcIt&) const {return true;}
- /// Comparison operator
- bool operator<(const RevArcIt&) const {return false;}
+ /// Comparison operator
+ bool operator<(const RevArcIt&) const {return false;}
};
diff -r 81cfc04531e8 -r 1ae84dea7d09 lemon/error.h
--- a/lemon/error.h Sun Jul 13 20:09:47 2008 +0100
+++ b/lemon/error.h Mon Jul 14 09:15:23 2008 +0200
@@ -70,7 +70,7 @@
if (ptr.get() == 0) return;
try {
if (!copy.valid()) return;
- *ptr = copy.get();
+ *ptr = copy.get();
} catch (...) {}
}
diff -r 81cfc04531e8 -r 1ae84dea7d09 lemon/graph_to_eps.h
--- a/lemon/graph_to_eps.h Sun Jul 13 20:09:47 2008 +0100
+++ b/lemon/graph_to_eps.h Mon Jul 14 09:15:23 2008 +0200
@@ -908,7 +908,7 @@
double l=std::sqrt(dvec.normSquare());
//\todo better 'epsilon' would be nice here.
dim2::Point<double> d(dvec/std::max(l,EPSILON));
- dim2::Point<double> m;
+ dim2::Point<double> m;
// m=dim2::Point<double>(mycoords[g.target(*i)]+
// mycoords[g.source(*i)])/2.0;
@@ -916,7 +916,7 @@
// dvec*(double(_nodeSizes[g.source(*i)])/
// (_nodeSizes[g.source(*i)]+_nodeSizes[g.target(*i)]));
- m=dim2::Point<double>(mycoords[g.source(*i)])+
+ m=dim2::Point<double>(mycoords[g.source(*i)])+
d*(l+_nodeSizes[g.source(*i)]-_nodeSizes[g.target(*i)])/2.0;
for(typename std::vector<Arc>::iterator e=i;e!=j;++e) {
diff -r 81cfc04531e8 -r 1ae84dea7d09 lemon/graph_utils.h
--- a/lemon/graph_utils.h Sun Jul 13 20:09:47 2008 +0100
+++ b/lemon/graph_utils.h Mon Jul 14 09:15:23 2008 +0200
@@ -52,18 +52,18 @@
///\note If the graph type is a dependent type, ie. the graph type depend
///on a template parameter, then use \c TEMPLATE_DIGRAPH_TYPEDEFS()
///macro.
-#define DIGRAPH_TYPEDEFS(Digraph) \
- typedef Digraph::Node Node; \
- typedef Digraph::NodeIt NodeIt; \
- typedef Digraph::Arc Arc; \
- typedef Digraph::ArcIt ArcIt; \
- typedef Digraph::InArcIt InArcIt; \
- typedef Digraph::OutArcIt OutArcIt; \
- typedef Digraph::NodeMap<bool> BoolNodeMap; \
- typedef Digraph::NodeMap<int> IntNodeMap; \
- typedef Digraph::NodeMap<double> DoubleNodeMap; \
- typedef Digraph::ArcMap<bool> BoolArcMap; \
- typedef Digraph::ArcMap<int> IntArcMap; \
+#define DIGRAPH_TYPEDEFS(Digraph) \
+ typedef Digraph::Node Node; \
+ typedef Digraph::NodeIt NodeIt; \
+ typedef Digraph::Arc Arc; \
+ typedef Digraph::ArcIt ArcIt; \
+ typedef Digraph::InArcIt InArcIt; \
+ typedef Digraph::OutArcIt OutArcIt; \
+ typedef Digraph::NodeMap<bool> BoolNodeMap; \
+ typedef Digraph::NodeMap<int> IntNodeMap; \
+ typedef Digraph::NodeMap<double> DoubleNodeMap; \
+ typedef Digraph::ArcMap<bool> BoolArcMap; \
+ typedef Digraph::ArcMap<int> IntArcMap; \
typedef Digraph::ArcMap<double> DoubleArcMap
///Creates convenience typedefs for the digraph types and iterators
@@ -72,18 +72,18 @@
///
///\note Use this macro, if the graph type is a dependent type,
///ie. the graph type depend on a template parameter.
-#define TEMPLATE_DIGRAPH_TYPEDEFS(Digraph) \
- typedef typename Digraph::Node Node; \
- typedef typename Digraph::NodeIt NodeIt; \
- typedef typename Digraph::Arc Arc; \
+#define TEMPLATE_DIGRAPH_TYPEDEFS(Digraph) \
+ typedef typename Digraph::Node Node; \
+ typedef typename Digraph::NodeIt NodeIt; \
+ typedef typename Digraph::Arc Arc; \
typedef typename Digraph::ArcIt ArcIt; \
- typedef typename Digraph::InArcIt InArcIt; \
- typedef typename Digraph::OutArcIt OutArcIt; \
- typedef typename Digraph::template NodeMap<bool> BoolNodeMap; \
- typedef typename Digraph::template NodeMap<int> IntNodeMap; \
- typedef typename Digraph::template NodeMap<double> DoubleNodeMap; \
- typedef typename Digraph::template ArcMap<bool> BoolArcMap; \
- typedef typename Digraph::template ArcMap<int> IntArcMap; \
+ typedef typename Digraph::InArcIt InArcIt; \
+ typedef typename Digraph::OutArcIt OutArcIt; \
+ typedef typename Digraph::template NodeMap<bool> BoolNodeMap; \
+ typedef typename Digraph::template NodeMap<int> IntNodeMap; \
+ typedef typename Digraph::template NodeMap<double> DoubleNodeMap; \
+ typedef typename Digraph::template ArcMap<bool> BoolArcMap; \
+ typedef typename Digraph::template ArcMap<int> IntArcMap; \
typedef typename Digraph::template ArcMap<double> DoubleArcMap
///Creates convenience typedefs for the graph types and iterators
@@ -96,13 +96,13 @@
///\note If the graph type is a dependent type, ie. the graph type depend
///on a template parameter, then use \c TEMPLATE_DIGRAPH_TYPEDEFS()
///macro.
-#define GRAPH_TYPEDEFS(Graph) \
- DIGRAPH_TYPEDEFS(Graph); \
- typedef Graph::Edge Edge; \
- typedef Graph::EdgeIt EdgeIt; \
- typedef Graph::IncEdgeIt IncEdgeIt; \
- typedef Graph::EdgeMap<bool> BoolEdgeMap; \
- typedef Graph::EdgeMap<int> IntEdgeMap; \
+#define GRAPH_TYPEDEFS(Graph) \
More information about the Lemon-commits
mailing list