// genDElement - An abstract data element library
// Copyright (C) 2013-2026 Eric Bechet, Frederic Duboeuf
//
// See the LICENSE file for license information.
// Please report all bugs and problems to <bechet@cadxfem.org> or <duboeuf@outlook.com>.
//
// Initial design: Frederic Duboeuf (rev.1511)


#include "genDataGroup.h"
#include "genData.h"

std::ostream & operator<<(std::ostream &os, const genDataGroup &dg)
{
  std::streamsize width = os.width();
  os.width(width); os <<"";
  os << "number of datas : " << dg.size() << std::endl;
  typename genDataGroup::DataGroupContainer::const_iterator it;
  for (it=dg.begin() ; it!=dg.end(); ++it)
  {
    os.width(width+2); os <<"";
    os << it->first << " :\n";
    os.width(width+4);
    os << *(it->second);
  }
  return os;
}