/usr/include/osl/hash/boardKey.tcc is in libosl-dev 0.6.0-3.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | /* boardKey.tcc
*/
#ifndef _BOARD_KEY_TCC
#define _BOARD_KEY_TCC
#include "osl/hash/boardKey.h"
#include "osl/misc/random.h"
template<typename T,size_t SIZE>
osl::hash::GeneralBoardKey<T,SIZE>::
GeneralBoardKey()
{
elements.fill(0);
}
template<typename T,size_t SIZE>
void osl::hash::GeneralBoardKey<T,SIZE>::setRandom()
{
elements[0]=misc::Random<T>::newValue() & ~static_cast<T>(1);
for(size_t i=1;i<SIZE;i++)
elements[i]=misc::Random<T>::newValue();
}
template<typename SignatureBoardKeyBase>
void osl::hash::GeneralHashKey<SignatureBoardKeyBase>::setRandom()
{
board_key.setRandom();
// pieceStandには触らない
}
#endif /* _BOARD_KEY_TCC */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|