2つのhashKey(たとえばHashKey32とHashKey64)を保持して, 常に同じ結果(片方で一致して片方で一致しないことがない)であることを assertで確認しながら動くHashKey More...
#include <hashKeyMix.h>
Public Member Functions | |
HashKeyMix () | |
HashKeyMix (unsigned int v0, unsigned int v1, unsigned int v2, unsigned int v3, unsigned int v4, unsigned int v5) | |
bool | isSameBoard (const HashKeyMix &key) const |
HashKeyMix & | operator+= (const HashKeyMix &r) |
HashKeyMix & | operator-= (const HashKeyMix &r) |
PieceStand | blackStand () const |
void | changeTurn () |
void | setPlayer (Player p) |
bool | isPlayerOfTurn (Player p) const |
size_t | size () const |
size_t | value (unsigned int i) const |
void | setRandom () |
Private Member Functions | |
hash1_t const & | getHash1 () const |
hash1_t & | getHash1 () |
hash2_t const & | getHash2 () const |
hash2_t & | getHash2 () |
Private Attributes | |
hash1_t | hash1 |
hash2_t | hash2 |
Friends | |
bool | operator== (HashKeyMix const &l, HashKeyMix const &r) |
bool | operator< (HashKeyMix const &l, HashKeyMix const &r) |
ここの順序はset等に入れるためだけに使うので,完全に一致する必要はない More... | |
bool | operator!= (const HashKeyMix &h1, const HashKeyMix &h2) |
2つのhashKey(たとえばHashKey32とHashKey64)を保持して, 常に同じ結果(片方で一致して片方で一致しないことがない)であることを assertで確認しながら動くHashKey
Definition at line 17 of file hashKeyMix.h.
|
inline |
Definition at line 26 of file hashKeyMix.h.
|
inline |
Definition at line 28 of file hashKeyMix.h.
|
inline |
Definition at line 51 of file hashKeyMix.h.
References osl::hash::HashKeyMix< hash1_t, hash2_t >::hash1, and osl::hash::HashKeyMix< hash1_t, hash2_t >::hash2.
|
inline |
Definition at line 56 of file hashKeyMix.h.
References osl::hash::HashKeyMix< hash1_t, hash2_t >::hash1, and osl::hash::HashKeyMix< hash1_t, hash2_t >::hash2.
|
inlineprivate |
Definition at line 21 of file hashKeyMix.h.
References osl::hash::HashKeyMix< hash1_t, hash2_t >::hash1.
Referenced by osl::hash::HashKeyMix< hash1_t, hash2_t >::isSameBoard(), osl::hash::HashKeyMix< hash1_t, hash2_t >::operator+=(), and osl::hash::HashKeyMix< hash1_t, hash2_t >::operator-=().
|
inlineprivate |
Definition at line 22 of file hashKeyMix.h.
References osl::hash::HashKeyMix< hash1_t, hash2_t >::hash1.
|
inlineprivate |
Definition at line 23 of file hashKeyMix.h.
References osl::hash::HashKeyMix< hash1_t, hash2_t >::hash2.
Referenced by osl::hash::HashKeyMix< hash1_t, hash2_t >::isSameBoard(), osl::hash::HashKeyMix< hash1_t, hash2_t >::operator+=(), and osl::hash::HashKeyMix< hash1_t, hash2_t >::operator-=().
|
inlineprivate |
Definition at line 24 of file hashKeyMix.h.
References osl::hash::HashKeyMix< hash1_t, hash2_t >::hash2.
|
inline |
Definition at line 64 of file hashKeyMix.h.
References osl::hash::HashKeyMix< hash1_t, hash2_t >::hash1, and osl::hash::HashKeyMix< hash1_t, hash2_t >::hash2.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 60 of file hashKeyMix.h.
References osl::hash::HashKeyMix< hash1_t, hash2_t >::hash1, and osl::hash::HashKeyMix< hash1_t, hash2_t >::hash2.
|
inline |
Definition at line 78 of file hashKeyMix.h.
References osl::hash::HashKeyMix< hash1_t, hash2_t >::hash1, and osl::hash::HashKeyMix< hash1_t, hash2_t >::hash2.
|
inline |
Definition at line 69 of file hashKeyMix.h.
References osl::hash::HashKeyMix< hash1_t, hash2_t >::hash1, osl::hash::HashKeyMix< hash1_t, hash2_t >::hash2, and osl::eval::max().
Referenced by osl::hash::HashKeyMix< hash1_t, hash2_t >::value().
|
inline |
Definition at line 73 of file hashKeyMix.h.
References osl::hash::HashKeyMix< hash1_t, hash2_t >::hash1, osl::hash::HashKeyMix< hash1_t, hash2_t >::hash2, and osl::hash::HashKeyMix< hash1_t, hash2_t >::size().
|
friend |
Definition at line 98 of file hashKeyMix.h.
|
friend |
ここの順序はset等に入れるためだけに使うので,完全に一致する必要はない
Definition at line 90 of file hashKeyMix.h.
|
friend |
Definition at line 82 of file hashKeyMix.h.
|
private |
Definition at line 19 of file hashKeyMix.h.
Referenced by osl::hash::HashKeyMix< hash1_t, hash2_t >::blackStand(), osl::hash::HashKeyMix< hash1_t, hash2_t >::changeTurn(), osl::hash::HashKeyMix< hash1_t, hash2_t >::getHash1(), osl::hash::HashKeyMix< hash1_t, hash2_t >::isPlayerOfTurn(), osl::hash::HashKeyMix< hash1_t, hash2_t >::isSameBoard(), osl::hash::HashKeyMix< hash1_t, hash2_t >::operator+=(), osl::hash::HashKeyMix< hash1_t, hash2_t >::operator-=(), osl::hash::HashKeyMix< hash1_t, hash2_t >::setPlayer(), osl::hash::HashKeyMix< hash1_t, hash2_t >::setRandom(), osl::hash::HashKeyMix< hash1_t, hash2_t >::size(), and osl::hash::HashKeyMix< hash1_t, hash2_t >::value().
|
private |
Definition at line 20 of file hashKeyMix.h.
Referenced by osl::hash::HashKeyMix< hash1_t, hash2_t >::blackStand(), osl::hash::HashKeyMix< hash1_t, hash2_t >::changeTurn(), osl::hash::HashKeyMix< hash1_t, hash2_t >::getHash2(), osl::hash::HashKeyMix< hash1_t, hash2_t >::isPlayerOfTurn(), osl::hash::HashKeyMix< hash1_t, hash2_t >::isSameBoard(), osl::hash::HashKeyMix< hash1_t, hash2_t >::operator+=(), osl::hash::HashKeyMix< hash1_t, hash2_t >::operator-=(), osl::hash::HashKeyMix< hash1_t, hash2_t >::setPlayer(), osl::hash::HashKeyMix< hash1_t, hash2_t >::setRandom(), osl::hash::HashKeyMix< hash1_t, hash2_t >::size(), and osl::hash::HashKeyMix< hash1_t, hash2_t >::value().