osl の実行環境に関する指定 [詳細]
#include <oslConfig.h>
Public 型 | |
enum | UsiMode { NoUSI, PortableUSI, ExtendedUSI } |
Static Public メソッド | |
static const std::string & | home (const std::string &initialize_if_first_invocation="") |
compile時に指定されたディレクトリを返す. | |
static const char * | home_c_str () |
static const std::string | gpsusiConf () |
static const std::string | testPrivate () |
テストケースのデータ | |
static const std::string | testPublic () |
static const char * | testPrivateFile (const std::string &filename) |
static const char * | testPublicFile (const std::string &filename) |
static const char * | testCsaFile (const std::string &filename) |
static const char * | openingBook (const std::string &filenamme="") |
標準の定跡ファイルを返す | |
static void | setVerbose (bool verbose) |
static bool | verbose () |
static void | showOslHome () |
static void | setNumCPUs (int ncpu) |
static int | concurrency () |
static int | dfpnMaxDepth () |
static void | setDfpnMaxDepth (int) |
static UsiMode | usiMode () |
static void | setUsiMode (UsiMode new_mode=PortableUSI) |
static bool | usiModeInSilent () |
static void | setUsiSilent (bool silent=true) |
static bool | searchExactValueInOneReply () |
static void | setSearchExactValueInOneReply (bool new_value) |
static size_t | residentMemoryUse () |
static size_t | memoryUseLimit () |
static void | setMemoryUseLimit (size_t limit) |
static double | memoryUseRatio () |
static bool | isMemoryLimitEffective () |
static void | setMemoryUsePercent (double limit) |
static unsigned int | evalRandom () |
static void | setEvalRandom (unsigned int sigma) |
static void | setUsiOutputPawnValue (int new_value) |
static int | usiOutputPawnValue () |
static int | inUnitTest () |
static bool | inUnitTestShort () |
static bool | inUnitTestLong () |
static void | setInUnitTest (int new_value) |
static void | setUp () |
評価関数等を初期化. | |
static bool | hasByoyomi () |
static void | setHasByoyomi (bool) |
static bool | healthCheck () |
static int | resignThreshold () |
static std::string | configuration () |
static void | registerInitializer (std::function< void()>) |
Static Public 変数 | |
static const int | MaxThreads = 64 |
static std::mutex | lock_io |
Static Private メソッド | |
static const std::string | makeHome (const std::string &first_try="") |
static const std::string | makeTest () |
static const std::string | makeTestPublic () |
static bool | isGoodDir (const std::string &) |
static void | trySetDir (std::string &, const std::string &) |
static void | showOslHome (const std::string &) |
Static Private 変数 | |
static size_t | memory_use_limit = system_memory_use_limit() |
static double | memory_use_percent = 100.0 |
static const size_t | memory_use_limit_system_max |
static unsigned int | eval_random = 0 |
static bool | is_verbose = false |
static const int | default_ncpus = std::thread::hardware_concurrency() |
static int | num_cpu = default_ncpus |
static volatile UsiMode | usi_mode = osl::OslConfig::NoUSI |
static volatile bool | usi_mode_silent = false |
static int | usi_output_pawn_value = 100 |
static bool | search_exact_value_in_one_reply = false |
static bool | has_byoyomi = false |
static volatile bool | force_root_window = false |
static volatile int | root_window_alpha = 0 |
static volatile int | root_window_beta = 0 |
static volatile int | in_unit_test = 0 |
static int | dfpn_max_depth = 256 |
osl の実行環境に関する指定
oslConfig.h の 18 行で定義されています。
oslConfig.h の 49 行で定義されています。
int osl::OslConfig::concurrency | ( | ) | [static] |
oslConfig.cc の 133 行で定義されています。
参照先 MaxThreads, osl::eval::min(), と num_cpu.
std::string osl::OslConfig::configuration | ( | ) | [static] |
oslConfig.cc の 500 行で定義されています。
参照先 OSL_WORDSIZE.
int osl::OslConfig::dfpnMaxDepth | ( | ) | [static] |
oslConfig.cc の 491 行で定義されています。
参照先 dfpn_max_depth.
static unsigned int osl::OslConfig::evalRandom | ( | ) | [inline, static] |
const std::string osl::OslConfig::gpsusiConf | ( | ) | [static] |
oslConfig.cc の 250 行で定義されています。
参照先 makeHome().
bool osl::OslConfig::hasByoyomi | ( | ) | [static] |
oslConfig.cc の 175 行で定義されています。
参照先 has_byoyomi.
bool osl::OslConfig::healthCheck | ( | ) | [static] |
oslConfig.cc の 453 行で定義されています。
参照先 osl::progress::ml::NewProgress::defaultFilename(), home(), setUp(), setVerbose(), showOslHome(), と verbose().
const std::string & osl::OslConfig::home | ( | const std::string & | initialize_if_first_invocation = "" |
) | [static] |
compile時に指定されたディレクトリを返す.
実行時の指定は環境変数が基本
oslConfig.cc の 239 行で定義されています。
参照先 makeHome().
参照元 osl::rating::FeatureSet::defaultDirectory(), osl::progress::ml::NewProgress::defaultFilename(), osl::eval::ml::OpenMidEndingEval::defaultFilename(), healthCheck(), home_c_str(), makeTest(), makeTestPublic(), openingBook(), osl::move_probability::StandardFeatureSet::setUp(), showOslHome(), と osl::rating::StandardFeatureSet::StandardFeatureSet().
const char * osl::OslConfig::home_c_str | ( | ) | [static] |
oslConfig.cc の 245 行で定義されています。
参照先 home().
static int osl::OslConfig::inUnitTest | ( | ) | [inline, static] |
oslConfig.h の 87 行で定義されています。
参照先 in_unit_test.
参照元 osl::csa::CsaFileMinimal::parseLine(), と osl::record::CsaFile::read().
static bool osl::OslConfig::inUnitTestLong | ( | ) | [inline, static] |
oslConfig.h の 89 行で定義されています。
参照先 in_unit_test.
static bool osl::OslConfig::inUnitTestShort | ( | ) | [inline, static] |
oslConfig.h の 88 行で定義されています。
参照先 in_unit_test.
bool osl::OslConfig::isGoodDir | ( | const std::string & | dir | ) | [static, private] |
oslConfig.cc の 196 行で定義されています。
参照元 trySetDir().
static bool osl::OslConfig::isMemoryLimitEffective | ( | ) | [inline, static] |
oslConfig.h の 68 行で定義されています。
参照先 memory_use_limit, memory_use_limit_system_max, と residentMemoryUse().
const std::string osl::OslConfig::makeHome | ( | const std::string & | first_try = "" |
) | [static, private] |
oslConfig.cc の 213 行で定義されています。
参照先 showOslHome(), trySetDir(), と verbose().
参照元 gpsusiConf(), と home().
const std::string osl::OslConfig::makeTest | ( | ) | [static, private] |
const std::string osl::OslConfig::makeTestPublic | ( | ) | [static, private] |
static size_t osl::OslConfig::memoryUseLimit | ( | ) | [inline, static] |
oslConfig.h の 59 行で定義されています。
参照先 memory_use_limit, と memory_use_percent.
static double osl::OslConfig::memoryUseRatio | ( | ) | [inline, static] |
oslConfig.h の 64 行で定義されています。
参照先 memoryUseLimit(), と residentMemoryUse().
参照元 osl::checkmate::DfpnTable::runGC(), と osl::checkmate::DfpnPathTable::runGC().
const char * osl::OslConfig::openingBook | ( | const std::string & | filenamme = "" |
) | [static] |
標準の定跡ファイルを返す
filename | specify to use non-standard file (absolute path, or home()/data/filename otherwise) |
oslConfig.cc の 369 行で定義されています。
参照先 home().
void osl::OslConfig::registerInitializer | ( | std::function< void()> | f | ) | [static] |
size_t osl::OslConfig::residentMemoryUse | ( | ) | [static] |
oslConfig.cc の 388 行で定義されています。
int osl::OslConfig::resignThreshold | ( | ) | [static] |
oslConfig.cc の 267 行で定義されています。
bool osl::OslConfig::searchExactValueInOneReply | ( | ) | [static] |
oslConfig.cc の 166 行で定義されています。
void osl::OslConfig::setDfpnMaxDepth | ( | int | new_depth | ) | [static] |
oslConfig.cc の 495 行で定義されています。
参照先 dfpn_max_depth.
static void osl::OslConfig::setEvalRandom | ( | unsigned int | sigma | ) | [inline, static] |
oslConfig.h の 82 行で定義されています。
参照先 eval_random.
void osl::OslConfig::setHasByoyomi | ( | bool | value | ) | [static] |
oslConfig.cc の 180 行で定義されています。
参照先 has_byoyomi.
static void osl::OslConfig::setInUnitTest | ( | int | new_value | ) | [inline, static] |
oslConfig.h の 90 行で定義されています。
参照先 in_unit_test.
static void osl::OslConfig::setMemoryUseLimit | ( | size_t | limit | ) | [inline, static] |
oslConfig.h の 63 行で定義されています。
参照先 memory_use_limit.
static void osl::OslConfig::setMemoryUsePercent | ( | double | limit | ) | [inline, static] |
oslConfig.h の 73 行で定義されています。
参照先 osl::eval::max(), memory_use_percent, と osl::eval::min().
void osl::OslConfig::setNumCPUs | ( | int | ncpu | ) | [static] |
oslConfig.cc の 124 行で定義されています。
参照先 MaxThreads, と num_cpu.
void osl::OslConfig::setSearchExactValueInOneReply | ( | bool | new_value | ) | [static] |
oslConfig.cc の 170 行で定義されています。
void osl::OslConfig::setUp | ( | ) | [static] |
評価関数等を初期化.
mainの中で一度呼ぶ必要がある
oslConfig.cc の 438 行で定義されています。
参照先 function_vector().
参照元 healthCheck().
void osl::OslConfig::setUsiMode | ( | UsiMode | new_mode = PortableUSI |
) | [static] |
oslConfig.cc の 154 行で定義されています。
参照先 usi_mode.
static void osl::OslConfig::setUsiOutputPawnValue | ( | int | new_value | ) | [inline, static] |
oslConfig.h の 84 行で定義されています。
void osl::OslConfig::setUsiSilent | ( | bool | silent = true |
) | [static] |
oslConfig.cc の 162 行で定義されています。
参照先 usi_mode_silent.
void osl::OslConfig::setVerbose | ( | bool | verbose | ) | [static] |
void osl::OslConfig::showOslHome | ( | ) | [static] |
void osl::OslConfig::showOslHome | ( | const std::string & | home | ) | [static, private] |
oslConfig.cc の 185 行で定義されています。
参照先 OSL_WORDSIZE.
const char * osl::OslConfig::testCsaFile | ( | const std::string & | filename | ) | [static] |
oslConfig.cc の 359 行で定義されています。
参照先 testPublic().
const std::string osl::OslConfig::testPrivate | ( | ) | [static] |
const char * osl::OslConfig::testPrivateFile | ( | const std::string & | filename | ) | [static] |
oslConfig.cc の 339 行で定義されています。
参照先 testPrivate().
const std::string osl::OslConfig::testPublic | ( | ) | [static] |
const char * osl::OslConfig::testPublicFile | ( | const std::string & | filename | ) | [static] |
oslConfig.cc の 349 行で定義されています。
参照先 testPublic().
void osl::OslConfig::trySetDir | ( | std::string & | dir, | |
const std::string & | candidate | |||
) | [static, private] |
oslConfig.cc の 202 行で定義されています。
参照先 isGoodDir(), と verbose().
参照元 makeHome(), makeTest(), と makeTestPublic().
osl::OslConfig::UsiMode osl::OslConfig::usiMode | ( | ) | [static] |
oslConfig.cc の 150 行で定義されています。
参照先 usi_mode.
bool osl::OslConfig::usiModeInSilent | ( | ) | [static] |
oslConfig.cc の 158 行で定義されています。
参照先 usi_mode_silent.
static int osl::OslConfig::usiOutputPawnValue | ( | ) | [inline, static] |
oslConfig.h の 85 行で定義されています。
bool osl::OslConfig::verbose | ( | ) | [static] |
oslConfig.cc の 145 行で定義されています。
参照先 is_verbose.
参照元 healthCheck(), makeHome(), osl::misc::BinaryElementReader< T >::State< T >::tryRead(), と trySetDir().
const int osl::OslConfig::default_ncpus = std::thread::hardware_concurrency() [static, private] |
oslConfig.h の 112 行で定義されています。
int osl::OslConfig::dfpn_max_depth = 256 [static, private] |
oslConfig.h の 121 行で定義されています。
参照元 dfpnMaxDepth(), と setDfpnMaxDepth().
unsigned int osl::OslConfig::eval_random = 0 [static, private] |
oslConfig.h の 110 行で定義されています。
参照元 evalRandom(), と setEvalRandom().
volatile bool osl::OslConfig::force_root_window = false [static, private] |
oslConfig.h の 118 行で定義されています。
bool osl::OslConfig::has_byoyomi = false [static, private] |
oslConfig.h の 117 行で定義されています。
参照元 hasByoyomi(), と setHasByoyomi().
volatile int osl::OslConfig::in_unit_test = 0 [static, private] |
oslConfig.h の 120 行で定義されています。
参照元 inUnitTest(), inUnitTestLong(), inUnitTestShort(), と setInUnitTest().
bool osl::OslConfig::is_verbose = false [static, private] |
oslConfig.h の 111 行で定義されています。
参照元 setVerbose(), と verbose().
std::mutex osl::OslConfig::lock_io [static] |
oslConfig.h の 123 行で定義されています。
const int osl::OslConfig::MaxThreads = 64 [static] |
oslConfig.h の 20 行で定義されています。
参照元 concurrency(), と setNumCPUs().
size_t osl::OslConfig::memory_use_limit = system_memory_use_limit() [static, private] |
oslConfig.h の 107 行で定義されています。
参照元 isMemoryLimitEffective(), memoryUseLimit(), と setMemoryUseLimit().
const size_t osl::OslConfig::memory_use_limit_system_max [static, private] |
double osl::OslConfig::memory_use_percent = 100.0 [static, private] |
oslConfig.h の 108 行で定義されています。
int osl::OslConfig::num_cpu = default_ncpus [static, private] |
oslConfig.h の 113 行で定義されています。
参照元 concurrency(), と setNumCPUs().
volatile int osl::OslConfig::root_window_alpha = 0 [static, private] |
oslConfig.h の 119 行で定義されています。
volatile int osl::OslConfig::root_window_beta = 0 [static, private] |
oslConfig.h の 119 行で定義されています。
bool osl::OslConfig::search_exact_value_in_one_reply = false [static, private] |
oslConfig.h の 117 行で定義されています。
参照元 searchExactValueInOneReply(), と setSearchExactValueInOneReply().
volatile osl::OslConfig::UsiMode osl::OslConfig::usi_mode = osl::OslConfig::NoUSI [static, private] |
oslConfig.h の 114 行で定義されています。
参照元 setUsiMode(), と usiMode().
volatile bool osl::OslConfig::usi_mode_silent = false [static, private] |
oslConfig.h の 115 行で定義されています。
参照元 setUsiSilent(), と usiModeInSilent().
int osl::OslConfig::usi_output_pawn_value = 100 [static, private] |
oslConfig.h の 116 行で定義されています。