My Project
centering5x3.h
Go to the documentation of this file.
1/* centering5x3.h
2 */
3#ifndef OSL_CENTERING5X3_H
4#define OSL_CENTERING5X3_H
5
6#include "osl/basic_type.h"
7#include "osl/container.h"
8
9namespace osl
10{
15 {
21 static const Square adjustCenterNaive(Square);
22 static const Table table;
23 static const Square adjustCenter(Square src)
24 {
25 return table.centers[src.index()];
26 }
27 };
28
29} // namespace osl
30
31#endif /* OSL_CENTERING5X3_H */
32// ;;; Local Variables:
33// ;;; mode:c++
34// ;;; c-basic-offset:2
35// ;;; coding:utf-8
36// ;;; End:
unsigned int index() const
Definition basic_type.h:572
CArray< Square, Square::SIZE > centers
5x3が盤上におさまるように中心を調整
static const Table table
static const Square adjustCenterNaive(Square)
static const Square adjustCenter(Square src)