Belofte version 2.1.9
A promising chess program using the UCI or Winboard interface
bCase Class Reference

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 &&cf)
 
 bCase (case_t cf)
 
 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)
 
bool operator== (bCase const rhs) const
 
constexpr column_t column0 () const
 
constexpr rank_t rank0 () const
 
constexpr column_t column () const
 
constexpr rank_t rank () const
 
constexpr case_t getCaseT () const
 
 operator std::string () 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 cf)
 
static constexpr rank_t rank0 (case_t const cf)
 
static constexpr column_t column (case_t const cf)
 
static constexpr rank_t rank (case_t const cf)
 
static constexpr boardbitmap_t caseToBit (case_t const cf)
 

Friends

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

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 18 of file case.h.

Constructor & Destructor Documentation

◆ bCase() [1/6]

bCase::bCase ( )
inlineexplicit

Definition at line 20 of file case.h.

Referenced by bCase(), bCase(), operator<<, operator=(), operator=(), operator=(), and operator==().

+ Here is the caller graph for this function:

◆ bCase() [2/6]

bCase::bCase ( bCase && cf)
explicit
+ Here is the call graph for this function:

◆ bCase() [3/6]

bCase::bCase ( case_t cf)
explicit

Definition at line 13 of file case.cpp.

◆ bCase() [4/6]

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

Definition at line 26 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 18 of file case.cpp.

+ Here is the call graph for this function:

◆ ~bCase()

bCase::~bCase ( )
inline

Definition at line 26 of file case.h.

◆ bCase() [6/6]

bCase::bCase ( bCase const & )
delete
+ Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/3]

bCase & bCase::operator= ( bCase const & )
delete
+ Here is the call graph for this function:

◆ operator=() [2/3]

bCase & bCase::operator= ( bCase && )
delete
+ Here is the call graph for this function:

◆ operator=() [3/3]

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

Definition at line 33 of file case.cpp.

+ Here is the call graph for this function:

◆ operator==()

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

Definition at line 41 of file case.cpp.

+ Here is the call graph for this function:

◆ column0() [1/2]

column_t bCase::column0 ( ) const
inlineconstexpr

Definition at line 37 of file case.h.

Referenced by column0(), and operator std::string().

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

◆ rank0() [1/2]

rank_t bCase::rank0 ( ) const
inlineconstexpr

Definition at line 39 of file case.h.

Referenced by operator std::string(), and 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
inlineconstexpr

Definition at line 45 of file case.h.

◆ operator std::string()

bCase::operator std::string ( ) const

Definition at line 45 of file case.cpp.

+ Here is the call graph for this function:

◆ coordToCase()

◆ column0() [2/2]

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

Definition at line 54 of file case.h.

◆ rank0() [2/2]

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

Definition at line 57 of file case.h.

◆ column() [2/2]

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

Definition at line 60 of file case.h.

◆ rank() [2/2]

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

Definition at line 63 of file case.h.

◆ caseToBit()

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

Definition at line 66 of file case.h.

Referenced by destinationbits().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 51 of file case.cpp.