Public 型 | Static Public メソッド | Static Public 変数 | Static Private メソッド | Static Private 変数

構造体 osl::OslConfig

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.h18 行で定義されています。


列挙型

列挙型の値:
NoUSI 
PortableUSI 
ExtendedUSI 

oslConfig.h49 行で定義されています。


関数

int osl::OslConfig::concurrency (  )  [static]

oslConfig.cc133 行で定義されています。

参照先 MaxThreads, osl::eval::min(), と num_cpu.

std::string osl::OslConfig::configuration (  )  [static]

oslConfig.cc500 行で定義されています。

参照先 OSL_WORDSIZE.

int osl::OslConfig::dfpnMaxDepth (  )  [static]

oslConfig.cc491 行で定義されています。

参照先 dfpn_max_depth.

static unsigned int osl::OslConfig::evalRandom (  )  [inline, static]
戻り値:
standard deviation of normal distribution

oslConfig.h81 行で定義されています。

参照先 eval_random.

const std::string osl::OslConfig::gpsusiConf (  )  [static]

oslConfig.cc250 行で定義されています。

参照先 makeHome().

bool osl::OslConfig::hasByoyomi (  )  [static]

oslConfig.cc175 行で定義されています。

参照先 has_byoyomi.

bool osl::OslConfig::healthCheck (  )  [static]
const std::string & osl::OslConfig::home ( const std::string &  initialize_if_first_invocation = ""  )  [static]
const char * osl::OslConfig::home_c_str (  )  [static]

oslConfig.cc245 行で定義されています。

参照先 home().

static int osl::OslConfig::inUnitTest (  )  [inline, static]
戻り値:
0 not testing, 1 short test, 2 long test

oslConfig.h87 行で定義されています。

参照先 in_unit_test.

参照元 osl::csa::CsaFileMinimal::parseLine(), と osl::record::CsaFile::read().

static bool osl::OslConfig::inUnitTestLong (  )  [inline, static]

oslConfig.h89 行で定義されています。

参照先 in_unit_test.

static bool osl::OslConfig::inUnitTestShort (  )  [inline, static]

oslConfig.h88 行で定義されています。

参照先 in_unit_test.

bool osl::OslConfig::isGoodDir ( const std::string &  dir  )  [static, private]

oslConfig.cc196 行で定義されています。

参照元 trySetDir().

static bool osl::OslConfig::isMemoryLimitEffective (  )  [inline, static]

oslConfig.h68 行で定義されています。

参照先 memory_use_limit, memory_use_limit_system_max, と residentMemoryUse().

const std::string osl::OslConfig::makeHome ( const std::string &  first_try = ""  )  [static, private]

oslConfig.cc213 行で定義されています。

参照先 showOslHome(), trySetDir(), と verbose().

参照元 gpsusiConf(), と home().

const std::string osl::OslConfig::makeTest (  )  [static, private]

oslConfig.cc274 行で定義されています。

参照先 home(), と trySetDir().

参照元 testPrivate().

const std::string osl::OslConfig::makeTestPublic (  )  [static, private]

oslConfig.cc287 行で定義されています。

参照先 home(), と trySetDir().

参照元 testPublic().

static size_t osl::OslConfig::memoryUseLimit (  )  [inline, static]

oslConfig.h59 行で定義されています。

参照先 memory_use_limit, と memory_use_percent.

参照元 memoryUseRatio(), と osl::checkmate::DualDfpn::runGC().

static double osl::OslConfig::memoryUseRatio (  )  [inline, static]
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.cc369 行で定義されています。

参照先 home().

参照元 osl::book::BookInMemory::readAll().

void osl::OslConfig::registerInitializer ( std::function< void()>  f  )  [static]

oslConfig.cc449 行で定義されています。

参照先 function_vector().

参照元 osl::SetUpRegister::SetUpRegister().

size_t osl::OslConfig::residentMemoryUse (  )  [static]

oslConfig.cc388 行で定義されています。

参照元 isMemoryLimitEffective(), と memoryUseRatio().

int osl::OslConfig::resignThreshold (  )  [static]

oslConfig.cc267 行で定義されています。

bool osl::OslConfig::searchExactValueInOneReply (  )  [static]

oslConfig.cc166 行で定義されています。

参照先 search_exact_value_in_one_reply.

void osl::OslConfig::setDfpnMaxDepth ( int  new_depth  )  [static]

oslConfig.cc495 行で定義されています。

参照先 dfpn_max_depth.

static void osl::OslConfig::setEvalRandom ( unsigned int  sigma  )  [inline, static]

oslConfig.h82 行で定義されています。

参照先 eval_random.

void osl::OslConfig::setHasByoyomi ( bool  value  )  [static]

oslConfig.cc180 行で定義されています。

参照先 has_byoyomi.

static void osl::OslConfig::setInUnitTest ( int  new_value  )  [inline, static]

oslConfig.h90 行で定義されています。

参照先 in_unit_test.

static void osl::OslConfig::setMemoryUseLimit ( size_t  limit  )  [inline, static]

oslConfig.h63 行で定義されています。

参照先 memory_use_limit.

static void osl::OslConfig::setMemoryUsePercent ( double  limit  )  [inline, static]

oslConfig.h73 行で定義されています。

参照先 osl::eval::max(), memory_use_percent, と osl::eval::min().

void osl::OslConfig::setNumCPUs ( int  ncpu  )  [static]

oslConfig.cc124 行で定義されています。

参照先 MaxThreads, と num_cpu.

void osl::OslConfig::setSearchExactValueInOneReply ( bool  new_value  )  [static]

oslConfig.cc170 行で定義されています。

参照先 search_exact_value_in_one_reply.

void osl::OslConfig::setUp (  )  [static]

評価関数等を初期化.

mainの中で一度呼ぶ必要がある

oslConfig.cc438 行で定義されています。

参照先 function_vector().

参照元 healthCheck().

void osl::OslConfig::setUsiMode ( UsiMode  new_mode = PortableUSI  )  [static]

oslConfig.cc154 行で定義されています。

参照先 usi_mode.

static void osl::OslConfig::setUsiOutputPawnValue ( int  new_value  )  [inline, static]

oslConfig.h84 行で定義されています。

参照先 usi_output_pawn_value.

void osl::OslConfig::setUsiSilent ( bool  silent = true  )  [static]

oslConfig.cc162 行で定義されています。

参照先 usi_mode_silent.

void osl::OslConfig::setVerbose ( bool  verbose  )  [static]

oslConfig.cc140 行で定義されています。

参照先 is_verbose.

参照元 healthCheck().

void osl::OslConfig::showOslHome (  )  [static]

oslConfig.cc191 行で定義されています。

参照先 home().

参照元 healthCheck(), と makeHome().

void osl::OslConfig::showOslHome ( const std::string &  home  )  [static, private]

oslConfig.cc185 行で定義されています。

参照先 OSL_WORDSIZE.

const char * osl::OslConfig::testCsaFile ( const std::string &  filename  )  [static]

oslConfig.cc359 行で定義されています。

参照先 testPublic().

const std::string osl::OslConfig::testPrivate (  )  [static]

テストケースのデータ

oslConfig.cc300 行で定義されています。

参照先 makeTest().

参照元 testPrivateFile().

const char * osl::OslConfig::testPrivateFile ( const std::string &  filename  )  [static]

oslConfig.cc339 行で定義されています。

参照先 testPrivate().

const std::string osl::OslConfig::testPublic (  )  [static]

oslConfig.cc306 行で定義されています。

参照先 makeTestPublic().

参照元 testCsaFile(), と testPublicFile().

const char * osl::OslConfig::testPublicFile ( const std::string &  filename  )  [static]

oslConfig.cc349 行で定義されています。

参照先 testPublic().

void osl::OslConfig::trySetDir ( std::string &  dir,
const std::string &  candidate 
) [static, private]

oslConfig.cc202 行で定義されています。

参照先 isGoodDir(), と verbose().

参照元 makeHome(), makeTest(), と makeTestPublic().

osl::OslConfig::UsiMode osl::OslConfig::usiMode (  )  [static]

oslConfig.cc150 行で定義されています。

参照先 usi_mode.

bool osl::OslConfig::usiModeInSilent (  )  [static]

oslConfig.cc158 行で定義されています。

参照先 usi_mode_silent.

static int osl::OslConfig::usiOutputPawnValue (  )  [inline, static]

oslConfig.h85 行で定義されています。

参照先 usi_output_pawn_value.

bool osl::OslConfig::verbose (  )  [static]

変数

const int osl::OslConfig::default_ncpus = std::thread::hardware_concurrency() [static, private]

oslConfig.h112 行で定義されています。

int osl::OslConfig::dfpn_max_depth = 256 [static, private]

oslConfig.h121 行で定義されています。

参照元 dfpnMaxDepth(), と setDfpnMaxDepth().

unsigned int osl::OslConfig::eval_random = 0 [static, private]

oslConfig.h110 行で定義されています。

参照元 evalRandom(), と setEvalRandom().

volatile bool osl::OslConfig::force_root_window = false [static, private]

oslConfig.h118 行で定義されています。

bool osl::OslConfig::has_byoyomi = false [static, private]

oslConfig.h117 行で定義されています。

参照元 hasByoyomi(), と setHasByoyomi().

volatile int osl::OslConfig::in_unit_test = 0 [static, private]

oslConfig.h120 行で定義されています。

参照元 inUnitTest(), inUnitTestLong(), inUnitTestShort(), と setInUnitTest().

bool osl::OslConfig::is_verbose = false [static, private]

oslConfig.h111 行で定義されています。

参照元 setVerbose(), と verbose().

std::mutex osl::OslConfig::lock_io [static]

oslConfig.h123 行で定義されています。

const int osl::OslConfig::MaxThreads = 64 [static]

oslConfig.h20 行で定義されています。

参照元 concurrency(), と setNumCPUs().

size_t osl::OslConfig::memory_use_limit = system_memory_use_limit() [static, private]

oslConfig.h107 行で定義されています。

参照元 isMemoryLimitEffective(), memoryUseLimit(), と setMemoryUseLimit().

const size_t osl::OslConfig::memory_use_limit_system_max [static, private]
初期値:

oslConfig.h109 行で定義されています。

参照元 isMemoryLimitEffective().

double osl::OslConfig::memory_use_percent = 100.0 [static, private]

oslConfig.h108 行で定義されています。

参照元 memoryUseLimit(), と setMemoryUsePercent().

int osl::OslConfig::num_cpu = default_ncpus [static, private]

oslConfig.h113 行で定義されています。

参照元 concurrency(), と setNumCPUs().

volatile int osl::OslConfig::root_window_alpha = 0 [static, private]

oslConfig.h119 行で定義されています。

volatile int osl::OslConfig::root_window_beta = 0 [static, private]

oslConfig.h119 行で定義されています。

bool osl::OslConfig::search_exact_value_in_one_reply = false [static, private]

oslConfig.h117 行で定義されています。

参照元 searchExactValueInOneReply(), と setSearchExactValueInOneReply().

volatile osl::OslConfig::UsiMode osl::OslConfig::usi_mode = osl::OslConfig::NoUSI [static, private]

oslConfig.h114 行で定義されています。

参照元 setUsiMode(), と usiMode().

volatile bool osl::OslConfig::usi_mode_silent = false [static, private]

oslConfig.h115 行で定義されています。

参照元 setUsiSilent(), と usiModeInSilent().

int osl::OslConfig::usi_output_pawn_value = 100 [static, private]

oslConfig.h116 行で定義されています。

参照元 setUsiOutputPawnValue(), と usiOutputPawnValue().


この構造体の説明は次のファイルから生成されました:
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義