osl::DirectionTraits< Dir > Struct Template Reference

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Static Public Member Functions | Static Public Attributes | List of all members
osl::DirectionTraits< Dir > Struct Template Reference

`#include <directionTraits.h>`

## Static Public Member Functions
static const Offset | blackOffset ()

## Static Public Attributes
static const unsigned int | mask =1<<static_cast<int>(Dir)
static const bool | isLong =(static_cast<int>(Dir) >= LONG_UL)
static const int | blackDx =DirectionTraitsGen<Dir>::blackDx
static const int | blackDy =DirectionTraitsGen<Dir>::blackDy
static const bool | canPromoteTo =DirectionTraitsGen<Dir>::canPromoteTo
static const Direction | longDir =DirectionTraitsGen<Dir>::longDir
static const int | ptypeMask =DirectionTraitsGen<Dir>::ptypeMask
static const int | ptypeMaskNotKing
static const Direction | primDir =DirectionTraitsGen<Dir>::primDir
static const Direction | altDir =DirectionTraitsGen<Dir>::altDir

## Detailed Description

### template<Direction Dir>
struct osl::DirectionTraits< Dir >

Definition at line 227 of file directionTraits.h.

## Member Function Documentation

template<Direction Dir>

static const Offset osl::DirectionTraits< Dir >::blackOffset | ( | ) |  |
| inlinestatic

Definition at line 233 of file directionTraits.h.

References osl::DirectionTraits< Dir >::blackDx, and osl::DirectionTraits< Dir >::blackDy.

Referenced by osl::checkmate::DualDfpn::OraclePool::addKey(), osl::effect_util::PinOrOpen::findDirectionStep(), osl::effect_util::Pin::findDirectionStep(), osl::state::NumEffectState::makePinOpenDir(), osl::DirectionPlayerTraits< Dir, BLACK >::offset(), and osl::DirectionPlayerTraits< Dir, WHITE >::offset().

## Member Data Documentation

template<Direction Dir>

const Direction osl::DirectionTraits< Dir >::altDir =DirectionTraitsGen<Dir>::altDir
| static

Definition at line 240 of file directionTraits.h.

template<Direction Dir>

const int osl::DirectionTraits< Dir >::blackDx =DirectionTraitsGen<Dir>::blackDx
| static

Definition at line 231 of file directionTraits.h.

Referenced by osl::DirectionTraits< Dir >::blackOffset().

template<Direction Dir>

const int osl::DirectionTraits< Dir >::blackDy =DirectionTraitsGen<Dir>::blackDy
| static

Definition at line 232 of file directionTraits.h.

Referenced by osl::DirectionTraits< Dir >::blackOffset().

template<Direction Dir>

const bool osl::DirectionTraits< Dir >::canPromoteTo =DirectionTraitsGen<Dir>::canPromoteTo
| static

Definition at line 234 of file directionTraits.h.

template<Direction Dir>

const bool osl::DirectionTraits< Dir >::isLong =(static_cast<int>(Dir) >= LONG_UL)
| static

Definition at line 230 of file directionTraits.h.

template<Direction Dir>

const Direction osl::DirectionTraits< Dir >::longDir =DirectionTraitsGen<Dir>::longDir
| static

Definition at line 235 of file directionTraits.h.

template<Direction Dir>

const unsigned int osl::DirectionTraits< Dir >::mask =1<<static_cast<int>(Dir)
| static

Definition at line 229 of file directionTraits.h.

template<Direction Dir>

const Direction osl::DirectionTraits< Dir >::primDir =DirectionTraitsGen<Dir>::primDir
| static

Definition at line 239 of file directionTraits.h.

template<Direction Dir>

const int osl::DirectionTraits< Dir >::ptypeMask =DirectionTraitsGen<Dir>::ptypeMask
| static

Definition at line 236 of file directionTraits.h.

template<Direction Dir>

const int osl::DirectionTraits< Dir >::ptypeMaskNotKing
| static

Initial value:
=DirectionTraitsGen<Dir>::ptypeMask &
~(1<<KING)

Definition at line 237 of file directionTraits.h.

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

- directionTraits.h