Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgUtil.h File Reference

Detailed Description

Small utility functions.

Definition in file SgUtil.h.

#include <iostream>
#include "SgBlackWhite.h"
#include "SgBWArray.h"

Go to the source code of this file.


namespace  SgUtil


class  SgBalancer
 Utility class to assure balance between black and white plays. More...


template<class T>
void SgUtil::ForceInRange (const T &min, T *p, const T &max)
template<class T>
bool SgUtil::InRange (const T &i, const T &from, const T &to)
template<class T>
void SgUtil::LowerLimit (T &x, const T &limit)
template<class T>
void SgUtil::UpperLimit (T &x, const T &limit)
std::ostream & operator<< (std::ostream &stream, const SgBalancer &balancer)

Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const SgBalancer balancer 

Definition at line 13 of file SgUtil.cpp.

References SgBalancer::Balance(), SgBalancer::Margin(), SgBalancer::NuCalls(), SgBalancer::NuPlayed(), SgBalancer::NuRejected(), SG_BLACK, and SG_WHITE.

17 Jun 2010 Doxygen 1.4.7