Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgSearch.cpp File Reference


Detailed Description

See SgSearch.h.

Definition in file SgSearch.cpp.

#include "SgSystem.h"
#include "SgSearch.h"
#include <algorithm>
#include <iomanip>
#include <limits>
#include <sstream>
#include <math.h>
#include "SgDebug.h"
#include "SgHashTable.h"
#include "SgMath.h"
#include "SgNode.h"
#include "SgProbCut.h"
#include "SgSearchControl.h"
#include "SgSearchValue.h"
#include "SgTime.h"
#include "SgVector.h"
#include "SgWrite.h"

Go to the source code of this file.

Functions

void ReverseCopyStack (const SgSearchStack &moveStack, SgVector< SgMove > &sequence)
 copy stack onto sequence, starting with Top()
void WriteSgSearchHashData (std::ostream &str, const SgSearch &search, const SgSearchHashData &data)
void WriteMoves (const SgSearch &search, const SgVector< SgMove > &sequence)
void PrintPV (const SgSearch &search, int depth, int value, const SgVector< SgMove > &sequence, bool isExactValue)

Variables

const bool DEBUG_SEARCH = false
const bool DEBUG_SEARCH_ITERATIONS = false


Function Documentation

void @7::PrintPV ( const SgSearch search,
int  depth,
int  value,
const SgVector< SgMove > &  sequence,
bool  isExactValue 
) [static]

Definition at line 110 of file SgSearch.cpp.

References SgDebug(), and WriteMoves().

Referenced by SgSearch::IteratedSearch().

void @7::ReverseCopyStack ( const SgSearchStack moveStack,
SgVector< SgMove > &  sequence 
) [static]

copy stack onto sequence, starting with Top()

Definition at line 87 of file SgSearch.cpp.

References SgVector< T >::Clear(), SgVector< T >::PushBack(), and SgStack< T, SIZE >::Size().

Referenced by SgSearch::DFS().

void @7::WriteMoves ( const SgSearch search,
const SgVector< SgMove > &  sequence 
) [static]

Definition at line 104 of file SgSearch.cpp.

References SgSearch::MoveString(), and SgDebug().

Referenced by SgSearch::CallGenerate(), and PrintPV().

void @7::WriteSgSearchHashData ( std::ostream &  str,
const SgSearch search,
const SgSearchHashData data 
) [static]

Definition at line 94 of file SgSearch.cpp.

References SgSearchHashData::BestMove(), SgSearchHashData::IsExactValue(), SgSearch::MoveString(), and SgSearchHashData::Value().

Referenced by SgSearch::LookupHash(), and SgSearch::StoreHash().


Variable Documentation

const bool DEBUG_SEARCH = false [static]

Definition at line 31 of file SgSearch.cpp.

Referenced by SgSearch::AddSequenceToHash(), SgSearch::CallEvaluate(), SgSearch::CallExecute(), SgSearch::CallGenerate(), SgSearch::CallTakeBack(), SgSearch::LookupHash(), SgSearch::StartOfDepth(), and SgSearch::StoreHash().

const bool DEBUG_SEARCH_ITERATIONS = false [static]

Definition at line 32 of file SgSearch.cpp.

Referenced by SgSearch::IteratedSearch().


17 Jun 2010 Doxygen 1.4.7