All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
osl::Offset32Base< Width, Width2 > Class Template Reference

差が uniqになるような座標の差分. More...

#include <offset32.h>

Public Member Functions

 Offset32Base (Square to, Square from)
 
 Offset32Base (int dx, int dy)
 
unsigned int index () const
 
bool isValid () const
 
template<Player P>
const Offset32Base blackOffset32 () const
 Player P からみた offset を黒番のものに変更する More...
 
const Offset32Base operator- () const
 

Static Public Attributes

static const unsigned int SIZE =(MAX-MIN+1)
 

Private Types

enum  { MIN = -(Width*32+Width), MAX = (Width*32+Width) }
 

Private Member Functions

 Offset32Base (int o)
 
const Offset32Base blackOffset32 (Int2Type< BLACK >) const
 
const Offset32Base blackOffset32 (Int2Type< WHITE >) const
 
int dx (Offset32Base offset32)
 
int dy (Offset32Base offset32)
 

Private Attributes

int offset32
 

Detailed Description

template<int Width, int Width2>
class osl::Offset32Base< Width, Width2 >

差が uniqになるような座標の差分.

x*32+y同士の差を取る ちょっとだけ溢れても良い

Definition at line 17 of file offset32.h.

Member Enumeration Documentation

template<int Width, int Width2>
anonymous enum
private
Enumerator
MIN 
MAX 

Definition at line 19 of file offset32.h.

Constructor & Destructor Documentation

template<int Width, int Width2>
osl::Offset32Base< Width, Width2 >::Offset32Base ( int  o)
inlineexplicitprivate
template<int Width, int Width2>
osl::Offset32Base< Width, Width2 >::Offset32Base ( Square  to,
Square  from 
)
inline
template<int Width, int Width2>
osl::Offset32Base< Width, Width2 >::Offset32Base ( int  dx,
int  dy 
)
inline

Definition at line 38 of file offset32.h.

Member Function Documentation

template<int Width, int Width2>
const Offset32Base osl::Offset32Base< Width, Width2 >::blackOffset32 ( Int2Type< BLACK ) const
inlineprivate

Definition at line 50 of file offset32.h.

Referenced by osl::BoardTable::getLongDirection().

template<int Width, int Width2>
const Offset32Base osl::Offset32Base< Width, Width2 >::blackOffset32 ( Int2Type< WHITE ) const
inlineprivate
template<int Width, int Width2>
template<Player P>
const Offset32Base osl::Offset32Base< Width, Width2 >::blackOffset32 ( ) const
inline

Player P からみた offset を黒番のものに変更する

Definition at line 57 of file offset32.h.

References osl::Offset32Base< Width, Width2 >::blackOffset32().

Referenced by osl::Offset32Base< Width, Width2 >::blackOffset32().

template<int Width, int Width2>
int osl::Offset32Base< Width, Width2 >::dx ( Offset32Base< Width, Width2 >  offset32)
private
template<int Width, int Width2>
int osl::Offset32Base< Width, Width2 >::dy ( Offset32Base< Width, Width2 >  offset32)
private
template<int Width, int Width2>
unsigned int osl::Offset32Base< Width, Width2 >::index ( ) const
inline
template<int Width, int Width2>
bool osl::Offset32Base< Width, Width2 >::isValid ( ) const
inline
template<int Width, int Width2>
const Offset32Base osl::Offset32Base< Width, Width2 >::operator- ( ) const
inline

Member Data Documentation

template<int Width, int Width2>
int osl::Offset32Base< Width, Width2 >::offset32
private
template<int Width, int Width2>
const unsigned int osl::Offset32Base< Width, Width2 >::SIZE =(MAX-MIN+1)
static

Definition at line 24 of file offset32.h.


The documentation for this class was generated from the following file: