# HG changeset patch # User deba # Date 1162304878 0 # Node ID 9d7b12f83daa05e6fd21d6fe5911bdbb9ef2cc35 # Parent 55b15666560f688dda5041ee2f6abea4345fc3c4 Bug fixes diff -r 55b15666560f -r 9d7b12f83daa lemon/lemon_reader.h --- a/lemon/lemon_reader.h Tue Oct 31 09:32:44 2006 +0000 +++ b/lemon/lemon_reader.h Tue Oct 31 14:27:58 2006 +0000 @@ -117,8 +117,8 @@ } private: + const Graph& graph; typename Ref::Type map; - const Graph& graph; }; template @@ -147,8 +147,8 @@ } private: + const Graph& graph; typename Ref::Type map; - const Graph& graph; }; @@ -1377,10 +1377,10 @@ const Reader& reader = Reader()) { checkConcept<_reader_bits::ItemReader, Reader>(); checkConcept, Map>(); - readMap("+" + name, - _reader_bits::forwardComposeMap(graph, map), reader); - readMap("-" + name, - _reader_bits::backwardComposeMap(graph, map), reader); + readUEdgeMap("+" + name, + _reader_bits::forwardComposeMap(graph, map), reader); + readUEdgeMap("-" + name, + _reader_bits::backwardComposeMap(graph, map), reader); return *this; } @@ -1391,9 +1391,9 @@ /// Add a new directed edge map skipper command for the reader. template UEdgeSetReader& skipEdgeMap(std::string name, - const Reader& reader = Reader()) { - skipMap("+" + name, reader); - skipMap("-" + name, reader); + const Reader& reader = Reader()) { + skipUEdgeMap("+" + name, reader); + skipUEdgeMap("-" + name, reader); return *this; } diff -r 55b15666560f -r 9d7b12f83daa lemon/lemon_writer.h --- a/lemon/lemon_writer.h Tue Oct 31 09:32:44 2006 +0000 +++ b/lemon/lemon_writer.h Tue Oct 31 14:27:58 2006 +0000 @@ -877,7 +877,7 @@ /// Add a new undirected map writer command for the writer. template UEdgeSetWriter& writeUEdgeMap(std::string name, const Map& map, - const Writer& writer = Writer()) { + const Writer& writer = Writer()) { checkConcept, Map>(); checkConcept<_writer_bits::ItemWriter, Writer>(); writers.push_back( @@ -900,13 +900,13 @@ /// Add a new directed map writer command for the writer. template UEdgeSetWriter& writeEdgeMap(std::string name, const Map& map, - const Writer& writer = Writer()) { + const Writer& writer = Writer()) { checkConcept, Map>(); checkConcept<_writer_bits::ItemWriter, Writer>(); - writeUEdge("+" + name, - _writer_bits::forwardComposeMap(graph, map), writer); - writeUEdge("-" + name, - _writer_bits::backwardComposeMap(graph, map), writer); + writeUEdgeMap("+" + name, + _writer_bits::forwardComposeMap(graph, map), writer); + writeUEdgeMap("-" + name, + _writer_bits::backwardComposeMap(graph, map), writer); return *this; } @@ -955,7 +955,7 @@ os << writers[i].first << '\t'; } os << std::endl; - for (typename std::vector::iterator it = items.begin(); + for (typename std::vector::iterator it = items.begin(); it != items.end(); ++it) { nodeLabelWriter->write(os, graph.source(*it)); os << '\t';