My Project
core
osl
bits
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
9
namespace
osl
10
{
14
struct
Centering5x3
15
{
16
struct
Table
17
{
18
CArray<Square,Square::SIZE>
centers
;
19
Table
();
20
};
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:
basic_type.h
osl::CArray
Definition
container.h:20
osl::Square
Definition
basic_type.h:532
osl::Square::index
unsigned int index() const
Definition
basic_type.h:572
container.h
osl
Definition
additionalEffect.h:6
osl::Centering5x3::Table
Definition
centering5x3.h:17
osl::Centering5x3::Table::Table
Table()
Definition
centering5x3.cc:7
osl::Centering5x3::Table::centers
CArray< Square, Square::SIZE > centers
Definition
centering5x3.h:18
osl::Centering5x3
5x3が盤上におさまるように中心を調整
Definition
centering5x3.h:15
osl::Centering5x3::table
static const Table table
Definition
centering5x3.h:22
osl::Centering5x3::adjustCenterNaive
static const Square adjustCenterNaive(Square)
Definition
centering5x3.cc:41
osl::Centering5x3::adjustCenter
static const Square adjustCenter(Square src)
Definition
centering5x3.h:23
Generated by
1.9.8