A helper class to write other objects to an ostream. More...
#include <ChessNotation.h>
Public Member Functions | |
Constructors | |
ChessNotation (ChessPosition const& chess_position, Piece const& piece) | |
ChessNotation (ChessPosition const& chess_position, Index const& index) | |
ChessNotation (ChessPosition const& chess_position, Move const& move) | |
ChessNotation (ChessPosition const& chess_position, Type const& type) | |
Friends | |
std::ostream& | operator<< (std::ostream& os, ChessNotation const& chess_notation) |
A helper class to write other objects to an ostream.
This class allows objects of several types to be written to an ostream in a human readable form.
The constructor always takes the chess_position that the object refers to as first argument.
Usage example:
Definition at line 51 of file ChessNotation.h.