[Lemon-commits] Peter Kovacs: Change the style of code examples ...
Lemon HG
hg at lemon.cs.elte.hu
Sun Oct 8 20:45:21 CEST 2017
details: http://lemon.cs.elte.hu/hg/lemon/rev/7d32a2d6ed59
changeset: 1377:7d32a2d6ed59
user: Peter Kovacs <kpeter [at] inf.elte.hu>
date: Sat Oct 07 00:19:19 2017 +0200
description:
Change the style of code examples in API doc
diffstat:
lemon/lgf_reader.h | 36 ++++++++++++++++++------------------
lemon/lgf_writer.h | 40 ++++++++++++++++++++--------------------
2 files changed, 38 insertions(+), 38 deletions(-)
diffs (138 lines):
diff --git a/lemon/lgf_reader.h b/lemon/lgf_reader.h
--- a/lemon/lgf_reader.h
+++ b/lemon/lgf_reader.h
@@ -451,13 +451,13 @@
/// rules.
///
///\code
- /// DigraphReader<DGR>(digraph, std::cin).
- /// nodeMap("coordinates", coord_map).
- /// arcMap("capacity", cap_map).
- /// node("source", src).
- /// node("target", trg).
- /// attribute("caption", caption).
- /// run();
+ /// DigraphReader<DGR>(digraph, std::cin)
+ /// .nodeMap("coordinates", coord_map)
+ /// .arcMap("capacity", cap_map)
+ /// .node("source", src)
+ /// .node("target", trg)
+ /// .attribute("caption", caption)
+ /// .run();
///\endcode
///
/// By default, the reader uses the first section in the file of the
@@ -1246,11 +1246,11 @@
///ListDigraph digraph;
///ListDigraph::ArcMap<int> cap(digraph);
///ListDigraph::Node src, trg;
- ///digraphReader(digraph, std::cin).
- /// arcMap("capacity", cap).
- /// node("source", src).
- /// node("target", trg).
- /// run();
+ ///digraphReader(digraph, std::cin)
+ /// .arcMap("capacity", cap)
+ /// .node("source", src)
+ /// .node("target", trg)
+ /// .run();
///\endcode
///
/// For a complete documentation, please see the
@@ -2123,9 +2123,9 @@
///\code
///ListGraph graph;
///ListGraph::EdgeMap<int> weight(graph);
- ///graphReader(graph, std::cin).
- /// edgeMap("weight", weight).
- /// run();
+ ///graphReader(graph, std::cin)
+ /// .edgeMap("weight", weight)
+ /// .run();
///\endcode
///
/// For a complete documentation, please see the
@@ -3191,9 +3191,9 @@
///\code
///ListBpGraph graph;
///ListBpGraph::EdgeMap<int> weight(graph);
- ///bpGraphReader(graph, std::cin).
- /// edgeMap("weight", weight).
- /// run();
+ ///bpGraphReader(graph, std::cin)
+ /// .edgeMap("weight", weight)
+ /// .run();
///\endcode
///
/// For a complete documentation, please see the
diff --git a/lemon/lgf_writer.h b/lemon/lgf_writer.h
--- a/lemon/lgf_writer.h
+++ b/lemon/lgf_writer.h
@@ -408,15 +408,15 @@
/// arc() functions are used to add attribute writing rules.
///
///\code
- /// DigraphWriter<DGR>(digraph, std::cout).
- /// nodeMap("coordinates", coord_map).
- /// nodeMap("size", size).
- /// nodeMap("title", title).
- /// arcMap("capacity", cap_map).
- /// node("source", src).
- /// node("target", trg).
- /// attribute("caption", caption).
- /// run();
+ /// DigraphWriter<DGR>(digraph, std::cout)
+ /// .nodeMap("coordinates", coord_map)
+ /// .nodeMap("size", size)
+ /// .nodeMap("title", title)
+ /// .arcMap("capacity", cap_map)
+ /// .node("source", src)
+ /// .node("target", trg)
+ /// .attribute("caption", caption)
+ /// .run();
///\endcode
///
///
@@ -961,11 +961,11 @@
///ListDigraph::ArcMap<int> cap(digraph);
///ListDigraph::Node src, trg;
/// // Setting the capacity map and source and target nodes
- ///digraphWriter(digraph, std::cout).
- /// arcMap("capacity", cap).
- /// node("source", src).
- /// node("target", trg).
- /// run();
+ ///digraphWriter(digraph, std::cout)
+ /// .arcMap("capacity", cap)
+ /// .node("source", src)
+ /// .node("target", trg)
+ /// .run();
///\endcode
///
/// For a complete documentation, please see the
@@ -1599,9 +1599,9 @@
///ListGraph graph;
///ListGraph::EdgeMap<int> weight(graph);
/// // Setting the weight map
- ///graphWriter(graph, std::cout).
- /// edgeMap("weight", weight).
- /// run();
+ ///graphWriter(graph, std::cout)
+ /// .edgeMap("weight", weight)
+ /// .run();
///\endcode
///
/// For a complete documentation, please see the
@@ -2419,9 +2419,9 @@
///ListBpGraph graph;
///ListBpGraph::EdgeMap<int> weight(graph);
/// // Setting the weight map
- ///bpGraphWriter(graph, std::cout).
- /// edgeMap("weight", weight).
- /// run();
+ ///bpGraphWriter(graph, std::cout)
+ /// .edgeMap("weight", weight)
+ /// .run();
///\endcode
///
/// For a complete documentation, please see the
More information about the Lemon-commits
mailing list