Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoSortedMoves Class Reference

#include <GoSortedMoves.h>

Inheritance diagram for GoSortedMoves:

Inheritance graph
[legend]
List of all members.

Detailed Description

Specialization of SgSortedMoves for Go: move = SgMove, value = int.

Todo:
make maxNuMoves a template parameter, use instead of GO_SORTED_MOVES_MAX

Definition at line 22 of file GoSortedMoves.h.

Public Member Functions

 GoSortedMoves (int maxNuMoves)
 GoSortedMoves ()
void Clear ()
void CheckOverflow ()
void DeleteEqual ()
void Delete (int index)
void Insert (const MOVE &move, VALUE value)
bool GetMove (const MOVE &move, VALUE &value, int &index) const
void GetMoves (SgVector< MOVE > *moves) const
void SetMinValue (const MOVE &move, VALUE value)
void SetMove (int i, const MOVE &move)
void SetValue (int i, VALUE value)
void SetMaxMoves (int nu)
void SetMaxNuMoves (int max)
void SetLowerBound (VALUE bound)
void SetInitLowerBound (VALUE bound)
int LowerBound () const
int NuMoves () const
int MaxNuMoves () const
const MOVE & Move (int i) const
const MOVE & BestMove () const
VALUE Value (int i) const
VALUE BestValue () const
void DecNuMoves ()
void AssertIndexRange (int i) const
void Shuffle ()

Static Public Attributes

static const bool CHECKMOVES


Constructor & Destructor Documentation

GoSortedMoves::GoSortedMoves ( int  maxNuMoves  )  [explicit]

Definition at line 26 of file GoSortedMoves.h.

References Clear().

GoSortedMoves::GoSortedMoves (  ) 

Definition at line 32 of file GoSortedMoves.h.

References Clear().


Member Function Documentation

void GoSortedMoves::Clear (  ) 

Reimplemented from SgSortedMoves< MOVE, VALUE, SIZE >.

Definition at line 39 of file GoSortedMoves.h.

References SgSortedMoves< MOVE, VALUE, SIZE >::Clear(), SgSortedMoves< MOVE, VALUE, SIZE >::SetInitLowerBound(), and SgSortedMoves< MOVE, VALUE, SIZE >::SetLowerBound().

Referenced by GoSortedMoves().


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


17 Jun 2010 Doxygen 1.4.7