Knight-Path 1.0.D018
Classes | Functions

/home/archives/knight-path/branch.1/branch.0/delta5682.018/knight-path/position.h File Reference

#include <iostream>
#include <vector>

Go to the source code of this file.

Classes

class  position

Functions

std::istream & operator>> (std::istream &is, position &p)
std::ostream & operator<< (std::ostream &os, const position &p)

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const position p 
) [inline]

The << operator is used to write a position to an output stream.

Parameters:
osThe output stream to be written on.
pThe position to be written.

Definition at line 270 of file position.h.

std::istream& operator>> ( std::istream &  is,
position p 
) [inline]

The >> operator is used to read a position from an input stream. It will not return if there is an error reading the position (such as not present, not valid, or end-of-file).

Parameters:
isThe input stream to be read.
pThe resulting position value.

Definition at line 255 of file position.h.