Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgBlackWhite.h File Reference


Detailed Description

Color of player in two-player games (black/white).

Definition in file SgBlackWhite.h.

#include <boost/static_assert.hpp>

Go to the source code of this file.

Classes

class  SgBWIterator
 Iterator over both colors, Black and White. More...

Defines

#define SG_ASSERT_BW(c)   SG_ASSERT(SgIsBlackWhite(c))

Typedefs

typedef int SgBlackWhite
 SG_BLACK or SG_WHITE.

Functions

 BOOST_STATIC_ASSERT (SG_BLACK+1==SG_WHITE)
bool SgIsBlackWhite (int c)
SgBlackWhite SgOppBW (SgBlackWhite c)
char SgBW (SgBlackWhite color)

Variables

const int SG_BLACK = 0
 Black stone, black player.
const int SG_WHITE = 1
 White stone, white player.


Define Documentation

#define SG_ASSERT_BW (  )     SG_ASSERT(SgIsBlackWhite(c))

Definition at line 31 of file SgBlackWhite.h.

Referenced by SgNode::AddMoveProp(), SgProp::IsPlayer(), SgBWIterator::operator++(), SgBWArray< T >::operator[](), SgBW(), SgOppBW(), SgSearchValue::SgSearchValue(), SgTimeRecord::TimeLeft(), and SgSearchValue::ValueForPlayer().


Typedef Documentation

typedef int SgBlackWhite

SG_BLACK or SG_WHITE.

Definition at line 24 of file SgBlackWhite.h.


Function Documentation

BOOST_STATIC_ASSERT ( SG_BLACK 1 = =SG_WHITE  ) 

char SgBW ( SgBlackWhite  color  ) 

Definition at line 39 of file SgBlackWhite.h.

References SG_ASSERT_BW, and SG_BLACK.

Referenced by SgSearch::CallExecute(), operator<<(), and SgStrategy::Write().

bool SgIsBlackWhite ( int  c  ) 

Definition at line 26 of file SgBlackWhite.h.

References SG_BLACK, and SG_WHITE.

Referenced by SgBalancer::Play().

SgBlackWhite SgOppBW ( SgBlackWhite  c  ) 

Definition at line 33 of file SgBlackWhite.h.

References SG_ASSERT_BW, SG_BLACK, and SG_WHITE.

Referenced by SgPropPlayer::ChangeToOpponent(), SgMiaiMap::ExecuteMove(), SgBWIterator::Opp(), and SgOpp().


Variable Documentation

const int SG_BLACK = 0

Black stone, black player.

Definition at line 15 of file SgBlackWhite.h.

Referenced by SgNode::AddMoveProp(), SgBWSet::Both(), SgBWSet::BothContain(), SgBWSet::BothEmpty(), SgBWSet::Clear(), SgBWSet::Disjoint(), SgPropPlayer::FromString(), SgTimeRecord::GetOTMovesFromTree(), SgTimeRecord::GetTimeFromTree(), SgNode::NodePlayer(), SgBWSet::OneContains(), operator<<(), SgBWSet::operator==(), SgBWArray< T >::operator==(), SgBWSet::operator|=(), SgBalancer::Play(), SgProp::Player(), SgTimeRecord::SetTimeInTree(), SgBW(), SgBWArray< T >::SgBWArray(), SgEBW(), SgEBWArray< T >::SgEBWArray(), SgIsBlackWhite(), SgIsEmptyBlackWhite(), and SgOppBW().

const int SG_WHITE = 1

White stone, white player.

Definition at line 18 of file SgBlackWhite.h.

Referenced by SgBWSet::Both(), SgBWSet::BothContain(), SgBWSet::BothEmpty(), SgBWSet::Clear(), SgBWSet::Disjoint(), SgPropPlayer::FromString(), SgTimeRecord::GetOTMovesFromTree(), SgTimeRecord::GetTimeFromTree(), SgNode::NodePlayer(), SgBWSet::OneContains(), SgBWIterator::operator bool(), operator<<(), SgBWSet::operator==(), SgBWArray< T >::operator==(), SgBWSet::operator|=(), SgBalancer::Play(), SgProp::Player(), SgProp::PlayerProp(), SgTimeRecord::SetTimeInTree(), SgSearchValue::SetValueForPlayer(), SgBWArray< T >::SgBWArray(), SgEBWArray< T >::SgEBWArray(), SgIsBlackWhite(), SgIsEmptyBlackWhite(), SgOpp(), SgOppBW(), SgPropPlayer::ToString(), SgSearchTracer::TraceValue(), and SgSearchValue::ValueForPlayer().


17 Jun 2010 Doxygen 1.4.7