Belofte version 2.1.8
A promising chess program using the UCI or Winboard interface
bCase Class Referencefinal

position on board, defined as 255 if invalid used primarily to compose a move or a source or destination field does not contain the piece that occupies it More...

#include <case.h>

Public Member Functions

 bCase ()
 
 bCase (bCase &&) noexcept
 
 bCase (case_t c)
 
 bCase (std::string const &s)
 
 bCase (column_t const c, rank_t const r)
 
 ~bCase ()
 
 bCase (bCase const &)=delete
 
bCaseoperator= (bCase const &)=delete
 
bCaseoperator= (bCase &&)=delete
 
bCaseoperator= (std::string const &s)
 
 operator std::string () const
 
bool operator== (bCase const rhs) const
 
column_t column0 () const
 
rank_t rank0 () const
 
column_t column () const
 
rank_t rank () const
 
case_t getCaseT () const
 

Static Public Member Functions

static constexpr case_t coordToCase (column_t const c, rank_t const r)
 
static constexpr column_t column0 (case_t const c)
 
static constexpr rank_t rank0 (case_t const c)
 
static constexpr column_t column (case_t const c)
 
static constexpr rank_t rank (case_t const c)
 
static constexpr boardbitmap_t caseToBit (case_t const c)
 

Friends

std::ostream & operator<< (std::ostream &os, bCase const &bc)
 

Detailed Description

position on board, defined as 255 if invalid used primarily to compose a move or a source or destination field does not contain the piece that occupies it

Definition at line 17 of file case.h.

Constructor & Destructor Documentation

◆ bCase() [1/6]

bCase::bCase ( )

Definition at line 13 of file case.cpp.

◆ bCase() [2/6]

bCase::bCase ( bCase &&  )
explicitnoexcept

◆ bCase() [3/6]

bCase::bCase ( case_t  c)
explicit

Definition at line 17 of file case.cpp.

◆ bCase() [4/6]

bCase::bCase ( std::string const &  s)
explicit

Definition at line 30 of file case.cpp.

+ Here is the call graph for this function:

◆ bCase() [5/6]

bCase::bCase ( column_t const  c,
rank_t const  r 
)
explicit

Definition at line 22 of file case.cpp.

+ Here is the call graph for this function:

◆ ~bCase()

bCase::~bCase ( )

Definition at line 37 of file case.cpp.

◆ bCase() [6/6]

bCase::bCase ( bCase const &  )
delete

Member Function Documentation

◆ operator=() [1/3]

bCase & bCase::operator= ( bCase const &  )
delete

◆ operator=() [2/3]

bCase & bCase::operator= ( bCase &&  )
delete

◆ operator=() [3/3]

bCase & bCase::operator= ( std::string const &  s)

Definition at line 41 of file case.cpp.

+ Here is the call graph for this function:

◆ operator std::string()

bCase::operator std::string ( ) const

Definition at line 58 of file case.cpp.

◆ operator==()

bool bCase::operator== ( bCase const  rhs) const

Definition at line 49 of file case.cpp.

◆ column0() [1/2]

column_t bCase::column0 ( ) const
inline

Definition at line 35 of file case.h.

Referenced by column0().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rank0() [1/2]

rank_t bCase::rank0 ( ) const
inline

Definition at line 36 of file case.h.

Referenced by rank0().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ column() [1/2]

◆ rank() [1/2]

◆ getCaseT()

case_t bCase::getCaseT ( ) const

Definition at line 53 of file case.cpp.

◆ coordToCase()

◆ column0() [2/2]

static constexpr column_t bCase::column0 ( case_t const  c)
inlinestaticconstexpr

Definition at line 45 of file case.h.

◆ rank0() [2/2]

static constexpr rank_t bCase::rank0 ( case_t const  c)
inlinestaticconstexpr

Definition at line 48 of file case.h.

◆ column() [2/2]

static constexpr column_t bCase::column ( case_t const  c)
inlinestaticconstexpr

Definition at line 51 of file case.h.

◆ rank() [2/2]

static constexpr rank_t bCase::rank ( case_t const  c)
inlinestaticconstexpr

Definition at line 54 of file case.h.

◆ caseToBit()

static constexpr boardbitmap_t bCase::caseToBit ( case_t const  c)
inlinestaticconstexpr

Definition at line 58 of file case.h.

Referenced by destinationbits(), bWhitePiece::isAttacked(), and bBlackPiece::isAttacked().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
bCase const &  bc 
)
friend

Definition at line 64 of file case.cpp.