|
My Project
|
#include <hashKey.h>
Public Member Functions | |
| HashKey () | |
| HashKey (const SimpleState &) | |
| const HashKey | newHashWithMove (Move move) const |
| const HashKey | newMakeMove (Move) const |
| const HashKey | newUnmakeMove (Move) const |
| void | dumpContents (std::ostream &os) const |
| void | dumpContentsCerr () const |
| Public Member Functions inherited from osl::hash::HashKey128 | |
| HashKey128 () | |
| HashKey128 (uint64_t h0, uint32_t h1, uint32_t s) | |
| HashKey128 (const HashKey128Layout &src) | |
| const BoardKey96 | boardKey () const |
| uint64_t | boardKey64 () const |
| uint64_t | signature () const |
| uint64_t | hash64 () const |
| 持駒も含んだ64bitのハッシュ | |
| uint64_t | pieceStand64 () const |
| const PieceStand | pieceStand () const |
| const PieceStand | blackStand () const |
| void | setPieceStand (const PieceStand &p) |
| bool | isSameBoard (const HashKey128 &key) const |
| 駒台の情報を除いて同じかどうか. | |
| HashKey128 & | operator+= (const HashKey128 &r) |
| HashKey128 & | operator-= (const HashKey128 &r) |
| void | add (Move move) |
| void | changeTurn () |
| void | setPlayer (Player p) |
| bool | playerBit () const |
| bool | isPlayerOfTurn (Player p) const |
| Player | turn () const |
| void | setRandom () |
| 乱数で初期化. | |
| size_t | size () const |
| uint64_t | operator[] (size_t i) const |
Static Public Member Functions | |
| static const HashKey | readFromDump (const std::string &) |
| static const HashKey | readFromDump (std::istream &) |
Additional Inherited Members | |
| Static Public Attributes inherited from osl::hash::HashKey128 | |
| static const StandHash | Stand_Hash |
|
inline |
Definition at line 155 of file hashKey.h.
Referenced by newMakeMove(), newUnmakeMove(), readFromDump(), and readFromDump().
| osl::hash::HashKey::HashKey | ( | const SimpleState & | state | ) |
Definition at line 52 of file hashKey.cc.
References osl::hash::HashGenTable::addHashKey(), osl::SimpleState::pieceOf(), osl::Piece::ptypeO(), osl::hash::HashKey128::setPlayer(), osl::Piece::square(), osl::PieceMask::test(), osl::SimpleState::turn(), and osl::SimpleState::usedMask().
| void osl::hash::HashKey::dumpContents | ( | std::ostream & | os | ) | const |
Definition at line 38 of file hashKey.cc.
References osl::hash::HashKey128::operator[](), osl::hash::HashKey128::pieceStand(), and osl::hash::HashKey128::size().
Referenced by dumpContentsCerr(), and osl::checkmate::Dfpn::proofOracleAttack().
| void osl::hash::HashKey::dumpContentsCerr | ( | ) | const |
Definition at line 46 of file hashKey.cc.
References dumpContents().
| const osl::hash::HashKey osl::hash::HashKey::newHashWithMove | ( | Move | move | ) | const |
Definition at line 62 of file hashKey.cc.
References newMakeMove().
Referenced by osl::checkmate::ProofTreeDepthDfpn::andNode(), osl::checkmate::Dfpn::attack(), osl::checkmate::Dfpn::defense(), osl::checkmate::Dfpn::grandParentSimulation(), osl::RepetitionCounter::isSennichite(), osl::checkmate::ProofTreeDepthDfpn::orNode(), osl::checkmate::Dfpn::proofOracleAttack(), osl::checkmate::Dfpn::proofOracleDefense(), and osl::RepetitionCounter::push().
| const osl::hash::HashKey osl::hash::HashKey::newMakeMove | ( | Move | move | ) | const |
Definition at line 68 of file hashKey.cc.
References osl::hash::HashGenTable::addHashKey(), osl::alt(), osl::captured(), osl::Move::capturePtype(), osl::hash::HashKey128::changeTurn(), osl::Move::from(), HashKey(), osl::Move::isPass(), osl::Move::isValid(), osl::newPtypeO(), osl::Move::oldPtypeO(), osl::Move::player(), osl::PTYPE_EMPTY, osl::Move::ptypeO(), osl::Square::STAND(), osl::hash::HashGenTable::subHashKey(), and osl::Move::to().
Referenced by osl::checkmate::Dfpn::analyze(), newHashWithMove(), osl::book::BookInMemory::readRecursive(), and osl::checkmate::ProofTreeDepthDfpn::retrievePV().
| const osl::hash::HashKey osl::hash::HashKey::newUnmakeMove | ( | Move | move | ) | const |
Definition at line 95 of file hashKey.cc.
References osl::hash::HashGenTable::addHashKey(), osl::alt(), osl::captured(), osl::Move::capturePtype(), osl::hash::HashKey128::changeTurn(), osl::Move::from(), HashKey(), osl::Move::isPass(), osl::Move::isValid(), osl::newPtypeO(), osl::Move::oldPtypeO(), osl::Move::player(), osl::PTYPE_EMPTY, osl::Move::ptypeO(), osl::Square::STAND(), osl::hash::HashGenTable::subHashKey(), and osl::Move::to().
Referenced by osl::checkmate::Dfpn::findDagSource().
|
static |
References HashKey().
|
static |
References HashKey().