Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Classes | Functions
in_game_time.h File Reference
#include "ccfwd.h"
#include <iosfwd>
Include dependency graph for in_game_time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  in_game_time
 The in-game time, in chess moves. More...
 

Functions

void test_in_game_time ()
 Test this class and its free functions.
 
std::string to_str (const in_game_time &t) noexcept
 Convert to literal string, with all the digits behind the comma.
 
std::string to_human_str (const in_game_time &t) noexcept
 Convert to string, rounded off to two digits.
 
bool operator== (const in_game_time &lhs, const in_game_time &rhs) noexcept
 
bool operator< (const in_game_time &lhs, const in_game_time &rhs) noexcept
 
bool operator<= (const in_game_time &lhs, const in_game_time &rhs) noexcept
 
bool operator> (const in_game_time &lhs, const in_game_time &rhs) noexcept
 
bool operator>= (const in_game_time &lhs, const in_game_time &rhs) noexcept
 
in_game_timeoperator+= (in_game_time &game_time, const delta_t &dt) noexcept
 
in_game_time operator+ (const in_game_time &game_time, const delta_t &dt) noexcept
 
in_game_time operator- (const in_game_time &game_time, const delta_t &dt) noexcept
 
delta_t operator- (const in_game_time &lhs, const in_game_time &rhs) noexcept
 
std::ostream & operator<< (std::ostream &os, const in_game_time &dt) noexcept
 

Function Documentation

◆ operator+()

in_game_time operator+ ( const in_game_time game_time,
const delta_t dt 
)
noexcept

◆ operator+=()

in_game_time & operator+= ( in_game_time game_time,
const delta_t dt 
)
noexcept

◆ operator-() [1/2]

in_game_time operator- ( const in_game_time game_time,
const delta_t dt 
)
noexcept

◆ operator-() [2/2]

delta_t operator- ( const in_game_time lhs,
const in_game_time rhs 
)
noexcept

◆ operator<()

bool operator< ( const in_game_time lhs,
const in_game_time rhs 
)
noexcept

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const in_game_time dt 
)
noexcept

◆ operator<=()

bool operator<= ( const in_game_time lhs,
const in_game_time rhs 
)
noexcept

◆ operator==()

bool operator== ( const in_game_time lhs,
const in_game_time rhs 
)
noexcept

◆ operator>()

bool operator> ( const in_game_time lhs,
const in_game_time rhs 
)
noexcept

◆ operator>=()

bool operator>= ( const in_game_time lhs,
const in_game_time rhs 
)
noexcept

◆ test_in_game_time()

void test_in_game_time ( )

Test this class and its free functions.

◆ to_human_str()

std::string to_human_str ( const in_game_time t)
noexcept

Convert to string, rounded off to two digits.

For example: 1.23

◆ to_str()

std::string to_str ( const in_game_time t)
noexcept

Convert to literal string, with all the digits behind the comma.

For example: 1.23456789