Results Class Reference

#include <results.h>


Detailed Description

This class allows to perform a search on the board for a given rack, and it offers accessors to the resulting rounds.

The rounds are sorted by decreasing number of points (but there is no other ordering between 2 rounds with the same number of points).

Definition at line 47 of file results.h.

Public Member Functions

 Results ()
virtual ~Results ()
int size () const
void clear ()
const Round & get (int) const
void search (const Dictionary &iDic, Board &iBoard, const Rack &iRack, int iTurn)
void add (const Round &iRound)
void sort_by_points ()


Constructor & Destructor Documentation

Results::Results (   )  [inline]
 

Definition at line 50 of file results.h.

virtual Results::~Results (   )  [inline, virtual]
 

Definition at line 51 of file results.h.


Member Function Documentation

void Results::add (  const Round &  iRound  )  [inline]
 

Definition at line 63 of file results.h.

void Results::clear (   )  [inline]
 

Definition at line 54 of file results.h.

Referenced by AIPercent::compute(), Training::playResult(), search(), Training::setRackManual(), and Training::setRackRandom().

const Round & Results::get (  int   )  const
 

Definition at line 49 of file results.cpp.

References ASSERT, and size().

Referenced by AIPercent::getChosenRound(), Training::playResult(), searchResultLine(), and Training::testPlay().

void Results::search (  const Dictionary &  iDic,
Board &  iBoard,
const Rack &  iRack,
int  iTurn
) 
 

Definition at line 56 of file results.cpp.

References clear(), Board::search(), Board::searchFirst(), and sort_by_points().

Referenced by AIPercent::compute(), and Training::search().

int Results::size (   )  const [inline]
 

Definition at line 53 of file results.h.

Referenced by AIPercent::changesLetters(), get(), AIPercent::getChosenRound(), Training::playResult(), GameIO::printSearchResults(), and Training::testPlay().

void Results::sort_by_points (   ) 
 

Definition at line 74 of file results.cpp.

Referenced by search().


The documentation for this class was generated from the following files:
Generated on Thu Dec 29 02:01:15 2005 for Eliot by  doxygen 1.4.5