* doc/outputs/tuto4_site_set_create.txt,
* doc/outputs/split/tuto4_site_set_create-1.txt,
* doc/outputs/split/tuto4_site_set_create-2.txt,
* doc/outputs/split/tuto4_site_set_create-3.txt,
* doc/examples/split/tuto4_site_set_create-2.cc.raw,
* doc/examples/split/tuto4_site_set_create-3.cc.raw,
* doc/examples/split/tuto4_site_set_create-4.cc.raw,
* doc/examples/split/tuto4_site_set_create-5.cc.raw: New reference
files.
* doc/examples/tuto4/site_set_create.cc: Add more sample code.
---
milena/ChangeLog | 16 ++++++++++
.../examples/split/tuto4_site_set_create-2.cc.raw | 7 ++--
.../examples/split/tuto4_site_set_create-3.cc.raw | 7 ++--
.../examples/split/tuto4_site_set_create-4.cc.raw | 5 ++-
...ate-4.cc.raw => tuto4_site_set_create-5.cc.raw} | 0
milena/doc/examples/tuto4/site_set_create.cc | 32 +++++++++++++------
.../doc/outputs/split/tuto4_site_set_create-1.txt | 1 +
.../doc/outputs/split/tuto4_site_set_create-2.txt | 1 +
.../doc/outputs/split/tuto4_site_set_create-3.txt | 1 +
milena/doc/outputs/tuto4_site_set_create.txt | 11 ++++--
10 files changed, 59 insertions(+), 22 deletions(-)
copy milena/doc/examples/split/{tuto4_site_set_create-4.cc.raw =>
tuto4_site_set_create-5.cc.raw} (100%)
create mode 100644 milena/doc/outputs/split/tuto4_site_set_create-1.txt
create mode 100644 milena/doc/outputs/split/tuto4_site_set_create-2.txt
create mode 100644 milena/doc/outputs/split/tuto4_site_set_create-3.txt
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 37322db..6ab45c8 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,21 @@
2009-07-13 Guillaume Lazzara <guillaume.lazzara(a)lrde.epita.fr>
+ Update a tutorial example.
+
+ * doc/outputs/tuto4_site_set_create.txt,
+ * doc/outputs/split/tuto4_site_set_create-1.txt,
+ * doc/outputs/split/tuto4_site_set_create-2.txt,
+ * doc/outputs/split/tuto4_site_set_create-3.txt,
+ * doc/examples/split/tuto4_site_set_create-2.cc.raw,
+ * doc/examples/split/tuto4_site_set_create-3.cc.raw,
+ * doc/examples/split/tuto4_site_set_create-4.cc.raw,
+ * doc/examples/split/tuto4_site_set_create-5.cc.raw: New reference
+ files.
+
+ * doc/examples/tuto4/site_set_create.cc: Add more sample code.
+
+2009-07-13 Guillaume Lazzara <guillaume.lazzara(a)lrde.epita.fr>
+
* mln/geom/rotate.hh: use mln_domain instead of mln_box.
2009-07-13 Guillaume Lazzara <guillaume.lazzara(a)lrde.epita.fr>
diff --git a/milena/doc/examples/split/tuto4_site_set_create-2.cc.raw
b/milena/doc/examples/split/tuto4_site_set_create-2.cc.raw
index 06a04e3..63ceee5 100644
--- a/milena/doc/examples/split/tuto4_site_set_create-2.cc.raw
+++ b/milena/doc/examples/split/tuto4_site_set_create-2.cc.raw
@@ -1,3 +1,4 @@
- p_array<point2d> arr;
- arr.append(point2d(2,2));
- arr.append(point2d(1,2));
+ mln_piter_(box2d) p(b);
+ for_all(p)
+ std::cout << p << ", ";
+ std::cout << std::endl;
diff --git a/milena/doc/examples/split/tuto4_site_set_create-3.cc.raw
b/milena/doc/examples/split/tuto4_site_set_create-3.cc.raw
index 63ceee5..45970ad 100644
--- a/milena/doc/examples/split/tuto4_site_set_create-3.cc.raw
+++ b/milena/doc/examples/split/tuto4_site_set_create-3.cc.raw
@@ -1,4 +1,3 @@
- mln_piter_(box2d) p(b);
- for_all(p)
- std::cout << p << ", ";
- std::cout << std::endl;
+ p_array<point2d> arr;
+ arr.append(point2d(2,2));
+ arr.append(point2d(1,2));
diff --git a/milena/doc/examples/split/tuto4_site_set_create-4.cc.raw
b/milena/doc/examples/split/tuto4_site_set_create-4.cc.raw
index 1bbf4c0..ccff7e6 100644
--- a/milena/doc/examples/split/tuto4_site_set_create-4.cc.raw
+++ b/milena/doc/examples/split/tuto4_site_set_create-4.cc.raw
@@ -1 +1,4 @@
- box2d b = make::box2d(-2,-2, 2, 2);
+ mln_piter_(p_array<point2d>) p(arr);
+ for_all(p)
+ std::cout << p << ", ";
+ std::cout << std::endl;
diff --git a/milena/doc/examples/split/tuto4_site_set_create-4.cc.raw
b/milena/doc/examples/split/tuto4_site_set_create-5.cc.raw
similarity index 100%
copy from milena/doc/examples/split/tuto4_site_set_create-4.cc.raw
copy to milena/doc/examples/split/tuto4_site_set_create-5.cc.raw
diff --git a/milena/doc/examples/tuto4/site_set_create.cc
b/milena/doc/examples/tuto4/site_set_create.cc
index 8c80c2e..8f0e5fe 100644
--- a/milena/doc/examples/tuto4/site_set_create.cc
+++ b/milena/doc/examples/tuto4/site_set_create.cc
@@ -10,31 +10,43 @@ int main()
box2d b(4,4);
// \}
- // \{
- p_array<point2d> arr;
- arr.append(point2d(2,2));
- arr.append(point2d(1,2));
- // \}
-
- std::cout << "\\{" << std::endl;
+ std::cout << "// \\{" << std::endl;
// \{
mln_piter_(box2d) p(b);
for_all(p)
std::cout << p << ", ";
std::cout << std::endl;
// \}
- std::cout << "\\}" << std::endl;
+ std::cout << "// \\}" << std::endl;
+
+
+ {
+ // \{
+ p_array<point2d> arr;
+ arr.append(point2d(2,2));
+ arr.append(point2d(1,2));
+ // \}
+
+ std::cout << "// \\{" << std::endl;
+ // \{
+ mln_piter_(p_array<point2d>) p(arr);
+ for_all(p)
+ std::cout << p << ", ";
+ std::cout << std::endl;
+ // \}
+ std::cout << "// \\}" << std::endl;
+ }
{
// \{
box2d b = make::box2d(-2,-2, 2, 2);
// \}
- std::cout << "\\{" << std::endl;
+ std::cout << "// \\{" << std::endl;
mln_piter_(box2d) p(b);
for_all(p)
std::cout << p << ", ";
std::cout << std::endl;
- std::cout << "\\}" << std::endl;
+ std::cout << "// \\}" << std::endl;
}
}
diff --git a/milena/doc/outputs/split/tuto4_site_set_create-1.txt
b/milena/doc/outputs/split/tuto4_site_set_create-1.txt
new file mode 100644
index 0000000..915e60e
--- /dev/null
+++ b/milena/doc/outputs/split/tuto4_site_set_create-1.txt
@@ -0,0 +1 @@
+(0,0), (0,1), (0,2), (0,3), (1,0), (1,1), (1,2), (1,3), (2,0), (2,1), (2,2), (2,3),
(3,0), (3,1), (3,2), (3,3),
diff --git a/milena/doc/outputs/split/tuto4_site_set_create-2.txt
b/milena/doc/outputs/split/tuto4_site_set_create-2.txt
new file mode 100644
index 0000000..ad9805f
--- /dev/null
+++ b/milena/doc/outputs/split/tuto4_site_set_create-2.txt
@@ -0,0 +1 @@
+(2,2), (1,2),
diff --git a/milena/doc/outputs/split/tuto4_site_set_create-3.txt
b/milena/doc/outputs/split/tuto4_site_set_create-3.txt
new file mode 100644
index 0000000..ecb9a3b
--- /dev/null
+++ b/milena/doc/outputs/split/tuto4_site_set_create-3.txt
@@ -0,0 +1 @@
+(-2,-2), (-2,-1), (-2,0), (-2,1), (-2,2), (-1,-2), (-1,-1), (-1,0), (-1,1), (-1,2),
(0,-2), (0,-1), (0,0), (0,1), (0,2), (1,-2), (1,-1), (1,0), (1,1), (1,2), (2,-2), (2,-1),
(2,0), (2,1), (2,2),
diff --git a/milena/doc/outputs/tuto4_site_set_create.txt
b/milena/doc/outputs/tuto4_site_set_create.txt
index 1cfac41..c711d72 100644
--- a/milena/doc/outputs/tuto4_site_set_create.txt
+++ b/milena/doc/outputs/tuto4_site_set_create.txt
@@ -1,6 +1,9 @@
-\{
+// \{
(0,0), (0,1), (0,2), (0,3), (1,0), (1,1), (1,2), (1,3), (2,0), (2,1), (2,2), (2,3),
(3,0), (3,1), (3,2), (3,3),
-\}
-\{
+// \}
+// \{
+(2,2), (1,2),
+// \}
+// \{
(-2,-2), (-2,-1), (-2,0), (-2,1), (-2,2), (-1,-2), (-1,-1), (-1,0), (-1,1), (-1,2),
(0,-2), (0,-1), (0,0), (0,1), (0,2), (1,-2), (1,-1), (1,0), (1,1), (1,2), (2,-2), (2,-1),
(2,0), (2,1), (2,2),
-\}
+// \}
--
1.5.6.5