* doc/tutorial/samples/graph-add-edges.tex
* doc/tutorial/samples/graph-add-vertex.tex
* doc/tutorial/samples/graph-data.tex
* doc/tutorial/samples/graph-i2v-vertex.tex
* doc/tutorial/samples/graph-iter-edge-nbh-edge.tex
* doc/tutorial/samples/graph-iter-vertex-nbh-vertex.tex
* doc/tutorial/samples/graph-iter-vertex.tex
* doc/tutorial/samples/graph-iter.tex
* doc/tutorial/samples/graph-p-vertices.tex
* doc/tutorial/samples/ima2d-2.tex
* doc/tutorial/samples/ima2d-7.tex
* doc/tutorial/samples/mln_var-3.tex:
New. Add sample code.
* doc/tutorial/tutorial.tex: rewrite graph section.
---
milena/ChangeLog | 20 +++
milena/doc/tutorial/samples/graph-add-edges.tex | 5 +
milena/doc/tutorial/samples/graph-add-vertex.tex | 4 +
milena/doc/tutorial/samples/graph-data.tex | 36 +++++
milena/doc/tutorial/samples/graph-i2v-vertex.tex | 7 +
.../tutorial/samples/graph-iter-edge-nbh-edge.tex | 15 ++
.../samples/graph-iter-vertex-nbh-vertex.tex | 15 ++
milena/doc/tutorial/samples/graph-iter-vertex.tex | 15 ++
milena/doc/tutorial/samples/graph-iter.tex | 11 ++
milena/doc/tutorial/samples/graph-p-vertices.tex | 1 +
milena/doc/tutorial/samples/ima2d-2.tex | 8 +-
milena/doc/tutorial/samples/ima2d-7.tex | 5 +
milena/doc/tutorial/samples/mln_var-3.tex | 3 +-
milena/doc/tutorial/tutorial.tex | 137 ++++----------------
14 files changed, 167 insertions(+), 115 deletions(-)
create mode 100644 milena/doc/tutorial/samples/graph-add-edges.tex
create mode 100644 milena/doc/tutorial/samples/graph-add-vertex.tex
create mode 100644 milena/doc/tutorial/samples/graph-data.tex
create mode 100644 milena/doc/tutorial/samples/graph-i2v-vertex.tex
create mode 100644 milena/doc/tutorial/samples/graph-iter-edge-nbh-edge.tex
create mode 100644 milena/doc/tutorial/samples/graph-iter-vertex-nbh-vertex.tex
create mode 100644 milena/doc/tutorial/samples/graph-iter-vertex.tex
create mode 100644 milena/doc/tutorial/samples/graph-iter.tex
create mode 100644 milena/doc/tutorial/samples/graph-p-vertices.tex
create mode 100644 milena/doc/tutorial/samples/ima2d-7.tex
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 0bdb17c..ef591fd 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,25 @@
2008-11-04 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Update graph section in tutorial.
+
+ * doc/tutorial/samples/graph-add-edges.tex
+ * doc/tutorial/samples/graph-add-vertex.tex
+ * doc/tutorial/samples/graph-data.tex
+ * doc/tutorial/samples/graph-i2v-vertex.tex
+ * doc/tutorial/samples/graph-iter-edge-nbh-edge.tex
+ * doc/tutorial/samples/graph-iter-vertex-nbh-vertex.tex
+ * doc/tutorial/samples/graph-iter-vertex.tex
+ * doc/tutorial/samples/graph-iter.tex
+ * doc/tutorial/samples/graph-p-vertices.tex
+ * doc/tutorial/samples/ima2d-2.tex
+ * doc/tutorial/samples/ima2d-7.tex
+ * doc/tutorial/samples/mln_var-3.tex:
+ New. Add sample code.
+
+ * doc/tutorial/tutorial.tex: rewrite graph section.
+
+2008-11-04 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Fix graph related files.
* mln/debug/graph.hh: update in order to support p_vertices.
diff --git a/milena/doc/tutorial/samples/graph-add-edges.tex b/milena/doc/tutorial/samples/graph-add-edges.tex
new file mode 100644
index 0000000..be04c8a
--- /dev/null
+++ b/milena/doc/tutorial/samples/graph-add-edges.tex
@@ -0,0 +1,5 @@
+g.add_edge(0, 1); // Associated to edge 0.
+g.add_edge(1, 2); // Associated to edge 1.
+g.add_edge(1, 3); // Associated to edge 2.
+g.add_edge(3, 4); // Associated to edge 3.
+g.add_edge(4, 2); // Associated to edge 4.
diff --git a/milena/doc/tutorial/samples/graph-add-vertex.tex b/milena/doc/tutorial/samples/graph-add-vertex.tex
new file mode 100644
index 0000000..48eca70
--- /dev/null
+++ b/milena/doc/tutorial/samples/graph-add-vertex.tex
@@ -0,0 +1,4 @@
+util::graph g;
+
+for (unsigned i = 0; i < 5; ++i)
+ g.add_vertex () // Add vertex 'i';
diff --git a/milena/doc/tutorial/samples/graph-data.tex b/milena/doc/tutorial/samples/graph-data.tex
new file mode 100644
index 0000000..b2a3f06
--- /dev/null
+++ b/milena/doc/tutorial/samples/graph-data.tex
@@ -0,0 +1,36 @@
+template <typename S>
+struct viota_t : public mln::Function_p2v< viota_t<S> >
+{
+ typedef unsigned result;
+
+ viota_t(unsigned size)
+ {
+ v_.resize(size);
+ for (unsigned i = 0; i < size; ++i)
+ v_[i] = 10 + i;
+ }
+
+ unsigned
+ operator()(const mln_psite(S)& p) const
+ {
+ return v_[p.v().id()];
+ }
+
+ protected:
+ std::vector<result> v_;
+};
+
+void my_fun()
+{
+ ...
+ // Constructs an image
+ mln_VAR(graph_vertices_ima, viota_t<pv_t>() | pv);
+
+ //Prints each vertex and its associated data.
+ mln_piter(graph_vertices_ima_t) p(graph_vertices_ima);
+ for_all(p)
+ std::Cout << "ima(" << p << ") = "
+ << ima(p) << std::endl;
+ ...
+}
+
diff --git a/milena/doc/tutorial/samples/graph-i2v-vertex.tex b/milena/doc/tutorial/samples/graph-i2v-vertex.tex
new file mode 100644
index 0000000..4de430f
--- /dev/null
+++ b/milena/doc/tutorial/samples/graph-i2v-vertex.tex
@@ -0,0 +1,7 @@
+typedef fun::i2v::array<point2d> F;
+F f(5); // We need to map 5 vertices.
+f(0) = point2d(0, 0);
+f(1) = point2d(2, 2);
+f(2) = point2d(0, 4);
+f(3) = point2d(4, 3);
+f(4) = point2d(4, 4);
diff --git a/milena/doc/tutorial/samples/graph-iter-edge-nbh-edge.tex b/milena/doc/tutorial/samples/graph-iter-edge-nbh-edge.tex
new file mode 100644
index 0000000..9d2e8f0
--- /dev/null
+++ b/milena/doc/tutorial/samples/graph-iter-edge-nbh-edge.tex
@@ -0,0 +1,15 @@
+// Iterator on edges.
+mln_edge_iter(util::graph) e(g);
+
+// Iterator on edges adjacent to e.
+mln_edge_nbh_edge_iter ne(g, e);
+
+// Prints the graph
+// List all adjacent edges for each edge.
+for_all(e)
+{
+ std::cout << e << " : ";
+ for_all(ne)
+ std::cout << ne << " ";
+ std::cout << std::endl;
+}
diff --git a/milena/doc/tutorial/samples/graph-iter-vertex-nbh-vertex.tex b/milena/doc/tutorial/samples/graph-iter-vertex-nbh-vertex.tex
new file mode 100644
index 0000000..75fcea7
--- /dev/null
+++ b/milena/doc/tutorial/samples/graph-iter-vertex-nbh-vertex.tex
@@ -0,0 +1,15 @@
+// Iterator on vertices.
+mln_vertex_iter(util::graph) v(g);
+
+// Iterator on vertices adjacent to v.
+mln_vertex_nbh_vertex_iter nv(g, v);
+
+// Prints the graph
+// List all adjacent edges for each edge.
+for_all(v)
+{
+ std::cout << v << " : ";
+ for_all(nv)
+ std::cout << nv << " ";
+ std::cout << std::endl;
+}
diff --git a/milena/doc/tutorial/samples/graph-iter-vertex.tex b/milena/doc/tutorial/samples/graph-iter-vertex.tex
new file mode 100644
index 0000000..aa0ee74
--- /dev/null
+++ b/milena/doc/tutorial/samples/graph-iter-vertex.tex
@@ -0,0 +1,15 @@
+// Iterator on vertices.
+mln_vertex_iter(util::graph) v(g);
+
+// Iterator on v's edges.
+mln_vertex_nbh_edge_iter(util::graph) e(g, v);
+
+// Prints the graph
+// List all edges for each vertex.
+for_all(v)
+{
+ std::cout << v << " : ";
+ for_all(e)
+ std::cout << e << " ";
+ std::cout << std::endl;
+}
diff --git a/milena/doc/tutorial/samples/graph-iter.tex b/milena/doc/tutorial/samples/graph-iter.tex
new file mode 100644
index 0000000..1c0f403
--- /dev/null
+++ b/milena/doc/tutorial/samples/graph-iter.tex
@@ -0,0 +1,11 @@
+// Function which maps sites to data.
+viota_t viota;
+
+// Iterator on vertices.
+mln_vertex_iter(util::graph) v(g);
+
+// Prints each vertex and its associated value.
+for_all(v)
+{
+ std::cout << v << " : " << viota(v) << std::endl;
+}
diff --git a/milena/doc/tutorial/samples/graph-p-vertices.tex b/milena/doc/tutorial/samples/graph-p-vertices.tex
new file mode 100644
index 0000000..3b6869e
--- /dev/null
+++ b/milena/doc/tutorial/samples/graph-p-vertices.tex
@@ -0,0 +1 @@
+p_vertices<util::graph, F> pv(g, f);
diff --git a/milena/doc/tutorial/samples/ima2d-2.tex b/milena/doc/tutorial/samples/ima2d-2.tex
index 41ead50..1caf397 100644
--- a/milena/doc/tutorial/samples/ima2d-2.tex
+++ b/milena/doc/tutorial/samples/ima2d-2.tex
@@ -1,4 +1,8 @@
-// which builds an empty image;
+// Build an empty image;
image2d<int> img1a;
-// which builds an image with 6 sites
+
+// Build an image with 2 rows
+// and 3 columns sites
image2d<int> img1b(box2d(2, 3));
+image2d<int> img1c(2, 3);
+
diff --git a/milena/doc/tutorial/samples/ima2d-7.tex b/milena/doc/tutorial/samples/ima2d-7.tex
new file mode 100644
index 0000000..ae7ef8f
--- /dev/null
+++ b/milena/doc/tutorial/samples/ima2d-7.tex
@@ -0,0 +1,5 @@
+image2d<int> img2a(2, 3);
+image2d<int> img2b;
+
+initialize(img2b, img2a);
+level::fill(img2b, img2a);
diff --git a/milena/doc/tutorial/samples/mln_var-3.tex b/milena/doc/tutorial/samples/mln_var-3.tex
index 240be1f..d62891a 100644
--- a/milena/doc/tutorial/samples/mln_var-3.tex
+++ b/milena/doc/tutorial/samples/mln_var-3.tex
@@ -2,7 +2,8 @@ box2d b2(0,0, 1, 1);
mln_VAR(imad, imab1 / b2);
+debug::prinln(imad);
// Print
// 1
// 1 1
-debug::prinln(imad);
+
diff --git a/milena/doc/tutorial/tutorial.tex b/milena/doc/tutorial/tutorial.tex
index 25e9862..4c0c052 100644
--- a/milena/doc/tutorial/tutorial.tex
+++ b/milena/doc/tutorial/tutorial.tex
@@ -795,6 +795,13 @@ processing, or another image. Trying to access the site value from an empty
image leads to an error at run-time.
Img1b is defined on a domain but does not have data yet.\\
+Sometimes, you may want to initialize an image from another one:
+\doxycode{ima2d-7}
+\var{img2b} is declared without specifying a domain. Its border size is set to
+the default one, e.g 0. By using \code{initialize} \var{img2b} is initialized
+ with the same domain and border/extension as \var{img2a}. The data is not
+ copied though. Other routines like \code{level::fill} can be called in order to
+ do so (See also \ref{fillop}).
%================================================
@@ -1601,144 +1608,50 @@ First, create a graph which looks like the following:
First we need to add vertices:
-\begin{lstlisting}
-util::graph g;
-
-for (unsigned i = 0; i < 5; ++i)
- g.add_vertex () // Associated to vertex 'i';
-\end{lstlisting}
+\doxycode{graph-add-vertex}
Finally, populate the graph with edges:
-\begin{lstlisting}
-g.add_edge(0, 1); // Associated to edge 0.
-g.add_edge(1, 2); // Associated to edge 1.
-g.add_edge(1, 3); // Associated to edge 2.
-g.add_edge(3, 4); // Associated to edge 3.
-g.add_edge(4, 2); // Associated to edge 4.
-\end{lstlisting}
+\doxycode{graph-add-edges}
Now there is a graph topology and we want to associate elements of this graph
to a site in the image.
The idea is to use specific site sets such as \type{p\_vertices} and
\type{p\_edges}.
-Let's associate the vertices with sites. To do so we need to create a functor
-which for a given vertex returns a site.
-
-\begin{lstlisting}[frame=single]
-struct assoc_fun : public Function_v2v< assoc_fun >
-{
- typedef const point2d& result;
-
- inline
- const point2d& operator()(const vertex<graph::util>& v) const
- {
- ...
- }
-
-};
-\end{lstlisting}
+Let's associate the vertices with sites. To do so we need a function which maps
+a vertex id to a site, e.g. a \type{point2d} here.
+\doxycode{graph-i2v-vertex}
Then declare a \type{p\_vertices}:
-\begin{lstlisting}[frame=single]
-p_vertices<util::graph, assoc_fun> pv(g, assoc_fun());
-\end{lstlisting}
+\doxycode{graph-p-vertices}
Thanks to the \type{p\_vertices} there is now a mapping between vertices and sites.
-We may like to map data to it. The idea is to provide a function which returns the associated data
-according to the site given as parameter. Combining this function and the
-\type{p\_vertices}, we get an image. Since this is an image, you can use it with
+We may like to map data to it. The idea is to provide a function which returns
+the associated data according to the site given as parameter. Combining this
+function and the \type{p\_vertices}, we get an image which can be used with
algorithms and \code{for\_all} loops.
-\begin{lstlisting}[frame=single]
-
-template <typename I>
-mln_rvalue(I) my_data_fun(mln_site(I) site)
-{
- ...
-}
-
-void my_fun()
-{
- ...
- // Constructs an image
- mln_VAR(graph_vertices_ima, my_data_fun | pv);
-
- //Prints each vertex
- mln_piter p(graph_vertices_ima);
- for_all(p)
- std::Cout << p << std::endl;
- ...
-}
-\end{lstlisting}
+\doxycode{graph-data}
Note that like any image in Olena, graph images share their data. Therefore,
while constructing a graph image from a graph and a function, the graph is not
copied and this is NOT a costly operation.
-Like other images, graph images also have an overloaded \code{operator()} to access the
-data associated to a vertex or an edge.
-\begin{lstlisting}
- //Prints each edge's associated value.
- mln_piter p(graph_edge_ima);
- for_all(p)
- std::cout << graph_edge_ima(p) << std::endl;
-
- //Prints each vertex's associated value.
- mln_piter p(graph_vertex_ima);
- for_all(p)
- std::cout << graph_vertex_ima(p) << std::endl;
-\end{lstlisting}
-
Of course, creating a graph image is not necessary and you can work directly
with the graph and container/function mapping indexes and data.
-\begin{lstlisting}
-// Iterator on vertices.
-mln_Viter V(g);
-
-// Prints each vertex and its associated value.
-for_all(V)
-{
- std::cout << V << " : " << my_data_fun(V) << std::endl;
-}
-\end{lstlisting}
+\doxycode{graph-iter}
-Graphes have iterators like any other site sets and also provide
+Graphs have iterators like any other site sets and also provide
specific iterators in order to iterate over graphes in a more intuitive way.
-\begin{lstlisting}
-// Iterator on vertices.
-mln_Viter V(g);
+Iteration over the adjacent edges of all the vertices:
+\doxycode{graph-iter-vertex}
-// Iterator on V's edges.
-mln_Eiter n(g, V);
+Iteration over the adjacent edges of all the edges:
+\doxycode{graph-iter-edge-nbh-edge}
-// Prints the graph
-// List all edges for each vertex.
-for_all(V)
-{
- std::cout << V << " : ";
- for_all(n)
- std::cout << n << " ";
- std::cout << std::endl;
-}
-
-// Iterator on edges.
-mln_Eiter E(g);
-
-// Iterator on vertices adjacent to E.
-mln_Viter n(g, E);
-
-// Prints the graph
-// List all adjacent vertices for each edge.
-for_all(E)
-{
- std::cout << E << " : ";
- for_all(n)
- std::cout << n << " ";
- std::cout << std::endl;
-}
-\end{lstlisting}
+Iteration over the adjacent vertices of all the vertices:
+\doxycode{graph-iter-vertex-nbh-vertex}
//FIXME talk about p\_vertices and p\_edges.
--
1.5.6.5
* mln/core/image/all.hh,
* mln/debug/all.hh,
* mln/io/all.hh,
* mln/io/fits/all.hh,
* mln/make/all.hh,
* mln/util/all.hh: comment headers causing compilation errors.
* tests/all_headers.cc: fix copyright.
* tests/essential_headers.cc,
* tests/Makefile.am: add essential_headers test.
---
milena/ChangeLog | 16 +++++++++++
milena/mln/core/image/all.hh | 28 ++++++++++----------
milena/mln/debug/all.hh | 2 +-
milena/mln/io/all.hh | 4 +-
milena/mln/io/fits/all.hh | 2 +-
milena/mln/make/all.hh | 3 +-
milena/mln/util/all.hh | 4 +-
milena/tests/Makefile.am | 4 ++-
milena/tests/all_headers.cc | 2 +-
.../io/fits/all.hh => tests/essential_headers.cc} | 24 +++++------------
10 files changed, 48 insertions(+), 41 deletions(-)
copy milena/{mln/io/fits/all.hh => tests/essential_headers.cc} (77%)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index f69b232..7d6da48 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,21 @@
2008-11-04 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Make all_headers and essential_headers compile.
+
+ * mln/core/image/all.hh,
+ * mln/debug/all.hh,
+ * mln/io/all.hh,
+ * mln/io/fits/all.hh,
+ * mln/make/all.hh,
+ * mln/util/all.hh: comment headers causing compilation errors.
+
+ * tests/all_headers.cc: fix copyright.
+
+ * tests/essential_headers.cc,
+ * tests/Makefile.am: add essential_headers test.
+
+2008-11-04 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Various small fixes.
* milena/mln/accu/line.hh: avoid compilation warnings.
diff --git a/milena/mln/core/image/all.hh b/milena/mln/core/image/all.hh
index 2f2d819..ded49a3 100644
--- a/milena/mln/core/image/all.hh
+++ b/milena/mln/core/image/all.hh
@@ -48,7 +48,7 @@
# include <mln/core/image/flat_image.hh>
# include <mln/core/image/image_if.hh>
# include <mln/core/image/sub_image.hh>
-# include <mln/core/image/fi_adaptor.hh>
+//# include <mln/core/image/fi_adaptor.hh>
# include <mln/core/image/image1d.hh>
# include <mln/core/image/decorated_image.hh>
# include <mln/core/image/extended.hh>
@@ -61,11 +61,11 @@
//# include <mln/core/image/graph_image.hh>
# include <mln/core/image/graph_neighborhood_piter.hh>
# include <mln/core/image/graph_window_piter.hh>
-# include <mln/core/image/hexa.hh>
-# include <mln/core/image/hexa_piter.hh>
+//# include <mln/core/image/hexa.hh>
+//# include <mln/core/image/hexa_piter.hh>
# include <mln/core/image/image1d.hh>
# include <mln/core/image/image2d.hh>
-# include <mln/core/image/image2d_h.hh>
+//# include <mln/core/image/image2d_h.hh>
# include <mln/core/image/image3d.hh>
# include <mln/core/image/image_if.hh>
# include <mln/core/image/interpolated.hh>
@@ -76,15 +76,15 @@
//# include <mln/core/image/line_graph_neighborhood_piter.hh>
//# include <mln/core/image/line_graph_psite.hh>
//# include <mln/core/image/line_graph_window_piter.hh>
-# include <mln/core/image/mono_obased_rle_encode.hh>
-# include <mln/core/image/mono_obased_rle_image.hh>
-# include <mln/core/image/mono_rle_encode.hh>
-# include <mln/core/image/mono_rle_image.hh>
-# include <mln/core/image/obased_rle_encode.hh>
-# include <mln/core/image/obased_rle_image.hh>
+//# include <mln/core/image/mono_obased_rle_encode.hh>
+//# include <mln/core/image/mono_obased_rle_image.hh>
+//# include <mln/core/image/mono_rle_encode.hh>
+//# include <mln/core/image/mono_rle_image.hh>
+//# include <mln/core/image/obased_rle_encode.hh>
+//# include <mln/core/image/obased_rle_image.hh>
# include <mln/core/image/plain.hh>
-# include <mln/core/image/rle_encode.hh>
-# include <mln/core/image/rle_image.hh>
+//# include <mln/core/image/rle_encode.hh>
+//# include <mln/core/image/rle_image.hh>
# include <mln/core/image/safe.hh>
# include <mln/core/image/sparse_encode.hh>
# include <mln/core/image/sparse_image.hh>
@@ -94,8 +94,8 @@
# include <mln/core/image/translate_image.hh>
# include <mln/core/image/tr_image.hh>
# include <mln/core/image/tr_mesh.hh>
-# include <mln/core/image/value_enc_image.hh>
-# include <mln/core/image/value_encode.hh>
+//# include <mln/core/image/value_enc_image.hh>
+//# include <mln/core/image/value_encode.hh>
#endif // ! MLN_CORE_IMAGE_ALL_HH
diff --git a/milena/mln/debug/all.hh b/milena/mln/debug/all.hh
index e2db2f4..a17fb37 100644
--- a/milena/mln/debug/all.hh
+++ b/milena/mln/debug/all.hh
@@ -48,7 +48,7 @@ namespace mln
# include <mln/debug/colorize.hh>
# include <mln/debug/format.hh>
-# include <mln/debug/graph.hh>
+//# include <mln/debug/graph.hh>
# include <mln/debug/iota.hh>
# include <mln/debug/println.hh>
# include <mln/debug/println_with_border.hh>
diff --git a/milena/mln/io/all.hh b/milena/mln/io/all.hh
index 51ddbb2..bb6f7d3 100644
--- a/milena/mln/io/all.hh
+++ b/milena/mln/io/all.hh
@@ -46,8 +46,8 @@ namespace mln
}
-# include <mln/io/fits/all.hh>
-# include <mln/io/off/all.hh>
+//# include <mln/io/fits/all.hh>
+//# include <mln/io/off/all.hh>
# include <mln/io/pbm/all.hh>
# include <mln/io/pfm/all.hh>
# include <mln/io/pgm/all.hh>
diff --git a/milena/mln/io/fits/all.hh b/milena/mln/io/fits/all.hh
index 44821f3..42c3739 100644
--- a/milena/mln/io/fits/all.hh
+++ b/milena/mln/io/fits/all.hh
@@ -45,6 +45,6 @@ namespace mln
}
-# include <mln/io/fits/load.hh>
+//# include <mln/io/fits/load.hh>
#endif // ! MLN_IO_FITS_ALL_HH
diff --git a/milena/mln/make/all.hh b/milena/mln/make/all.hh
index a36d8c3..5d11136 100644
--- a/milena/mln/make/all.hh
+++ b/milena/mln/make/all.hh
@@ -55,7 +55,7 @@ namespace mln
# include <mln/make/pixel.hh>
# include <mln/make/point2d_h.hh>
# include <mln/make/vec.hh>
-# include <mln/make/voronoi.hh>
+//# include <mln/make/voronoi.hh>
# include <mln/make/w_window.hh>
# include <mln/make/w_window1d.hh>
# include <mln/make/w_window1d_int.hh>
@@ -66,5 +66,4 @@ namespace mln
# include <mln/make/w_window_directional.hh>
# include <mln/make/win_chamfer.hh>
-
#endif // ! MLN_MAKE_ALL_HH
diff --git a/milena/mln/util/all.hh b/milena/mln/util/all.hh
index 7e6b5ef..169284f 100644
--- a/milena/mln/util/all.hh
+++ b/milena/mln/util/all.hh
@@ -66,13 +66,13 @@ namespace mln
# include <mln/util/pix.hh>
# include <mln/util/set.hh>
# include <mln/util/site_pair.hh>
-# include <mln/util/timer.hh>
+//# include <mln/util/timer.hh>
# include <mln/util/tracked_ptr.hh>
# include <mln/util/tree.hh>
# include <mln/util/tree_fast.hh>
# include <mln/util/tree_fast_to_image.hh>
# include <mln/util/tree_to_fast.hh>
-# include <mln/util/tree_to_image.hh>
+//# include <mln/util/tree_to_image.hh>
# include <mln/util/yes.hh>
#endif // ! MLN_UTIL_ALL_HH
diff --git a/milena/tests/Makefile.am b/milena/tests/Makefile.am
index 665344e..bec1d60 100644
--- a/milena/tests/Makefile.am
+++ b/milena/tests/Makefile.am
@@ -44,8 +44,10 @@ SUBDIRS = \
win
check_PROGRAMS = \
- all_headers
+ all_headers \
+ essential_headers
all_headers_SOURCES = all_headers.cc
+essential_headers_SOURCES = essential_headers.cc
TESTS = $(check_PROGRAMS)
diff --git a/milena/tests/all_headers.cc b/milena/tests/all_headers.cc
index 611f282..b84a0b8 100644
--- a/milena/tests/all_headers.cc
+++ b/milena/tests/all_headers.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2007 EPITA Research and Development Laboratory
+// Copyright (C) 2007, 2008 EPITA Research and Development Laboratory
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
diff --git a/milena/mln/io/fits/all.hh b/milena/tests/essential_headers.cc
similarity index 77%
copy from milena/mln/io/fits/all.hh
copy to milena/tests/essential_headers.cc
index 44821f3..fab5533 100644
--- a/milena/mln/io/fits/all.hh
+++ b/milena/tests/essential_headers.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2007 EPITA Research and Development Laboratory
+// Copyright (C) 2008 EPITA Research and Development Laboratory
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -25,26 +25,16 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-#ifndef MLN_IO_FITS_ALL_HH
-# define MLN_IO_FITS_ALL_HH
-
-/*! \file mln/io/fits/all.hh
+/*! \file tests/essential_headers.cc
*
- * \brief File that includes all fits io materials.
+ * \brief Tests with essential headers. (check norris tests 2)
*/
+#include <mln/essential/1d.hh>
+#include <mln/essential/2d.hh>
+#include <mln/essential/3d.hh>
-namespace mln
+int main ()
{
- namespace io
- {
- /// Namespace of fits input/output handling.
- namespace fits {}
- }
-
}
-
-# include <mln/io/fits/load.hh>
-
-#endif // ! MLN_IO_FITS_ALL_HH
--
1.5.6.5