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

GoUctKnowledge Class Reference

Base knowledge class. More...

#include <GoUctDefaultPriorKnowledge.h>

Inheritance diagram for GoUctKnowledge:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 GoUctKnowledge (const GoBoard &bd)
virtual ~GoUctKnowledge ()
virtual void ProcessPosition (std::vector< SgUctMoveInfo > &moves)=0

Protected Member Functions

void Add (SgPoint p, SgUctValue value, SgUctValue count)
void Initialize (SgPoint p, SgUctValue value, SgUctValue count)
void ClearValues ()
void TransferValues (std::vector< SgUctMoveInfo > &outmoves) const

Protected Attributes

const GoBoardm_bd
SgArray< SgStatisticsBase
< SgUctValue, SgUctValue >
, SG_PASS+1 > 
m_values

Detailed Description

Base knowledge class.

Definition at line 14 of file GoUctDefaultPriorKnowledge.h.


Constructor & Destructor Documentation

GoUctKnowledge::GoUctKnowledge ( const GoBoard bd  ) 

Definition at line 40 of file GoUctDefaultPriorKnowledge.cpp.

GoUctKnowledge::~GoUctKnowledge (  )  [virtual]

Definition at line 45 of file GoUctDefaultPriorKnowledge.cpp.


Member Function Documentation

void GoUctKnowledge::Add ( SgPoint  p,
SgUctValue  value,
SgUctValue  count 
) [protected]

Definition at line 49 of file GoUctDefaultPriorKnowledge.cpp.

References m_values.

Referenced by GoUctDefaultPriorKnowledge::AddLocalityBonus().

void GoUctKnowledge::ClearValues (  )  [protected]

Definition at line 59 of file GoUctDefaultPriorKnowledge.cpp.

References m_values, and SG_PASS.

void GoUctKnowledge::Initialize ( SgPoint  p,
SgUctValue  value,
SgUctValue  count 
) [protected]

Definition at line 54 of file GoUctDefaultPriorKnowledge.cpp.

References m_values.

Referenced by GoUctDefaultPriorKnowledge::ProcessPosition().

virtual void GoUctKnowledge::ProcessPosition ( std::vector< SgUctMoveInfo > &  moves  )  [pure virtual]

Implemented in GoUctDefaultPriorKnowledge.

void GoUctKnowledge::TransferValues ( std::vector< SgUctMoveInfo > &  outmoves  )  const [protected]

Member Data Documentation

const GoBoard& GoUctKnowledge::m_bd [protected]

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


Sun Mar 13 2011 Doxygen 1.7.1