#include "CRand.hxx"
#include "Bean.hxx"
#include <iostream>



// Implementation des operateurs d'affichage
// Chacun utilisant le precedent dans un iterateur de sortie !

ostream &operator<<(ostream &a,const PaireBean &b)
{
  a << "Ville : " << b.first << " Clef : " << b.second;
  return a;
}

ostream &operator<<(ostream &a,const ChromoBean &b)
{
  copy(b.begin(),b.end(),ostream_iterator<PaireBean>(a," "));
  return a;
}

ostream &operator<<(ostream &a,const TGenome &b)
{
  copy(b.begin(),b.end(),ostream_iterator<ChromoBean>(a,"\n"));
  return a;
}

CRand Bean::Generateur;

void Bean::ResetGenerateur(int nouvelleRacine)
{
  Generateur.reset(nouvelleRacine);  
}

