Commit 5f63c833 authored by Mathieu Giraud's avatar Mathieu Giraud

core/germline.{h,cpp}: << for MultiGermline

parent 2fb9b52c
......@@ -248,3 +248,15 @@ void MultiGermline::out_stats(ostream &out)
out << germline->stats ;
}
}
ostream &operator<<(ostream &out, const MultiGermline &multigermline)
{
for (list<Germline*>::const_iterator it = multigermline.germlines.begin(); it != multigermline.germlines.end(); ++it)
{
Germline *germline = *it ;
out << " " << *germline ;
}
return out;
}
......@@ -95,6 +95,6 @@ class MultiGermline {
void out_stats(ostream &out);
};
ostream &operator<<(ostream &out, const MultiGermline &multigermline);
#endif
Markdown is supported
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