26 #ifndef MLN_UTIL_TREE_TO_FAST_HH
27 # define MLN_UTIL_TREE_TO_FAST_HH
36 # include <mln/util/tree.hh>
37 # include <mln/util/tree_fast.hh>
38 # include <mln/trace/all.hh>
60 # ifndef MLN_INCLUDE_ONLY
70 unsigned p,
unsigned& i)
75 for (; it != child.end (); ++it)
77 tree.add_child(p, (*it)->elt ());
79 impl::tree_to_fast_((*it), tree, i, i);
92 trace::entering(
"util::tree_to_fast");
95 tree_fast<T> tree (input.
root ()->elt ());
97 impl::tree_to_fast_(input.
root (), tree, 0, i);
99 trace::exiting(
"util::tree_to_fast");
103 # endif // ! MLN_INCLUDE_ONLY
110 #endif // ! MLN_UTIL_TREE_TO_FAST_HH