Commit 6143a5ec authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Small fixes related to object_groups.

	* core/object_groups.hh: Add more preconditions.

	* filter/object_groups_small.hh: Call duplicate().
parent 2c6947d7
2010-04-13 Guillaume Lazzara <z@lrde.epita.fr>
Small fixes related to object_groups.
* core/object_groups.hh: Add more preconditions.
* filter/object_groups_small.hh: Call duplicate().
2010-04-13 Guillaume Lazzara <z@lrde.epita.fr>
Add init() member to object_links structure.
......
......@@ -165,6 +165,7 @@ namespace scribo
const object_links<L>&
object_groups<L>::links() const
{
mln_assertion(data_ != 0);
return data_->links_;
}
......@@ -172,6 +173,7 @@ namespace scribo
void
object_groups<L>::init_(const object_links<L>& links)
{
mln_assertion(data_ != 0);
data_->comp_to_group_ = links.comp_to_link();
}
......
// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
// (LRDE)
//
// This file is part of Olena.
//
......@@ -77,7 +78,7 @@ namespace scribo
for_all_groups(i, group_size)
++group_size[groups(i)];
object_groups<L> output(groups);
object_groups<L> output = groups.duplicate();
output(0) = 0;
for_all_groups(i, output)
if (group_size[groups(i)] < n_links
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment