Public Member Functions

History< Move< ChessBoard::Coords > > Class Template Reference

List of all members.

Public Member Functions

void add (const Move< ChessBoard::Coords > &data)
size_t size () const
const Move< ChessBoard::Coords > & get (size_t i, int color) const
const TurnData & get (size_t i) const

template<>
class History< Move< ChessBoard::Coords > >


Member Function Documentation

void History< Move< ChessBoard::Coords > >::add ( const Move< ChessBoard::Coords > &  data  ) 

Adds data

Parameters:
data to add in history
Warning:
the data are not directly added to the history. It will be done only when the pair is completed
const History< Move< ChessBoard::Coords > >::TurnData & History< Move< ChessBoard::Coords > >::get ( size_t  i  )  const

Get the pair of move numbered i

Parameters:
i the number of the pair to get
Returns:
the corresponding pair
const Move< ChessBoard::Coords > & History< Move< ChessBoard::Coords > >::get ( size_t  i,
int  color 
) const

Get the move number i for color

Parameters:
i the number of the move to get
color the move color to get
Returns:
the corresponding move
size_t History< Move< ChessBoard::Coords > >::size (  )  const [inline]

Get the number of data store

Returns:
the size of history

The documentation for this class was generated from the following files:
 All Classes Functions Variables