Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Classes | Public Member Functions | Static Public Attributes | Private Attributes

SgProbCut Class Reference

#include <SgProbCut.h>

List of all members.

Classes

struct  Cutoff

Public Member Functions

 SgProbCut ()
void AddCutoff (const Cutoff &c)
bool GetCutoff (int deep, int index, Cutoff &cutoff)
float GetThreshold () const
bool IsEnabled () const
bool ProbCut (SgSearch &search, int depth, int alpha, int beta, SgSearchStack &moveStack, bool *isExactValue, int *value)
void SetEnabled (bool flag)
void SetThreshold (float t)

Static Public Attributes

static const int MAX_PROBCUT = 20

Private Attributes

float m_threshold
bool m_enabled
SgArray< SgArray< Cutoff,
MAX_PROBCUT+1 >, MAX_PROBCUT+1 > 
m_cutoffs
SgArray< int, MAX_PROBCUT+1 > m_cutoff_sizes

Detailed Description

Definition at line 22 of file SgProbCut.h.


Constructor & Destructor Documentation

SgProbCut::SgProbCut (  ) 

Definition at line 60 of file SgProbCut.h.

References m_cutoff_sizes, m_enabled, m_threshold, and MAX_PROBCUT.


Member Function Documentation

void SgProbCut::AddCutoff ( const Cutoff c  ) 

Definition at line 67 of file SgProbCut.h.

References SgProbCut::Cutoff::deep, m_cutoff_sizes, and m_cutoffs.

bool SgProbCut::GetCutoff ( int  deep,
int  index,
Cutoff cutoff 
)

Definition at line 74 of file SgProbCut.h.

References m_cutoff_sizes, m_cutoffs, and MAX_PROBCUT.

Referenced by ProbCut().

float SgProbCut::GetThreshold (  )  const

Definition at line 87 of file SgProbCut.h.

References m_threshold.

Referenced by ProbCut().

bool SgProbCut::IsEnabled (  )  const

Definition at line 97 of file SgProbCut.h.

References m_enabled.

Referenced by ProbCut(), and SgSearch::SearchEngine().

bool SgProbCut::ProbCut ( SgSearch search,
int  depth,
int  alpha,
int  beta,
SgSearchStack moveStack,
bool *  isExactValue,
int *  value 
)
void SgProbCut::SetEnabled ( bool  flag  ) 

Definition at line 92 of file SgProbCut.h.

References m_enabled.

Referenced by ProbCut().

void SgProbCut::SetThreshold ( float  t  ) 

Definition at line 82 of file SgProbCut.h.

References m_threshold.


Member Data Documentation

Definition at line 57 of file SgProbCut.h.

Referenced by AddCutoff(), GetCutoff(), and SgProbCut().

Definition at line 56 of file SgProbCut.h.

Referenced by AddCutoff(), and GetCutoff().

bool SgProbCut::m_enabled [private]

Definition at line 54 of file SgProbCut.h.

Referenced by IsEnabled(), SetEnabled(), and SgProbCut().

float SgProbCut::m_threshold [private]

Definition at line 53 of file SgProbCut.h.

Referenced by GetThreshold(), SetThreshold(), and SgProbCut().

const int SgProbCut::MAX_PROBCUT = 20 [static]

Definition at line 25 of file SgProbCut.h.

Referenced by GetCutoff(), and SgProbCut().


The documentation for this class was generated from the following files:


Sun Mar 13 2011 Doxygen 1.7.1