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 #include "SgSystem.h"
00006 
00007 #include <iostream>
00008 #include "SgBlackWhite.h"
00009 #include "SgUtil.h"
00010 //----------------------------------------------------------------------------
00011 
00012 std::ostream& operator<<(std::ostream& stream, const SgBalancer& balancer)
00013 {
00014     stream 
00015             << balancer.NuCalls() << " calls, "
00016             << balancer.Balance() << " balance, "
00017             << balancer.Margin() << " margin, "
00018             << balancer.NuPlayed(SG_BLACK) << " played(B), "
00019             << balancer.NuPlayed(SG_WHITE) << " played(W), "
00020             << balancer.NuRejected(SG_BLACK) << " rejected(B), "
00021             << balancer.NuRejected(SG_WHITE) << " rejected(W).\n";
00022     return stream;
00023 }
00024 
00025 //----------------------------------------------------------------------------
00026 


Sun Mar 13 2011 Doxygen 1.7.1