#include <ntesukiTable.h>
Public メソッド | |
Table (unsigned int capacity, unsigned int default_gc_size, bool verbose) | |
~Table () | |
NtesukiRecord * | allocate (const HashKey &key, const PieceStand &white_stand, signed short distance) |
key б Record Table õ. | |
NtesukiRecord * | find (const HashKey &key) |
ɽõϿϤʤ | |
void | erase (const HashKey key) |
ɽϿ줿Ǥ. | |
template<class F> | |
void | forEachRecord (F &f) |
ơ֥Ͽ줿 record F ǽ. | |
template<class F> | |
void | forEachRecordFrom (F &, NumEffectState &, NtesukiRecord *) |
template<class F> | |
void | forEachRecordFromRoot (F &f) |
void | collectGarbage (unsigned int gc_size) |
Collect garbage, until the size of the table reduces to gc_size | |
Public 変数 | |
unsigned int | capacity |
unsigned int | default_gc_size |
bool | verbose |
bool | no_gc |
bool | gc_request |
unsigned int | numEntry |
unsigned int | numCacheHit |
unsigned int | gcCount |
NtesukiRecord * | root |
boost::scoped_ptr< NumEffectState > | rootState |
Static Public 変数 | |
static int | largeGCCount = 0 |
ntesukiTable.h の 58 行で定義されています。
osl::ntesuki::NtesukiTable::Table::Table | ( | unsigned int | capacity, | |
unsigned int | default_gc_size, | |||
bool | verbose | |||
) |
ntesukiTable.cc の 22 行で定義されています。
osl::ntesuki::NtesukiTable::Table::~Table | ( | ) |
ntesukiTable.cc の 32 行で定義されています。
osl::ntesuki::NtesukiRecord * osl::ntesuki::NtesukiTable::Table::allocate | ( | const HashKey & | key, | |
const PieceStand & | white_stand, | |||
signed short | distance | |||
) |
key
б Record Table õ.
⤷ϿƤʤä鿷Ͽ.
key | ̤ Hash |
ntesukiTable.cc の 38 行で定義されています。
参照先 capacity, collectGarbage(), default_gc_size, find(), gc_request, no_gc, numCacheHit, と numEntry.
osl::ntesuki::NtesukiRecord * osl::ntesuki::NtesukiTable::Table::find | ( | const HashKey & | key | ) |
ɽõϿϤʤ
ntesukiTable.cc の 535 行で定義されています。
参照先 osl::find(), と numCacheHit.
参照元 allocate(), と forEachRecordFrom().
void osl::ntesuki::NtesukiTable::Table::erase | ( | const HashKey | key | ) |
void osl::ntesuki::NtesukiTable::Table::forEachRecord | ( | F & | f | ) | [inline] |
ơ֥Ͽ줿 record F ǽ.
ntesukiTable.tcc の 14 行で定義されています。
参照先 osl::ntesuki::NtesukiTable::begin(), と osl::ntesuki::NtesukiTable::end().
void osl::ntesuki::NtesukiTable::Table::forEachRecordFrom | ( | F & | func, | |
NumEffectState & | state, | |||
NtesukiRecord * | record | |||
) | [inline] |
void osl::ntesuki::NtesukiTable::Table::forEachRecordFromRoot | ( | F & | f | ) | [inline] |
void osl::ntesuki::NtesukiTable::Table::collectGarbage | ( | unsigned int | gc_size | ) |
Collect garbage, until the size of the table reduces to gc_size
ntesukiTable.cc の 366 行で定義されています。
参照先 osl::ntesuki::NtesukiRecord::addChildCount(), osl::ntesuki::NtesukiTable::begin(), osl::BLACK, osl::ntesuki::NtesukiTable::end(), erase(), gcCount, osl::ntesuki::NtesukiRecord::getChildCount(), osl::ntesuki::NtesukiRecord::getValue(), osl::ntesuki::NtesukiRecord::isVisited(), osl::ntesuki::NtesukiRecord::key, largeGCCount, numEntry, osl::ntesuki::NtesukiRecord::parents, osl::ntesuki::NtesukiRecord::rev_refcount, root, verbose, と osl::WHITE.
参照元 allocate().
unsigned int osl::ntesuki::NtesukiTable::Table::capacity |
unsigned int osl::ntesuki::NtesukiTable::Table::default_gc_size |
unsigned int osl::ntesuki::NtesukiTable::Table::numEntry |
unsigned int osl::ntesuki::NtesukiTable::Table::numCacheHit |
unsigned int osl::ntesuki::NtesukiTable::Table::gcCount |
boost::scoped_ptr<NumEffectState> osl::ntesuki::NtesukiTable::Table::rootState |
int osl::ntesuki::NtesukiTable::Table::largeGCCount = 0 [static] |