![]() |
Cinnamon
1.1
chess engine
|
#include <string.h>
#include <algorithm>
#include <sys/stat.h>
#include <sys/timeb.h>
#include <sstream>
#include <climits>
#include "random.inc"
#include <sys/mman.h>
Go to the source code of this file.
Classes | |
struct | _board::_Tmove |
struct | _board::_TmoveP |
Namespaces | |
namespace | _board |
namespace | _memory |
namespace | _time |
namespace | _string |
namespace | _file |
namespace | _random |
namespace | _bits |
namespace | _eval |
Defines | |
#define | assert(a) if(!(a)){cout<<dec<<endl<<_time::getLocalTime()<<" ********************************** assert error in "<<_file::extractFileName(__FILE__)<< " line "<<__LINE__<<" "<<" **********************************"<<endl<<flush;exit(1);}; |
#define | ASSERT(a) |
#define | INC(a) |
Typedefs | |
typedef unsigned char | _board::uchar |
typedef long long unsigned | _board::u64 |
Enumerations | |
enum | _eval::_Tstatus { _eval::OPEN, _eval::MIDDLE, _eval::END } |
Functions | |
void * | _memory::_mmap (string fileName) |
void | _memory::_munmap (void *blob, int fileSize) |
string | _time::getLocalTime () |
int | _time::diffTime (struct timeb t1, struct timeb t2) |
void | _string::trimRight (string &str) |
void | _string::replace (string &f, string s1, string s2) |
void | _string::replace (string &f, char c1, char c2) |
int | _file::fileSize (const string &FileName) |
string | _file::extractFileName (string path) |
void | _random::init () |
u64 | _random::getRandom64 () |
void | _bits::init () |
void | _bits::_free () |
#define assert | ( | a | ) | if(!(a)){cout<<dec<<endl<<_time::getLocalTime()<<" ********************************** assert error in "<<_file::extractFileName(__FILE__)<< " line "<<__LINE__<<" "<<" **********************************"<<endl<<flush;exit(1);}; |
#define ASSERT | ( | a | ) |
#define INC | ( | a | ) |