Time management. More...
#include <iosfwd>
#include "SgBWArray.h"
Go to the source code of this file.
Classes | |
class | SgTimeRecord |
A time record contains time-related information. More... | |
Enumerations | |
enum | SgClockState { SG_CLOCK_OFF, SG_CLOCK_RUNNING, SG_CLOCK_SUSPENDED } |
Clock states. More... | |
Functions | |
std::ostream & | operator<< (std::ostream &out, const SgTimeRecord &time) |
Output SgTimeRecord to stream. | |
std::ostream & | operator<< (std::ostream &out, SgClockState clockState) |
Output SgClockState to stream. |
Time management.
Definition in file SgTimeRecord.h.
enum SgClockState |
Clock states.
Definition at line 17 of file SgTimeRecord.h.
std::ostream& operator<< | ( | std::ostream & | out, | |
const SgTimeRecord & | time | |||
) |
Output SgTimeRecord to stream.
Definition at line 205 of file SgTimeRecord.cpp.
References SgTimeRecord::ClockIsRunning(), SgTimeRecord::GetClockState(), SgTimeRecord::LoseOnTime(), SgTimeRecord::MovesLeft(), SgTimeRecord::OTNumMoves(), SgTimeRecord::OTPeriod(), SgTimeRecord::Overhead(), SG_BLACK, SG_WHITE, SgTimeRecord::TimeLeft(), and SgTimeRecord::UseOvertime().
std::ostream& operator<< | ( | std::ostream & | out, | |
SgClockState | clockState | |||
) |
Output SgClockState to stream.
Definition at line 221 of file SgTimeRecord.cpp.
References SG_ASSERT, SG_CLOCK_OFF, SG_CLOCK_RUNNING, and SG_CLOCK_SUSPENDED.