Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgUtil.cpp

Go to the documentation of this file.
00001 //----------------------------------------------------------------------------
00002 /** @file SgUtil.cpp
00003     See SgUtil.h
00004  */
00005 //----------------------------------------------------------------------------
00006 #include "SgSystem.h"
00007 
00008 #include <iostream>
00009 #include "SgBlackWhite.h"
00010 #include "SgUtil.h"
00011 //----------------------------------------------------------------------------
00012 
00013 std::ostream& operator<<(std::ostream& stream, const SgBalancer& balancer)
00014 {
00015     stream 
00016             << balancer.NuCalls() << " calls, "
00017             << balancer.Balance() << " balance, "
00018             << balancer.Margin() << " margin, "
00019             << balancer.NuPlayed(SG_BLACK) << " played(B), "
00020             << balancer.NuPlayed(SG_WHITE) << " played(W), "
00021             << balancer.NuRejected(SG_BLACK) << " rejected(B), "
00022             << balancer.NuRejected(SG_WHITE) << " rejected(W).\n";
00023     return stream;
00024 }
00025 
00026 //----------------------------------------------------------------------------
00027 


17 Jun 2010 Doxygen 1.4.7