All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
boardKey.tcc
Go to the documentation of this file.
1 /* boardKey.tcc
2  */
3 #ifndef _BOARD_KEY_TCC
4 #define _BOARD_KEY_TCC
5 #include "osl/hash/boardKey.h"
6 #include "osl/misc/random.h"
7 
8 template<typename T,size_t SIZE>
11 {
12  elements.fill(0);
13 }
14 
15 template<typename T,size_t SIZE>
17 {
18  elements[0]=misc::Random<T>::newValue() & ~static_cast<T>(1);
19  for(size_t i=1;i<SIZE;i++)
20  elements[i]=misc::Random<T>::newValue();
21 }
22 
23 template<typename SignatureBoardKeyBase>
25 {
26  board_key.setRandom();
27  // pieceStandには触らない
28 }
29 
30 #endif /* _BOARD_KEY_TCC */
31 // ;;; Local Variables:
32 // ;;; mode:c++
33 // ;;; c-basic-offset:2
34 // ;;; End:
35