centering5x3.h
Go to the documentation of this file.
/* centering5x3.h
*/
#ifndef OSL_CENTERING5X3_H
#define OSL_CENTERING5X3_H
#include "osl/basic_type.h"
#include "osl/container.h"
namespace osl
{
struct Centering5x3
{
struct Table
{
CArray<Square,Square::SIZE> centers;
Table();
};
static const Square adjustCenterNaive(Square);
static const Table table;
static const Square adjustCenter(Square src)
{
return table.centers[src.index()];
}
};
} // namespace osl
#endif /* OSL_CENTERING5X3_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; coding:utf-8
// ;;; 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